clydemcqueen / tello_ros

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

Hi, I still don't show the drone in gazebo according to your way, have you tried it in gazebo? #47

Open aa624545345 opened 4 years ago

aa624545345 commented 4 years ago

ros2dashing+gazebo9

clydemcqueen commented 4 years ago

I just re-ran the instructions here, and they work for me: https://github.com/clydemcqueen/tello_ros/tree/dashing https://github.com/clydemcqueen/tello_ros/tree/dashing/tello_gazebo

Are you seeing any errors? What are they?

aa624545345 commented 4 years ago

Hi, it works after i retry your method, thanks so much, wonderful work!! However,i have a new problem here, when i try ros2 topic pub /drone1/cmd_vel geometry_msgs/Twist "{linear: {x: 0.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 0.2}}" to let the drone fly, it doesn't work. Thanks for your answer.

clydemcqueen commented 4 years ago

This works for me:

Terminal 1:

# run the appropriate setup, then:
ros2 launch tello_gazebo simple_launch.py

Terminal 2:

# run the appropriate setup, then:
ros2 service call /drone1/tello_action tello_msgs/TelloAction "{cmd: 'takeoff'}"
ros2 topic pub /drone1/cmd_vel geometry_msgs/Twist "{linear: {x: 0.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 0.2}}"