modify turtle_teleop_key to control mavros [closed]

asked 2016-01-28 20:12:47 -0500

YingHua gravatar image

updated 2016-01-28 20:30:52 -0500

HI

I wonder make a node to send control information to mavros.

So I modify the teleop_turtle_key.cpp which is a node with turtlesim example.

What I modify is it's publisher topic "turtle1/cmd_vel" into "/mavros/setpoint_attitude/cmd_vel".

image description

But! when I push the botton on my keyboard, the "teleop_turtle_key" node crush everytime and shows error.

[ERROR LOG]=========================================== image description

[ERROR LOG]===========================================

image description

How could I solve it ? I have been tried to modify datatype but not works.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by YingHua
close date 2016-03-07 04:01:17.656401

Comments

I finally know why I can't make it work. Because of the data types are different. :)

YingHua gravatar image YingHua  ( 2016-03-07 04:02:23 -0500 )edit