Page 1 of 1

Get Crazyflie sensor data from ROS

Posted: Mon Apr 10, 2017 8:42 am
by thanhvu94
Hello,

I want to learn how to get/store the sensor data (IMU, pressure, battery) and publish it on the console using crazyflie ROS package but I don't know where to start and which language should I code (Python or C++). Can anyone give me a suggestion which should I research first in order to achieve my purpose above? For example, if I need to write a program, can you suggest me some references where I can learn how to code a quite similar program like that from scratch?

Thank you!

Re: Get Crazyflie sensor data from ROS

Posted: Mon Apr 10, 2017 11:58 am
by arnaud
Hi,

The ros Crazyflie driver has a functionality to register log block to the Crazyflie log subsystem and publish the values in a ros topic.

For the ROS syntax you can see existing lauchfiles, for example: https://github.com/bitcraze/lps-ros/blo ... ch#L22-L26

You can use the Log TOC tab in the Crazyflie client to see a list of available log variable. IMU, pressure and battery are already present. If you want to add custom log variable that has to be done in C in the Crazyflie firmware.