mavlink / mavros

MAVLink to ROS gateway with proxy for Ground Control Station
Other
873 stars 986 forks source link

Use teleop_twist_keyboard with Ardupilot #1502

Open sotomotocross opened 3 years ago

sotomotocross commented 3 years ago

I have launched Iris arducopter in a gazebo world. SITL (ArduPilot) was launched and i can give commands to the UAV. MAVROS runs properly. How can i connect the UAV with the teleop_twist_joy (https://wiki.ros.org/teleop_twist_joy) and teleop_twist_keyboard (https://wiki.ros.org/teleop_twist_keyboard)? Which MAVROS topic should i incorporate (i.e. in the teleop_twist_keyboard.py)? Is /mavros/setpoint_velocity/cmd_vel the proper one or do i have to use another? Also why some topics are not published even if they are in the rostopic list?

vooon commented 3 years ago

As i remember teleop_twist_joy only suitable for rovers. Try to use this: https://github.com/mavlink/mavros/blob/master/mavros_extras/scripts/mavteleop