Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aa624545345 opened this issue Jan 4, 2020 · 3 comments

Comments

@aa624545345
Copy link

ros2dashing+gazebo9

@clydemcqueen
Copy link
Owner

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
Copy link
Author

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
Copy link
Owner

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}}"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants