how to publish mav_msgs/Actuators from terminal

asked 2018-11-25 07:38:42 -0500

dinesh gravatar image

updated 2018-11-27 08:40:50 -0500

how do i publish mav_msgs/actuators and similar types of ros topics from the terminal which will have header, stamp, frame_id etc. i tried using:

rostopic pub -1 /X4/command/motor_speed mav_msgs/Actuators "header:   seq: 0   stamp:
    secs: 0
    nsecs: 0   frame_id: '' angles:
- 0 angular_velocities:
- 10 normalized:

- 0"
edit retag flag offensive close merge delete

Comments

1

Have you tried to use tab-completion?

gvdhoorn gravatar image gvdhoorn  ( 2018-11-25 08:57:05 -0500 )edit

yes, rostopic pub /X4/command/motor_speed mav_msgs/Actuators "header: seq: 0 stamp: secs: 0 nsecs: 0 frame_id: '' angles: - 0 angular_velocities: - 100 normalized: - 0" but i'm not getting proper way to give value to the header,seq,stamp etc.

dinesh gravatar image dinesh  ( 2018-11-27 08:37:56 -0500 )edit

I have also seen this behavior before too. left/right arrow key for navigate through did it for me. Normally values are surrounded by this single quotes - your code snippet looks little bit weird for me, but i do not know much about but mav_msgs.

krl101 gravatar image krl101  ( 2018-11-27 09:56:30 -0500 )edit