How to set /use_sim_time to true in a publisher node cpp file ?
I'm writing a publisher node to publish msgs on /imu/data and /fix topics.
I create corresponding msg pointers and assign values to all the fields of msgs including header.stamp.
Now, I want these timestamps to published in /clock topic.
How to implement this in code in publisher node ?