Skip to content

Add default_topics.imu as sensor_msgs/Imu - #878

Merged
knmcguire merged 7 commits into
IMRCLab:mainfrom
alvgaona:feat/default-topics-imu
Aug 6, 2026
Merged

Add default_topics.imu as sensor_msgs/Imu#878
knmcguire merged 7 commits into
IMRCLab:mainfrom
alvgaona:feat/default-topics-imu

Conversation

@alvgaona

@alvgaona alvgaona commented Jul 29, 2026

Copy link
Copy Markdown

Closes #601

2026-07-29 at 10 25 21

I've added sensor_msgs/Imu and 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.

  • Units are acc: m s^-2 and gyro: rad/s
  • No orientation as the IMU does not provide this information. Orientation is estimated with other sensors.
  • Covariances are not estimated

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
@alvgaona alvgaona changed the title feat: add default_topics.imu as sensor_msgs/Imu Add default_topics.imu as sensor_msgs/Imu Jul 29, 2026

@knmcguire knmcguire left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread crazyflie_server_py/crazyflie_server_py/crazyflie_server.py Outdated
Comment thread crazyflie/config/crazyflies.yaml Outdated
Comment thread docs2/tutorials.rst Outdated
Comment thread docs2/usage.rst Outdated
alvgaona and others added 2 commits August 2, 2026 22:16
Co-authored-by: Kimberly N. McGuire <kimberleymcguire@gmail.com>
Co-authored-by: Kimberly N. McGuire <kimberleymcguire@gmail.com>
@alvgaona

alvgaona commented Aug 2, 2026

Copy link
Copy Markdown
Author

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.

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.
@alvgaona

alvgaona commented Aug 3, 2026

Copy link
Copy Markdown
Author

Hi @knmcguire,
I believe I've fulfilled your request. Let me know if anything else has to be done.

@alvgaona
alvgaona requested a review from knmcguire August 3, 2026 10:00

@knmcguire knmcguire left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good to me! thanks for the updates

@knmcguire
knmcguire merged commit 2b020fc into IMRCLab:main Aug 6, 2026
6 checks passed
@alvgaona
alvgaona deleted the feat/default-topics-imu branch August 6, 2026 08:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make an ROS 2 topic for BMI088 IMU data (gyro and accelerometer) from Crazyflie 2.1

2 participants