[Documentation] [TitleIndex] [WordIndex

Transforms

In order to integrate more easily with other ROS tools, the microstrain_inertial_driver supports publishing several different transforms.

Frame IDs

When publishing transforms, we will use a configurable set of frame ids. The table below lists the frame IDs, their defaults, and what they should represent. Each of these names can be found in the params.yml and can be modified by the user.

Frame ID

Default

Description

frame_id

imu_link

Represents the location of the sensor itself. All sensor and filter measurements will be published in this frame ID

mount_frame_id

base_link

Represents the frame that the sensor is mounted on. We will never publish messages in this frame. It's main purpose it in conjunction with mount_to_frame_id_transform

map_frame_id

map

For more information, see the map section of REP 105

earth_frame_id

earth

For more information, see the earth section of REP 105

gnss1_frame_id

gnss_1_antenna_link

Represents the location of antenna 1. All GNSS measurements from antenna 1 will be reported in this frame ID

gnss2_frame_id

gnss_2_antenna_link

Represents the location of antenna 2. All GNSS measurements from antenna 2 will be reported in this frame ID

odometer_frame_id

odometer_link

Represents the location of the odometer attached to the device (GQ7 only right now). All measurements from the odometer will be reported in this frame ID

target_frame_id

base_link

Should be set to whatever Frame ID you want to publish a transform to. For more information see Global and Relative

Transform Mode

The transforms we publish or do not publish is controlled by the tf_mode parameter. Below are the different options.

Off

The driver will operate in this mode when tf_mode: 0.

In this mode, the driver will not publish any dynamic transforms. What this means is that transforms containing global or relative position information will not be published. However, see Independently Controlled Transforms for a list of transforms that may still be published in this mode.

Global

The driver will operate in this mode when tf_mode: 1

In this mode, the driver will publish the following transforms:

This mode has been added for those who want to operate in an entirely global context. Most standard ROS tools do not play nicely with this, and it is recommended to instead use relative mode if you wish to use tools such as rviz, nav2, move_base, etc.

Relative

The driver will operate in this mode when tf_mode: 2

In this mode, the driver will publish the following transforms:

This mode has been added to allow for easy integration with tools such as rviz, nav2, move_base etc.

Independently Controlled Transforms

The following frames may be published regardless of tf_mode. See the list below for more information on the parameters to use to configure them and what they represent.


2024-05-04 13:01