Page 1 of 1

Position Algorithm Using Kinect

Posted: Thu Apr 28, 2016 8:16 pm
by nurinuri
Hi every one,
recently, I developed a c++ code for the Kinect on Ros that can detect a red ball (detect the red colour) on top of quad and extract the position of the quad.
Now, I would like to employ this code as node in Ros for the position controller of CF (trajectory tracking), how to do that? where should I start from?
I mean what is the required for that? how to involve my code to PID controller of CF to control it using the kinect?
I would greatly appreciate your help.
Nurinuri.

Re: Position Algorithm Using Kinect

Posted: Wed May 04, 2016 9:57 am
by arnaud
Hi,

You need the ROS crazyflie driver package (https://github.com/whoenig/crazyflie_ros) and you will need to boadcast the Crazyflie position as a TF transform. For example we use this lauch file for the lps: https://github.com/bitcraze/lps-ros/blo ... ver.launch. Your detector will be put instead of the lps related nodes (log_range, lps_pf and lps_pf).

The crazyflie controller from the Crazyflie ros driver package reads the position from the TF transform and publishes a cmd_val topic to control the Crazyflie. For example the LPS broadcast is https://github.com/bitcraze/lps-ros/blo ... py#L31-L36 and I made a ros version of our kinect2 detector in C++ there: https://github.com/ataffanel/crazyflie- ... pp#L20-L29

Good luck! and please keep us informed of your progress :-).
/Arnaud