How to get sim time in ignition gazebo
Is it possible to get the sim time outside of the update callbacks in ignition gazebo? Ie is there an equivalent of physics::World::SimTime()
?
Is it possible to get the sim time outside of the update callbacks in ignition gazebo? Ie is there an equivalent of physics::World::SimTime()
?
You could subscribe to the /clock
topic. Otherwise, you can get it during an update and store at a local variable.
SimTime
was kept out of ignition::gazebo::World
on purpose, so users would get it from the update callbacks. More info on this tutorial.
Asked: 2021-01-05 23:50:01 -0500
Seen: 737 times
Last updated: Jan 07 '21
How to change Physics Engine behaviour in Ignition or Classic?
How to spawn sdf object in Ignition Gazebo?
Is it possible to load OGRE meshes in Ignition Gazebo
Need help to run Ignition DOME
Stepping ignition from a ROS node
Sending dynamic pose over the ignition ros bridge.
How to listen to ign-transport messages?
SDF model not loading properly in ignition gazebo
No image topic published on ROS1 (Dome ROS1 integration tutorial)