ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

How to set /use_sim_time to true in a publisher node cpp file ?

asked 2022-09-02 03:14:11 -0500

ros_user_ak gravatar image

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 ?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2022-09-02 05:31:17 -0500

iimata gravatar image

Check this previous question

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2022-09-02 03:14:11 -0500

Seen: 96 times

Last updated: Sep 02 '22