Add default_topics.imu as sensor_msgs/Imu - #878
Merged
Conversation
Publish accelerometer and gyroscope on both cpp and cflib backends as an opt-in firmware_logging default topic. Convert firmware units (g, deg/s) to SI, mark orientation unavailable, and document the topic. Closes IMRCLab#601
knmcguire
requested changes
Aug 2, 2026
knmcguire
left a comment
Collaborator
There was a problem hiding this comment.
Thanks! Just some nitpicks here in there.
Was this PR generated or assisted by an LLM tool by any chance? That is okay in our book but just such that we are aware for the review.
Co-authored-by: Kimberly N. McGuire <kimberleymcguire@gmail.com>
Co-authored-by: Kimberly N. McGuire <kimberleymcguire@gmail.com>
Author
This PR was generated by me. I was indeed assisted by an LLM to find a good solution. 😄 |
The wrapped comment introduced a trailing space, which failed flake8 with W291 across all build_docker jobs.
Give pose, odom and scan the same message class annotation as imu in the RVIZ2 default topics list, and drop the imu parenthetical so the entries are uniform. Also remove the commented imu block from crazyflies.yaml; not all default topics are listed there and the documentation covers the options.
Author
|
Hi @knmcguire, |
knmcguire
approved these changes
Aug 6, 2026
knmcguire
left a comment
Collaborator
There was a problem hiding this comment.
looks good to me! thanks for the updates
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #601
I've added
sensor_msgs/Imuand its corresponding topic to be published out of the box. The implementation is perfectly aligned with the code architecture, and the feature is just additive.The work has been validated on a real Crazyflie 2.1 Brushless by publishing the info via radio and using crazyswarm2 to create the ROS 2 topics. I made a post about it using Rerun to visualize the IMU.
acc: m s^-2andgyro: rad/s