-
Hey all, recently I started to work into logging with crazyswarm and ROS. So far I come up with the following approaches
Now my question is, whether it is possible to get more parameters like the full State of the drone during the flight? Is there a way to get these logging parameters in python while flying? I thought about writing a method similar to position for the full state, but this would require some heavy modification of the 'crazyswarm_server.cpp' file. Kind regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
If you just want the full pose, you can also enable logging of the pose. Then, there will be a ROS topic of the form In order to use the result in your Python code, you have to subscribe to the ROS topic on the Python side - no modification of the C++ code needed. A subscriber will get a callback whenever new data is available (see the ROS documentation/tutorial). |
Beta Was this translation helpful? Give feedback.
If you just want the full pose, you can also enable logging of the pose. Then, there will be a ROS topic of the form
/cf<x>/pose
. If you want custom logging variables, you use the method 1, that you described.In order to use the result in your Python code, you have to subscribe to the ROS topic on the Python side - no modification of the C++ code needed. A subscriber will get a callback whenever new data is available (see the ROS documentation/tutorial).