rqt_publisher genpy.Time[0]
How i can publish a msg with rqt_publisher with current time added to the stamp in a msg?
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org |
How i can publish a msg with rqt_publisher with current time added to the stamp in a msg?
For values, one can use any valid python expression, including functions from math, time, and random modules (without module prefix). Thus, for time, one should use time()
in the secs field of the time stamp and time()*1e9 % 1e9
for the nsecs field. time()
returns the seconds since epoch as float.
Please start posting anonymously - your entry will be published after you log in or create a new account.
Asked: 2016-02-18 08:50:40 -0600
Seen: 560 times
Last updated: Feb 18 '16
Another question about extrapolation in the past
Is there an easy way to publish std_msgs::Time from cli?
"Have you called init_node()?"
Gazebo world reset and Duration sleep
time VS path time VS process time in Moveit benchmarking
rosbag --clock time for files recorded on a different machine
Syncing time between two machines
TimeSynchronizer compilation error