-
Notifications
You must be signed in to change notification settings - Fork 240
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
remodel publication manager #749
Conversation
Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com>
master is currently broken due to ros2/rmw_cyclonedds#306 |
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 - i like that the code got smaller
rclcpp::get_logger("publication_manager"), | ||
"publish on topic %s", publisher->get_topic_name()); | ||
} | ||
std::this_thread::sleep_for(interval); |
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.
Would there be a slightly simpler way to build this with timers instead? Not sure, just thinking out loud
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.
I am actually in favor of this solution. Timers involve node spinning and executors. Here I can simply call publish and sleep.
Signed-off-by: Karsten Knese <Karsten1987@users.noreply.github.com>
A few things here:
publisher_manager
topublication_manager
.rclcpp::init
wasn't triggered just yet.record_end_to_end_tests