[SOLVED] Ros - unsupported control mode: twist

Post here to get support
Post Reply
cygaro
Beginner
Posts: 4
Joined: Wed Oct 19, 2016 11:05 am

[SOLVED] Ros - unsupported control mode: twist

Post by cygaro »

Hi everyone,
I'm trying to run the demo of the crazyflie_ros:

Code: Select all

roslaunch crazyflie_demo teleop_ps3.launch uri:=radio://0/100/2M
And it seems that is not working. The drone is not moving at all, but I think that the controller is working because if I press the up arrow I read some response on the terminal. On the terminal at some point appear this error:

Code: Select all

[ERROR] [1476874945.047441099]: Unsupported control mode: twist
I'm running Ubuntu 16.04, Ros Kinetic, hector_quadrotor (kinetic-devel).
Any idea or suggestion on how to solve this problem?

Thanks,
Giuseppe
Last edited by cygaro on Fri Oct 21, 2016 12:47 pm, edited 1 time in total.
whoenig
Expert
Posts: 395
Joined: Mon Oct 27, 2014 2:55 am

Re: Ros - unsupported control mode: twist

Post by whoenig »

Hi,

This error seems to come from the hector_quadrotor package (https://github.com/tu-darmstadt-ros-pkg ... p.cpp#L182). If you use the indigo-devel branch instead (which should work on Kinetic as well), it should work.

Long term I'll provide a teleoperation node within crazyflie_ros to avoid such issues.

Best,
Wolfgang
cygaro
Beginner
Posts: 4
Joined: Wed Oct 19, 2016 11:05 am

Re: Ros - unsupported control mode: twist

Post by cygaro »

Hi whoenig, thanks for your answer.
I really appreciate your work and I would like to read the paper related to the crazyswarm. In my university we are starting to work on the crazyflie as platform to test some distributed algorithm. I hope I'll be able to give some detail in the near future.

The installation of all hector packages is giving me many problems (btw I'm really new to ros). I'm trying to installing it as follow:

Code: Select all

$ mkdir -p ./hector_ros/src
$ cd ./hector_ros/src
$ catkin_init_workspace
$ cd ../
$ wstool init src https://raw.github.com/tu-darmstadt-ros-pkg/hector_quadrotor/indigo-devel/hector_quadrotor.rosinstall
$ catkin_make
After last step I've that "cmake" fail, as follow:

Code: Select all

-- Could not find the required component 'driver_base'. The following CMake error indicates that you either need to install the package with the same name or change your environment so that it can be found.
CMake Error at /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
  Could not find a package configuration file provided by "driver_base" with
  any of the following names:

    driver_baseConfig.cmake
    driver_base-config.cmake
If I'm also unable to install ros-indigo-driver-base because it seems that can not be found.

Code: Select all

E: Unable to locate package ros-indigo-driver-base
What should I do?
whoenig
Expert
Posts: 395
Joined: Mon Oct 27, 2014 2:55 am

Re: Ros - unsupported control mode: twist

Post by whoenig »

Instead of installing all of hector_quadcopter, it suffices to put hector_quadcopter_teleop and hector_uav_msgs in your workspace. I.e. download those two folders from https://github.com/tu-darmstadt-ros-pkg ... _quadrotor, and put them in your src folder of your crazyflie workspace.

Regarding the paper and additional material, please send me an e-mail (you can find my email address in the package.xml files of the crazyflie_ros stack).
cygaro
Beginner
Posts: 4
Joined: Wed Oct 19, 2016 11:05 am

Re: Ros - unsupported control mode: twist

Post by cygaro »

Thank you! Solved as you suggested!
Post Reply