ros::Time::now() always return wall time in c++
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 tried some other things but ros::Time::now() in my c++ code always returns wall time, while the static transform publisher use simulation time! This makes it impossible to use the transform together.
use_sime_time is set before launching any nodes, but my node launches before the /clock topic is available, looking into this next.