ros::Time::now() always returns wall time [closed]

asked 2014-07-22 09:16:59 -0500

proprentnerl gravatar image

Hey guys,

I have a very frustrating problem using Ros Hydro on ubuntu 12.04.. I have a Gazebo Simulation posting telemetry data and I use this in a node to create a tf-tree for the simulation. Now I tried to combine my tf-tree with some static transform publishers and noticed that my transform from the c++ node which subscribes to the telemetry is using wall time. The statics transform publishers are using simulation time.

I searched the web, set use_sim_time to true and trief some other things but ros::Time::now() in my c++ code always returns wall time, while the static transform publisher use simulation! This makes it impossible to use the transform together.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by demmeln
close date 2014-07-22 10:33:06.612870