Controlling hector quadrotor with keyboard
I am trying to realize mapping of an environment with hector slam. But I cannot find a way to takeoff the quadrotor with keybaord teleop. What keyboard control should be used to takeoff hector?
Asked by boon on 2015-09-15 05:33:33 UTC
Answers
First of all I hope you are using teleop_twist_keyboard for keyboard teleop.
Now the catch here is this package does not let you control the climb rate (velocity in Z direction) of the quadrotor UAV. A quick fix to test out the demo is to publish a single message on the /cmd_vel topic with a positive velocity-z component and then use keyboard to maneuver the quadrotor:
rostopic pub -1 /cmd_vel geometry_msgs/Twist -- '[0.0, 0.0, 0.3]' '[0.0, 0.0, 0.0]'
Feel free to change the values and test for your specific setup.
A better solution would be to have a simple node publish to cmd_vel. You can also make a custom teleop_node for your specific needs.
Hope this helped, comment if you have any more doubts.
Asked by hvpandya on 2015-10-15 14:15:46 UTC
Comments
thanks it work
Asked by M imran on 2015-11-10 04:35:24 UTC
My quadrotor still does not takeoff. Can you tell me which node controls the quadrotor exactly using cmd_vel?? ardrone has a separate topic for takeoff and land commands. Doesnt hector_quadrotor have a similar topic?
Asked by Anurag VV on 2017-07-27 07:56:59 UTC
This worked for me.
Asked by Andreluizfc on 2017-12-06 00:01:35 UTC
If your quadrotor doesn't take off that's probably because you need to enable the motors.
Try: $ rosservice call /enable_motors "enable: true"
Asked by davidakhihiero on 2021-06-18 09:35:16 UTC
Comments