Skip to content

How can I control Tello in Gazebo using a USB joystick? #7

@c24668343

Description

@c24668343

Hi, thank you for this awesome project! 🙌

I'm currently working on simulating the Tello drone in Gazebo, and everything is running fine — I can see the drone in Gazebo, receive /drone1/image_raw from the camera, and send velocity commands via /drone1/cmd_vel.

However, I would like to control the drone using a USB joystick (e.g., Xbox controller), but I'm having trouble getting joy_node to publish any messages.

Here’s what I’ve done:

I confirmed the joystick works using: sudo jstest /dev/input/js0
and it shows axis/button values correctly.

But I'm not able to control the Tello in Gazebo using a USB joystick, and I’m not sure how to set it up. Could someone please guide me on how to properly connect and use a joystick for controlling the Tello?

Other info:
ROS 2 distro: Galactic
Running on WSL2 with Ubuntu 20.04
I have added my user to the input group, and the device /dev/input/js0 has the right permissions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions