> ## Content Index
> Fetch the complete content index at: https://whatimade.today/llms.txt
> Use this file to discover other available public pages before exploring further.

# ROS2 - Helping the community
- URL: https://whatimade.today/ros2-helping-the-community/
- Published: 2020-09-20T10:55:09.000Z
- Updated: 2020-09-20T19:13:58.000Z
- Author: GalBrandwine
- Tags: ROS, Tello, C++, tello-driver, ROS2, tello_driver, #Import 2026-11-07 09:43

Hey all,  
How are you doing these days?  
For the last couple of months, I've been learning and implementing all [ROS2 index tutorials](https://index.ros.org/doc/ros2/Tutorials/?ref=whatimade.today).

**ROS** stands for Robotic Operation System.  
But it stands for a whole lot more!  
From a state of the art *C++* implementations, through tons of packages with well-documented code, and community support. **And all that sugar is for free :)**

---

Today I'll lay out the first building block for my next project, an **Autonomous DJI Tello drone**.

## Lets begin!

- For best practice, and to experience working with cutting edge tech - I am using ROS2.
- There are several tello\_drivers out there, but I've found [this repository](https://github.com/clydemcqueen/tello%5Fros?ref=whatimade.today), which claims to implement a tello\_driver for ROS2.

## 1st step

- I already have ROS2 *foxy* (desktop-full) installed ([check out this tutorial](https://index.ros.org/doc/ros2/Installation/Foxy/?ref=whatimade.today))
- I Made sure I had all the dependencies ([installation part](https://github.com/GalBrandwine/tello%5Fros?ref=whatimade.today#installation))  
  - ffmpeg >= 3.3.4
  - OpenCV >= 3.2

## 2nd step

- Getting the code and creating a ROS2 workspace

```shell
source /opt/ros/foxy/setup.bash
mkdir -p ~/tello_ws/src
cd ~/tello_ws/src
gh repo clone GalBrandwine/tello_ros # Using the GitHub CLI, otherwise, just use git clone.
git clone https://github.com/ptrmu/ros2_shared.git
cd ..
colcon build

```

- As expected, it failed.  
These things never work on the first time, so let's make it work:
- It seemed that I didn't have Gazebo installed:  
so `sudo apt install ros-foxy-gazebo-ros-pkgs` did the trick.  
The gazebo is a strong simulation/Emulation tool.  
Lets `colcon build` again...

**DONE!**

## 3rd step

Setting up an IDE:  
I like to work with **[vscode](https://code.visualstudio.com/docs/setup/linux?ref=whatimade.today)**.  
In order to open **vscode** with all PATH's configured:

```
cd ~/tello_ws/
. install/setup.bash # source to this ROS2 layout
code

```

I LOVE vscode's configurability, for example - one can add custom tasks that can be called, and automate things. This can be configured by the **tasks.json**:  
I have added **build** and **clean** tasks so the vscode can build the ROS2 workspace properly.

```JSON
{
	"version": "2.0.0",
	"tasks": [
		{
            "type": "shell",
            "label": "source",
            "command":["cd ~/tello_ws/ && . install/setup.bash"],
        },
        {
            "type": "shell",
            "label": "clean",
            "command":["cd ~/tello_ws/ && rm -rf build/ install/ log/ && unset AMENT_PREFIX_PATH && unset CMAKE_PREFIX_PATH"],
        },
        {
            "type": "shell",
            "label": "colcon build",
            "command":["source /opt/ros/foxy/setup.bash  && cd ~/tello_ws/ && colcon build --cmake-args -DCMAKE_BUILD_TYPE=Debug && . install/setup.bash"],
        },
	]
}

```

This **tasks.json** sits in `~/tello_ws/.vscode/`.  
Next, I always like to add `keybindings` to my tasks:

```JSON
    {
        "key": "f6",
        "command": "workbench.action.tasks.runTask",
        "args": "clean",
    },
    {
        "key": "f7",
        "command": "workbench.action.tasks.runTask",
        "args": "colcon build"
    },

```

To **keybindings.json** file can be found in `~/.config/Code/User/`.

To make sure I was ready to start playing with this, I pressed **f7** \- and as expected, the workspace was built successfully:

![](https://whatimade.today/content/images/2020/09/BuildingSuccessfully.png)

**That's it!**

## 4th step

Getting to know this tello\_driver:

In their (well written) [README.md](https://github.com/clydemcqueen/tello%5Fros?ref=whatimade.today), there's a [run simulation section](https://github.com/GalBrandwine/tello%5Fros/tree/master/tello%5Fgazebo?ref=whatimade.today#run-a-teleop-simulation):

```shell
cd ~/tello_ws
source install/setup.bash
export GAZEBO_MODEL_PATH=${PWD}/install/tello_gazebo/share/tello_gazebo/models
source /usr/share/gazebo/setup.sh
ros2 launch tello_gazebo simple_launch.py

```

And *voila!* a **GAZEBO** simulation pops, with a drone object inside it!  
![](https://whatimade.today/content/images/2020/09/Gazebo.png).

### Having a simulation is super important!

Especially if one's work involves robotics or real-world sensing.

- Once I had the simulation running, I dug deeper, to find out how much this thing actually works.  
  - In a new terminal:

```shell
cd ~/tello_ws/
. install/setup.bash # source my ROS2 layout
rqt # This will open for us ROS2 diagnostic & monitoring tool

```

- From the `Plugins` pannel I choose `services->ServiceCaller`,  
![](https://whatimade.today/content/images/2020/09/ServiceTakeOff.png)
- Then I entered the `'takeoff'` expression, and pressed **Call**:  
![](https://whatimade.today/content/images/2020/09/GazeboTakeoffLand.gif)

**WOW, RIGHT?!**

This simulation will help a lot to those who seek to avoid destroying their own equipment.

**SideNote**  
I did notice some missing data that I wished to be simulated:

- Drone position
- Camera feed

These things can be easily added, I think this is where I come in :)

## 5th step

**Testing this driver in the real world:**

## Final thoughts

- This ROS2 tello\_driver does seem to work.
- It is implemented in **C++**, which is great!
- When flying for real (not simulation) the ROS2 tello\_driver streams the video feed quite good.
- Unfortunately, this ROS2 tello\_driver doesn't retransmit backward **IMU** nor **POSITION** estimation. While other tello drivers do perform that([this one is a good examlpe](https://github.com/hanyazou/TelloPy?ref=whatimade.today)), they have no ROS2 support. So I guess I have to add these capabilities myself.

It seems that I have quite a lot of work in fitting this ROS2 tello\_driver to my needs.

Luckily, I'm not going anywhere :)  
Cheers, Gal.