Ask Your Question

Hector quadcopter not responding to cmd_vel messages

asked 2017-03-09 07:20:08 -0500

mathiasi gravatar image

I've been following this tutorial to get the hector quadcopter to work:

I'm using Kinetic and I can see that the tutorial is a bit outdated so I have used

wstool init src

instead of the URL specified in the tutorial. catkin_make completes with no errors.

I do not have access to a controller at hand so I intend to use my keyboard for the time being. I could not find the pr2_teleop package mentioned for Kinetic but I found somewhere that teleop_twist_keyboard ( ) should work just fine. I start the controller using

rosrun teleop_twist_keyboard

I have monitored the cmd_vel topic that, according to the tutorial, is being used and the telop_twist_keyboard node does publish messages just fine.

Here is a graph of my nodes that verifies the connection between the gazebo node and teleop_twist_keyboard using the cmd_vel:

image description

However the drone does not move whatsoever and I can't find any error messages (besides one that says no joystick was found at /dev/input/js0) but I would not expect that to be the problem.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2017-03-10 07:02:04 -0500

mathiasi gravatar image

I stumbled upon this issue: Turns out that you have to an enable_motors action to "turn on" the quadcopter. Calling

rosservice call /enable_motors true

worked for me.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-03-09 07:20:08 -0500

Seen: 657 times

Last updated: Mar 10 '17