Change publish and latch time

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

rmoncrief gravatar image

When I follow this tutorial ( wiki.ros.org/dynamixel_controllers/Tutorials/CreatingJointPositionController ) 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

Comments

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 -0600 )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 -0600 )edit
1

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 -0600 )edit

Was a solution for this problem ever found?

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