-
Notifications
You must be signed in to change notification settings - Fork 330
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
Switch to using RCLCPP logging macros in the lifecycle package. #644
Conversation
This ensures that the logging will go out to rosout and to disk (if configured like that). Signed-off-by: Chris Lalancette <clalancette@gmail.com>
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.
LGTM!
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
@@ -23,22 +23,22 @@ add_executable(lifecycle_talker | |||
src/lifecycle_talker.cpp) | |||
ament_target_dependencies(lifecycle_talker | |||
"lifecycle_msgs" | |||
"rclcpp" |
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.
The CMakeLists.txt in rclcpp_lifecycle
export the dependencies for rclcpp
, it seems unnecessary to add rclcpp
here.
Of course, adding rclcpp
explicitly is also correct.
"rclcpp_lifecycle" | ||
"std_msgs" | ||
) | ||
add_executable(lifecycle_listener | ||
src/lifecycle_listener.cpp) | ||
ament_target_dependencies(lifecycle_listener | ||
"lifecycle_msgs" | ||
"rclcpp_lifecycle" | ||
"rclcpp" |
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.
👍 , lifecycle_listener.cpp
just used the rclcpp
component.
Signed-off-by: Chris Lalancette <clalancette@gmail.com>
This ensures that the logging will go out to rosout and to disk (if configured like that).