4.5.0
4.2.0
4.1.0
4.0.0
4.5.0
2023.1.1
2023.1.0-hotfix.1
Other (please specify):
Operating System
Ubuntu 22.04
Ubuntu 20.04
Windows 11
Windows 10
Other (please specify):
GPU Information
Model: A40-48Q
Driver Version: 550.127.05
Topic Description
Detailed Description
I am figuring out how timestamps are set when I use the ROS2CamerHelper node in order to publish images via ROS. I use exactly the setup from the tutorial: ROS2 Cameras — Isaac Sim Documentation
The generated message timestamps are confusing, they don’t seem to reflect what I consider the acutal simulation time.
Steps to Reproduce
Set up a stage like in the tutorial using the graph shortcut.
Make sure the stage’s time codes per second is set to the default 60.
Start the simulation.
Use a terminal with sourced ROS environment and display timestamps like this: ros2 topic echo /rgb|grep sec
Note that timestamps increase by about 1/60 seconds for each message
While pausing the simulation, modify the SDGPipeline graph and print the output of the “Isaac Read Simulation Time” node.
Note that the “Isaac Read Simulation Time” node output seems to represent the frequency set in the physics scene, not the frequency set in the stage’s time codes per second.
Note that the timestamps created in the ROS messages do not reflect the time stepping of the simulation timeline.
hi @bruno.vetter, are you trying to control the timestamp on the ROS messages? The Read Simulation Time node can be useful for checking if there is any discrepancy between the published and simulation timestamp. Is that helpful?
Hello @rchadha, thanks for your suggestion. I modified the SDGPipeline graph to print the output from the “Read Simulation Time” node (printed with info loglevel) next to the simulation time taken from the “Get main timeline” node (printed with warning loglevel).
I have set the USD stage timecodes per second set to 50, while the physics steps per second is not being set, so it should be 60 by default.
Note how the output of the simulation time from the main timeline differs from the output of “Read Simulation Time”.
The main timeline steps are 0.02s as expected, but the weird stepping of “Read simulation time” is what I see in the published ROS messages.