Robotics StackExchange | Archived questions

how to publish mav_msgs/Actuators from terminal

how do i publish mavmsgs/actuators and similar types of ros topics from the terminal which will have header, stamp, frameid 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"

Asked by dinesh on 2018-11-25 08:38:42 UTC

Comments

Have you tried to use tab-completion?

Asked by gvdhoorn on 2018-11-25 09:57:05 UTC

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.

Asked by dinesh on 2018-11-27 09:37:56 UTC

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.

Asked by krl101 on 2018-11-27 10:56:30 UTC

Answers