Replies: 2 comments 1 reply
-
Sorry for the delay in answering this! Odom is a standard log block, but it seems to contain gyro values so that might be enough for you? Or else you can add your own log blocks that gets them from the state. You can find the explanation here in the crazyswarm2 doc : https://imrclab.github.io/crazyswarm2/usage.html#crazyflies-yaml You can find different logging variable options here in the bitcraze doc: https://www.bitcraze.io/documentation/repository/crazyflie-firmware/master/api/logs/ And yes you can log both linear velocity and odometry with no issue, but just be aware if they are part of different log blocks they'll come in at slightly different timestamps if you care about that in particular. |
Beta Was this translation helpful? Give feedback.
-
I guess custom topics do not work in simulation (both |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am working with Crazysim (so cflib backend) and I am trying to access the angular speeds of drones of the swarm. To do so I have modified the crazyflies.yaml file:
Original file in Crazysim, logging is added in the cf_sim robot type declaration:
As you can see there is a custom logging of the velocity of the drones.
Then I add the logging of the default topic "odom" that contains a twist message with angular velocity:
After building, sourcing etc... When I try to see what is published on "velocity" topics from the custom topics, nothing happens (but I got the angular velocity from the twist part of the odom topic).
So I have looked at how the odom logging is implemented and I think that it is on this part of the code:
crazyswarm2/crazyflie/scripts/crazyflie_server.py
Lines 531 to 583 in 9642e57
So apparently as the custom logging of velocity and the default logging of odom are trying to access the same variables (kalman.statePX, ...), it is not possible to log them both.
Is logging the odometry the good method to access the angular velocity of drones of the swarm ?
Is it possible to still have the odometry and velocity logging in the same time ?
I know that I can use the linear velocity part of the twist of the odom message, but I want to know if this is an intended behavior or a problem.
Beta Was this translation helpful? Give feedback.
All reactions