modify turtle_teleop_key to control mavros [closed]
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".
But! when I push the botton on my keyboard, the "teleop_turtle_key" node crush everytime and shows error.
[ERROR LOG]===========================================
[ERROR LOG]===========================================
How could I solve it ? I have been tried to modify datatype but not works.
I finally know why I can't make it work. Because of the data types are different. :)