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!
Get Crazyflie sensor data from ROS
Re: Get Crazyflie sensor data from ROS
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.
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.