Robotics StackExchange | Archived questions

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 ?

Asked by ros_user_ak on 2022-09-02 03:14:11 UTC

Comments

Answers

Check this previous question

Asked by iimata on 2022-09-02 05:31:17 UTC

Comments