Communicating with the Tello drone can be done either using official SDK or one of the unofficial libraries. The unofficial libraries originated from the reverse-engineering the raw packages broadcasted by the Tello. This ROS package is build on top of the unofficial TelloPy library. The TelloPy library is used since at this moment it offers more functionalities than the official SDK or any other unofficial library.
Developing of the tello_driver ROS package is inspired by tello_driver, which by now diverged considerately from the original work. Furthermore, development of this ROS package pursues not to modify the TelloPy library, but instead apply any modification or addition to the ros_driver package in an encapsulated manner. This prevents breaking functionalities when updating the TelloPy library.
$ cd <CATKIN_WS/SRC> $ git clone https://github.com/hanyazou/TelloPy/tree/develop-0.7.0 $ cd TelloPy $ pip install av numpy --user $ python setup.py install --user $ cd .. $ git clone https://github.com/appie-17/tello_driver.git $ git clone https://github.com/tilk/h264_image_transport.git $ cd .. $ catkin_make $ source devel/setup.bash
- Turn on Tello drone
- Connect to drone's WiFi access point (
TELLO_XXXXXX)
- $ roslaunch tello_driver tello_node.launch
Main node running as interface for the TelloPy library
/tello/cmd_vel /tello/emergency /tello/fast_mode /tello/flattrim /tello/flip /tello/land /tello/palm_land /tello/takeoff /tello/throw_takeoff
/tello/camera/camera_info [sensor_msgs/CameraInfo] /tello/image_raw [sensor_msgs/Image] /tello/imag/raw/h264 [h264_image_transport/H264Packet] /tello/odom [nav_msgs/Odometry] /tello/status [tello_driver/TelloStatus]
~/image_raw/compressed/format ~/image_raw/compressed/jpeg_quality ~/image_raw/compressed/png_level ~/tello_driver_node/connect_timeout_sec ~/tello_driver_node/fixed_video_rate ~/tello_driver_node/local_cmd_client_port ~/tello_driver_node/local_vid_server_port ~/tello_driver_node/stream_h264_video ~/tello_driver_node/tello_cmd_server_port ~/tello_driver_node/tello_ip ~/tello_driver_node/vel_cmd_scale ~/tello_driver_node/video_req_sps_hz
DISCLAIMER: This package is an work-in-progress. I take no responsibility for any consequences of you using this software. The documentation might be broken, and features and API are considered VOLATILE presently.
ROS driver wrapper for DJI/Ryze Tello drone
Node: src/tello_driver_node.py
Topics:
~cmd_vel
: geometry_msgs/Twist~fast_mode
: std_msgs/Empty~image_raw
: sensor_msgs/Image~takeoff
: std_msgs/Empty~throw_takeoff
: std_msgs/Empty~land
: std_msgs/Empty~palm_land
: std_msgs/Empty~flattrim
: std_msgs/Empty~flip
: std_msgs/Uint8
Parameters:
~tello_ip
~tello_cmd_port
~client_port
~connect_timeout_sec
$ cd <CATKIN_WS/SRC>
$ git clone https://github.com/anqixu/TelloPy.git
$ cd TelloPy
$ sudo -H pip2 install -e .
$ cd ..
$ git clone https://github.com/anqixu/h264_image_transport.git
$ git clone https://github.com/anqixu/tello_driver.git
$ cd ..
$ rosdep install h264_image_transport
- skip this step:
$ # rosdep install tello_driver # not working currently
$ catkin build tello_driver
Optionally, install the following udev rules for PS3 gamepads; see instructions in comments on top of file.
- turn on drone and wait for its front lights to blink amber
- connect WiFi to drone's access point (e.g.
TELLO_######
) $ roslaunch tello_driver launch/tello_node.launch
To see the camera:
$ rosrun rqt_image_view rqt_image_view /tello/image_raw/compressed
First check out the following and possibly adjust parameters / code / mappings:
Now run:
$ roslaunch tello_driver devel.launch
It is possible to connect to multiple Tello drones by using multiple USB WiFi dongles and a Docker container running UDP proxy servers.
- Sometimes, perhaps when taking off without moving gamepad analog sticks / sending commands to
/tello/cmd_vel
, further cmd_vel will not work; fix by restarting node, moving gamepad analog sticks / send a message to/tello/cmd_vel
FIRST, then takeoff