Closed cmower closed 2 years ago
@christian-rauch I think this should implement your suggestion for syncing Pybullet time with ROS clock. Please merge unless you have any suggestions for improvement?
Does this mean, there is no API to query the simulation time from PyBullet? But since you have to "advance" the simulation manually, you can just keep track of the number of iterations?
Yes, there is no pybullet.getSimulationTime
method. Pybullet can either run on its own or by manually stepping time - by default we let it run on its own, but you can step through manually and in this mode optionally sync it with ROS time.
Allow user to sync ROS time with Pybullet simulation time. The crux here is that you must set the interface to step through pybullet manually since the simulation time is not currently exposed.