Can I modify Ignition Gazebo Physic while running simulation ?
I am currently working on a simulator using Ignition Gazebo as a tool to add some physics to make it more realistic. As the mission I would like to simulate are very long (2-3 months), it is very important that the whole simulation is accelerated under conditions I fixed. I need a real time simulation to compute the missions and an accelerated simulation to react in function of those missions.
I found two parameters to make it so : maxstepsize (spatial) & realtimefactor (temporal) but I only can modify them while creating my sdf file and not after using a ROS2 node.
I have also found a package named "gazeborospkgs" that have a SetPhysicsProperties (https://github.com/ros-simulation/gazebo_ros_pkgs) service that could help my but it only works with Gazebo.
Is there a way I can control the realtimefactor parameter of Ignition Gazebo using a ROS2 node ? Thank you for your time and answers.
Asked by Jouliano on 2022-05-09 05:11:55 UTC
Comments
I know this is not an answer but question, what about this: https://github.com/gazebosim/ros_gz/tree/foxy/ros_ign_gazebo_demos/launch
It's foxy and Gazebo Citadel (formerly ign). Surely, there's a lot of stuff to show the example.
So, your question is more for this one: https://github.com/gazebosim/gz-physics
I believe you can do that, but I don't know how. Hope I helped you with those links! Please ask if u have more questions!
Asked by kakcalu13 on 2022-05-13 10:04:45 UTC
Thanks for your reply. Unfortunately, these are links that I've already browsed and couldn't / didn't know how to use for my purposes. However, I'm going to dive back in to see if I've missed anything since you're proposing the same idea maybe that would be worth it ! I believe that first there is no topic/service in Gazebo Citadel that could modify the RTF when the simulation is launched along with no way to create any (or no way that I am aware of). Secondly, the ros2/ign bridge is limited.
Asked by Jouliano on 2022-05-16 03:20:30 UTC