Robotics StackExchange | Archived questions

How to sent variable velocity in mavros?

Hi! I have a APM, cmdvel topic and mavrosnode.cpp that I downloaded by https://github.com/mavlink/mavros/tree/master/mavros/src. I would that the command of velocity be sent in the node but I don't know how to modified the cpp file. Can anyone help me? Thanks in advance.

Asked by papaclaudia on 2016-04-13 11:54:24 UTC

Comments

Hi, I'm sorry but I didn't exactly understand what you're trying to do ... Do you want to to send a cmd_vel from mavros_node to APM? Or do you want APM to send cmd_vel to mavros_node so this one can publish it in ROS?

Asked by Femer on 2016-04-14 15:21:13 UTC

I want to send a cmd_vel from a node (hector_exploration_controller) to mavros_node.

Asked by papaclaudia on 2016-04-15 03:48:52 UTC

Hi, can you be a little bit more specific? Do you want to subscribe to cmd_vel in mavros_node, read this topic and then send it to your autopilot using mavlink? If so, in which mavlink message do you want to send this command?

Asked by Femer on 2016-04-16 17:21:43 UTC

Were you able to send velocity commands to the drone?

Asked by Vinh K on 2016-06-22 16:10:18 UTC

Answers