Replies: 1 comment 5 replies
-
I agree that the naming of cmd_vel_legacy is not good. The issue with that functionality is that parameters can entirely change the behavior, i.e. the values in https://github.com/IMRCLab/crazyflie-firmware/blob/a25e8fb2254f6d5be54ad57566b3b846a97de93b/src/modules/src/crtp_commander_rpyt.c#L226-L275 decide if these commands are actually attitudes or something else. To me a proper solution would require a firmware change, by adding a additional "generic" type to https://github.com/bitcraze/crazyflie-firmware/blob/master/src/modules/src/crtp_commander_generic.c. Then the behavior is clearly defined and it would make sense to add a custom msg and topic, like we did for some of the other "generic" commands. What's your take on that @knmcguire ? |
Beta Was this translation helpful? Give feedback.
-
Currently the only ROS2 interface for the attitude and thrust setpoint is through the cmd_vel_legacy function. However, this option isn't intuitive without looking at the code to figure out the twist to attitude setpoint mapping. Would there be interest in an attitude setpoint ROS2 interface? This would be similar to how I did it in my Crazyswarm2 fork with a custom msg and modifications to the crazyflie_server.py.
Beta Was this translation helpful? Give feedback.
All reactions