How to sent variable velocity in mavros?

asked 2016-04-13 11:54:24 -0600

papaclaudia gravatar image

Hi! I have a APM, cmd_vel topic and mavros_node.cpp that I downloaded by https://github.com/mavlink/mavros/tre... . 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.

edit retag flag offensive close merge delete

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?

Femer gravatar imageFemer ( 2016-04-14 15:21:13 -0600 )edit

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

papaclaudia gravatar imagepapaclaudia ( 2016-04-15 03:48:52 -0600 )edit

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?

Femer gravatar imageFemer ( 2016-04-16 17:21:43 -0600 )edit

Were you able to send velocity commands to the drone?

Vinh K gravatar imageVinh K ( 2016-06-22 16:10:18 -0600 )edit