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

PublishSimTime: changed Throttler to use simTime instead of realTime #1325

Merged
merged 1 commit into from Oct 5, 2023

Conversation

shonigmann
Copy link

Changed Throttler for the clock publisher in gazebo_ros_init.cpp to use simTime instead of realTime. This should fix #1324 and should allow ROS applications to continue to cooperate with Gazebo when the simulation is paused and is being stepped.

If this doesn't break anything, I can open new PRs for the rest of the ros2 distro-specific branches (foxy, galactic, etc) that have the same issue.

Changed Throttler for the clock publisher to use simTime instead of realTime. This fixes gazebo_ros_pkgs#1324 and should allow ROS applications to continue to cooperate with Gazebo when the simulation is paused and is being stepped.
@Zyrin
Copy link

Zyrin commented Oct 5, 2023

Bump, as we ran into this one. @scpeters please review this.

@scpeters scpeters changed the title Changed Throttler to use simTime instead of realTime PublishSimTime: changed Throttler to use simTime instead of realTime Oct 5, 2023
@scpeters
Copy link
Member

scpeters commented Oct 5, 2023

thanks for your contribution!

@scpeters scpeters merged commit 87c8dd8 into ros-simulation:ros2 Oct 5, 2023
1 of 4 checks passed
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

4 participants