Get Crazyflie sensor data from ROS

Firmware/software/electronics/mechanics
Post Reply
thanhvu94
Member
Posts: 31
Joined: Fri Mar 24, 2017 6:49 pm

Get Crazyflie sensor data from ROS

Post 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!
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Get Crazyflie sensor data from ROS

Post 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.
Post Reply