Ask Your Question

Hector Quadrotor Control Question

asked 2014-07-09 20:24:49 -0500

Glen gravatar image


I launched hector quadrotor outdoor flight mode with gazebo running, but I don't know how to control it.\ I followed the hector_quadrotor tutorial , to run "hector_quadrotor_teleop/xbox_controller.launch" to control it. And it shows the error as below :

core service [/rosout] found ERROR: cannot launch node of type [joy/joy_node]: joy ROS path [0]=/opt/ros/hydro/share/ros ROS path [1]=/home/glen/hector_quadrotor_tutorial/src ROS path [2]=/opt/ros/hydro/share ROS path [3]=/opt/ros/hydro/stacks process[quadrotor_teleop-2]: started with pid [11000]

I'm not sure what's the problem. I also tried two packages: joystick and pr2_teleop.

I can't install joystick that when I run "rosdep install joy", it shows:

ERROR: Rosdep cannot find all required resources to answer your query Missing resource joy ROS path [0]=/opt/ros/hydro/share/ros ROS path [1]=/opt/ros/hydro/share ROS path [2]=/opt/ros/hydro/stacks

"pr2_teleop" is installed but I don't how to use it to control the quadrotor. Any advice on how to control hector quadrotor or other similar flyer would be helpful.

Thanks Glen

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-10 04:44:26 -0500

It seems that you do not have installed the joystick drivers package joy. Try to install it using the command

sudo apt-get install ros-hydro-joy

I added it as a run dependency to hector_quadrotor_teleop to have it automatically installed in future releases of hector_quadrotor (see commit).

The left stick controls vertical velocity and yaw rate, while the right stick controls x and y velocity (mode 2). The joystick/gamepad buttons are currently unused.

edit flag offensive delete link more


The joy runs well now and I can control the UAVs through gamepad. Thanks a lot! Glen

Glen gravatar image Glen  ( 2014-07-10 16:01:32 -0500 )edit

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: 2014-07-09 20:24:49 -0500

Seen: 747 times

Last updated: Jul 10 '14