clydemcqueen / tello_ros

C++ ROS2 driver for DJI Tello drones
BSD 3-Clause "New" or "Revised" License
193 stars 65 forks source link

Driver won't connect to Gazebo simulated drone #65

Closed ciaran-helgen closed 2 years ago

ciaran-helgen commented 2 years ago

When launching the sample Gazebo sim with ros2 launch tello_gazebo simple_launch.py and the driver with ros2 launch tello_driver teleop_launch.py then running ros2 service call /tello_action tello_msgs/TelloAction "{cmd: 'takeoff'}" to arm the drone, the response from the driver is always [tello_driver]: Not connected, dropping 'takeoff' From the code I can see this is the warning that occurs when the state socket or video socket are not receiving data. When no command is sent, a [tello_driver]: Command timed out error is printed at regular intervals, which indicates no connection. Any insight as to what might be wrong? I am running this in Docker if that is relevant

ciaran-helgen commented 2 years ago

It works if I don't load the driver per your response here https://github.com/clydemcqueen/tello_ros/issues/47#issuecomment-571189292 My bad!

ciaran-helgen commented 2 years ago

I was leaving out the drone1 namespace. The call should have been ros2 service call /drone1/tello_action tello_msgs/TelloAction "{cmd: 'takeoff'}"