Skip to content

Add unit and frame metadata to MagnetometerSensor output#595

Open
bperseghetti wants to merge 1 commit intogazebosim:gz-sensors10from
rudislabs:pr-wmm
Open

Add unit and frame metadata to MagnetometerSensor output#595
bperseghetti wants to merge 1 commit intogazebosim:gz-sensors10from
rudislabs:pr-wmm

Conversation

@bperseghetti
Copy link
Member

@bperseghetti bperseghetti commented Mar 8, 2026

Summary

Adds SetFieldUnit() and SetCoordinateFrame() methods to MagnetometerSensor so the system plugin can specify which unit and coordinate frame the published field vector uses. The sensor now populates the new unit and frame fields in every published Magnetometer message. Defaults to Gauss/ENU.

Depends on:
gazebosim/gz-msgs#568

Needed for:
gazebosim/gz-sim#3373

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)

Add SetFieldUnit() and SetCoordinateFrame() methods to
MagnetometerSensor so the system plugin can specify which unit
and coordinate frame the published field vector uses. The sensor
now populates the new unit and frame fields in every published
Magnetometer message. Defaults to Gauss/ENU.

Signed-off-by: Benjamin Perseghetti <bperseghetti@rudislabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🪵 jetty Gazebo Jetty

Projects

Status: Inbox

Development

Successfully merging this pull request may close these issues.

1 participant