Skip to content
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

Make controller_manager set controller's use_sim_time param when use_sim_time=True #468

Merged
merged 4 commits into from
Jul 22, 2021

Conversation

shonigmann
Copy link
Contributor

Per discussion in #325 , I have added a few lines to controller_manager.cpp to set the controller node's use_sim_time parameter to match the controller_manager's when it is set to true. An INFO message is printed when this occurs to let the user know.

I added this code to the add_controller_impl() function, as this is where controller nodes are added to the executor, but if this was the wrong place to do so, please let me know.

That said, this code passes all tests, and works as expected in my own demo applications, loading via launch, setting different controller states, unloading and reloading.

Copy link
Member

@bmagyar bmagyar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks good to me!

Copy link
Contributor

@v-lopez v-lopez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bmagyar bmagyar merged commit 0393d59 into ros-controls:master Jul 22, 2021
pac48 pushed a commit to pac48/ros2_control that referenced this pull request Jan 26, 2024
…eak #behavior-break (ros-controls#468)


Co-authored-by: Denis Štogl <denis@stoglrobotics.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants