-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve rosout logging #50
Conversation
… rosout during init
std::string accessModeToString(VmbAccessModeType modeType) { | ||
std::string s; | ||
if (modeType & VmbAccessModeFull) | ||
s = std::string("Read and write access"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about return \"Read and write access\"
so it matches interfaceToString
function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good! this function was just moved from another file, I'll improve it though.
CameraPtrVector cameras; | ||
if (VmbErrorSuccess == vs.Startup()) { | ||
if (VmbErrorSuccess == vs.GetCameras(cameras)) { | ||
for (CameraPtrVector::iterator iter = cameras.begin(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how about for (const auto& camera : cameras)
?
@@ -142,7 +141,7 @@ class AvtVimbaCamera { | |||
std::string trigger_source_; | |||
int trigger_source_int_; | |||
|
|||
CameraPtr openCamera(std::string id_str); | |||
CameraPtr openCamera(std::string id_str, bool print_all_features); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const std::string&
Much cleaner to read now. Appreciate that. |
Resolves #38 by improving the rosout logging.