wilselby / ROS_quadrotor_simulator

Quadrotor simulator using ROS, Gazebo, and RVIZ
270 stars 125 forks source link

How to use rostopic pub in the mav_msgs/CommandMotorSpeed #33

Closed matheus-pimentel closed 6 years ago

matheus-pimentel commented 6 years ago

Hello, I am working in a similar project here in Universidade Federal de Juiz de Fora, and I have to develop my own controllers but don't know exactly how to publish a command motor speed message. Initially I'm trying to use the rostopic pub command for later create a node to my controller:

rostopic pub /quad/command/motor_speed mav_msgs/CommandMotorSpeed "header: seq: 0 stamp: secs: 0 nsecs: 0 frame_id: '' motor_speed:

Is there another way to set the motor speed? I have also to use the CommandRollPitchYawrateThrust message to move the quadrotor?