Change publish and latch time

asked 2015-06-24 12:36:42 -0500

rmoncrief gravatar image

When I follow this tutorial ( ) and everything works like it should but when I run the command "rostopic pub -1 /tilt_controller/command std_msgs/Float64 -- 1.5" it says "publishing and latching message for 3.0 seconds" is there anyway to change that 3 seconds latching time to something else, say 2 seconds or 1 second?

edit retag flag offensive close merge delete


I would actually be surprised if that 3.0 seconds has any influence on the publication. Latching would seem to imply that the msg is received by all late comers, until you stop rostopic by ctrl+c-ing it.

gvdhoorn gravatar image gvdhoorn  ( 2015-06-25 02:31:02 -0500 )edit

What I am trying to do is move the motor back and forth with another interface and I was using rostopic but i needed to send a command faster than every 3 seconds. Is there a better way to give the motor position commands quickly?

rmoncrief gravatar image rmoncrief  ( 2015-06-25 07:08:40 -0500 )edit

Take a look at rqt_publisher. See the Gazebo ros_control tutorial for an example on how to use Python math expressions with it (search for Use RQT To Send Commands).

gvdhoorn gravatar image gvdhoorn  ( 2015-06-25 09:16:11 -0500 )edit

Was a solution for this problem ever found?

215 gravatar image 215  ( 2016-10-04 05:02:23 -0500 )edit