Skip to content

Software

adi_imu (imu_ros2)

By Analog Devices, Inc., United States (checked on github.com/analogdevicesinc (opens in a new tab)), from github.com/analogdevicesinc/imu_ros2 (opens in a new tab)

  • Perception
  • Driver or SDK
  • Apache-2.0

A ROS2 node that reads data from Analog Devices MEMS inertial measurement units and publishes it on ROS2 topics, while also configuring the devices.

Facts

GitHub stars
34read on 27 Nov 2026
Last update
18 Aug 2026Newest commit on lyrical
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Intermediate
Hardware it needs, as the project states it
A Raspberry Pi 3 or 4 running the adis16475 Linux kernel driver and LibIIO, with an EVAL-ADISIMU1-RPIZ board connecting a supported ADIS IMU; the node can run on the same Pi or on a separate ROS2 Humble client over a network.

Checked on GitHub on 27 Nov 2026.

Licenses

Code
Apache-2.0 (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (Apache-2.0) at commit 1f2ce90 (opens in a new tab), on 27 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Reads acceleration, gyroscope, delta velocity, delta angle and temperature from supported ADIS IMUs and publishes them on several topics.
  • Offers topic modes selected by a parameter, including the standard ROS2 imu message type.
  • Can estimate IMU noise covariance with static, Welford, sliding window, EWMA or Kalman algorithms.
  • Adaptive covariance methods only update while the sensor is stationary, judged by gyro and accelerometer thresholds.
  • Publishes diagnostic and device identification data (product ID, serial number, firmware) on their own topics, each switchable by a parameter.
  • Supports local and remote operation through LibIIO, with the device selected by name and an optional context string.

Robotheca's summary of the project's documents, not the creator's words.

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
Apache-2.0. Commercial use: Yes. Where it was read
Install
In the creator's words: The project's website (opens in a new tab)
Maintenance
Maintained, last commit on 18 Aug 2026.

Use it

How to install it, in the creator's words: The project's website (opens in a new tab)

Robotheca doesn't review code. Read it before running it.

Files and versions

Facts read at commit 1f2ce90

Robotheca read the repository at two versions: the summary at ac8fab0 and the facts and the README at 1f2ce90 (read on 27 Nov 2026).

Robotheca never hosts the code: each link goes to the creator's own page.

The README

The creator's own README, copied as written: README.rst by Analog Devices, Inc., at commit 1f2ce90, under Apache-2.0 (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

adi_imu - ROS2 driver for for ADI's IMUs

.. contents:: :depth: 2

Overview

Analog Devices offers a series of precision, miniature microelectromechanical system (MEMS) inertial measurement units (IMUs) that include a triaxial gyroscope and a triaxial accelerometer. Each inertial combines with signal conditioning that optimizes dynamic performance.

The factory calibration characterizes each sensor for sensitivity, bias, alignment, linear acceleration (gyroscope bias), and point of percussion (accelerometer location). As a result, each sensor has dynamic compensation formulas that provide accurate sensor measurements over a broad set of conditions.

Getting Started ^^^^^^^^^^^^^^^

To help you quickly get started with the adi_iio package, we have organized detailed documentation into several sections:

  • For information on prerequisites, repository setup, and building the package, please refer to the Using imu_ros2 repository_ section.
  • For information on running the adi_imu node with a local client or a remote client, please refer to the Run adi_imu node_ section.
  • For information on topics, parameters, and examples, please refer to the adi_imu node description_ section.
  • For example on how to use the adi_imu node, please refer to the Examples_ section.

Getting Help ^^^^^^^^^^^^

  • Issue Tracker: Report bugs, request features, or submit technical queries via our Issue Tracker.
  • Further Guidance: For additional communication guidelines, refer to COMMUNICATION <COMMUNICATION.md>_.

Contributing ^^^^^^^^^^^^

Contributions are key to our project’s success. Before submitting changes:

  • Familiarize yourself with our code and testing conventions.
  • Consult the CONTRIBUTING.md <CONTRIBUTING.md>_ for detailed instructions.
  • Ensure your code adheres to our design values and guidelines.

License ^^^^^^^

This project is licensed under the Apache License, Version 2.0 LICENSE <LICENSE>_.

The product makes use of third party and open source software. The licenses and notices for this software are listed at: imu_ros2 - Third Party and Open Source Software_.

Changelog ^^^^^^^^^

Refer to our CHANGELOG <CHANGELOG.rst>_ file for version history and release notes.

Supported Devices
  • ADIS16465 <https://www.analog.com/ADIS16465>_
  • ADIS16467 <https://www.analog.com/ADIS16467>_
  • ADIS16470 <https://www.analog.com/ADIS16470>_
  • ADIS16475 <https://www.analog.com/ADIS16475>_
  • ADIS16477 <https://www.analog.com/ADIS16477>_
  • ADIS16500 <https://www.analog.com/ADIS16500>_
  • ADIS16501 <https://www.analog.com/ADIS16501>_
  • ADIS16505 <https://www.analog.com/ADIS16505>_
  • ADIS16507 <https://www.analog.com/ADIS16507>_
  • ADIS16545 <https://www.analog.com/ADIS16545>_
  • ADIS16547 <https://www.analog.com/ADIS16547>_
  • ADIS16575 <https://www.analog.com/ADIS16575>_
  • ADIS16576 <https://www.analog.com/ADIS16576>_
  • ADIS16577 <https://www.analog.com/ADIS16577>_
Applications
  • Navigation, stabilization, and instrumentation
  • Unmanned and autonomous vehicles
  • Smart agriculture and construction machinery
  • Factory/industrial automation, robotics
  • Virtual/augmented reality
  • Internet of Moving Things
Using imu_ros2 repository

This repository implements a ROS2 node that reads data from ADI IMU devices and publishes the read data on various topics. The node is also able to configure the IMU devices.

Prerequisites ^^^^^^^^^^^^^

imu_ros2 can be used with ROS2 humble distribution. To install it you may follow the documentation available here: https://docs.ros.org/en/humble/Installation.html (opens in a new tab)

imu_ros2 is using LibIIO v0.25. To install LibIIO you may follow the documentation available here: https://wiki.analog.com/resources/tools-software/linux-software/libiio (opens in a new tab)

imu_ros2 is compatible with adis16475 Linux Kernel Driver which can be found here: https://github.com/torvalds/linux/blob/master/drivers/iio/imu/adis16475.c (opens in a new tab)

Evaluation setup - Required hardware with remote client ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • Raspberry Pi 3 or 4 with adis16475 driver and LibIIO installed.

  • EVAL-ADISIMU1-RPIZ <https://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/eval-adisimu1-rpiz.html>_ for connecting ADI IMUs to Raspberry Pi (with ribbon cable). More information about EVAL-AIDSIMU1-RPIZ connection to RPI can be found here: https://wiki.analog.com/resources/eval/user-guides/circuits-from-the-lab/eval-adisimu1-rpiz (opens in a new tab)

  • Any of the following supported IMUs connected to the Raspberry Pi using EVAL-ADISIMU1-RPIZ: ADIS16465 <https://www.analog.com/ADIS16465>_ ADIS16467 <https://www.analog.com/ADIS16467>_ ADIS16470 <https://www.analog.com/ADIS16470>_ ADIS16475 <https://www.analog.com/ADIS16475>_ ADIS16477 <https://www.analog.com/ADIS16477>_ ADIS16500 <https://www.analog.com/ADIS16500>_ ADIS16501 <https://www.analog.com/ADIS16501>_ ADIS16505 <https://www.analog.com/ADIS16505>_ ADIS16507 <https://www.analog.com/ADIS16507>_ ADIS16545 <https://www.analog.com/ADIS16545>_ ADIS16547 <https://www.analog.com/ADIS16547>_ ADIS16575 <https://www.analog.com/ADIS16575>_ ADIS16576 <https://www.analog.com/ADIS16576>_ ADIS16577 <https://www.analog.com/ADIS16577>_

  • A client running ROS2 Humble with LibIIO installed on which adi_imu node is started.

  • A network connection between Raspberry Pi and the client running the adi_imu node.

The image below shows the information flow from the IMU up to the adi_imu node when using a remote client.

.. figure:: doc/images/architecture_remote_client.png :width: 721 :align: center :alt: Architecture Remote Client

Evaluation setup - Required hardware with local client ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  • Raspberry Pi 3 or 4 with adis16475 driver, LibIIO and ROS2 humble installed.

  • EVAL-ADISIMU1-RPIZ <https://www.analog.com/en/design-center/evaluation-hardware-and-software/evaluation-boards-kits/eval-adisimu1-rpiz.html>_ for connecting ADI IMUs to Raspberry Pi (with ribbon cable). More information about EVAL-AIDSIMU1-RPIZ connection to RPI can be found here: https://wiki.analog.com/resources/eval/user-guides/circuits-from-the-lab/eval-adisimu1-rpiz (opens in a new tab)

  • Any of the following supported IMUs connected to the Raspberry Pi using EVAL-ADISIMU1-RPIZ: ADIS16465 <https://www.analog.com/ADIS16465>_ ADIS16467 <https://www.analog.com/ADIS16467>_ ADIS16470 <https://www.analog.com/ADIS16470>_ ADIS16475 <https://www.analog.com/ADIS16475>_ ADIS16477 <https://www.analog.com/ADIS16477>_ ADIS16500 <https://www.analog.com/ADIS16500>_ ADIS16501 <https://www.analog.com/ADIS16501>_ ADIS16505 <https://www.analog.com/ADIS16505>_ ADIS16545 <https://www.analog.com/ADIS16545>_ ADIS16547 <https://www.analog.com/ADIS16547>_ ADIS16507 <https://www.analog.com/ADIS16507>_ ADIS16575 <https://www.analog.com/ADIS16575>_ ADIS16576 <https://www.analog.com/ADIS16576>_ ADIS16577 <https://www.analog.com/ADIS16577>_

The image below shows the information flow from the IMU up to the adi_imu node when using a local client.

.. figure:: doc/images/architecture_local_client.png :width: 401 :align: center :alt: Architecture Local Client

Build adi_imu from sources ^^^^^^^^^^^^^^^^^^^^^^^^^^^

If you are not using this node in an existing project, create a new folder ros2_ws, then create the src folder in ros2_ws. Go to src folder (either in ros2_ws or in your project), and clone the adi_imu repository:

.. code-block:: bash

    git clone https://github.com/analogdevicesinc/imu_ros2.git

Go back to your main project folder or ros2_ws folder and run the following command:

.. code-block:: bash

    colcon build

Check wether the build is successful.

.. _run_adi_imu_node:

Run adi_imu node

Run adi_imu node with local client ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If the ROS2 environment is running on the same processing unit to which the IMU is connected to (e.g. on Raspberry Pi), run the following command to start the adi_imu node:

.. code-block:: bash

    source install/setup.sh
    ros2 run adi_imu adi_imu_node --ros-args \
            -p imu_device_name:="<your_imu_device_name>"

.. warning:: Please make sure you are running the commands above with sudo. LibIIO is using debugfs to retrieve some data from the adis16475 driver, which can only be accessed by the root user.

For executing system tests, run the following commands, after the adi_imu node has been started:

.. warning:: Hardware tests must be explicitly enabled by setting the environment variable IMU_ROS2_ENABLE_HW_TESTS=1 before running the colcon build command. By default, only lint tests are enabled.

.. code-block:: bash

    # Store the ADIS under test name
    export IMU_DEVICE_NAME="<ADIS_DEVICE_NAME>"

    source install/setup.sh
    cd install/adi_imu/lib/adi_imu_test

    # set measured_data_topic_selection to 0 to test VelAngTempSubscriber (not available for adis1646x)
    ros2 param set /adi_imu_node measured_data_topic_selection 0
    ./adi_imu_test_node \
            --gtest_filter="VelAngTempSubscriberTest*" \
            --ros-args -p imu_device_name:=${IMU_DEVICE_NAME}

    # set measured_data_topic_selection to 1 to test AccelGyroTempSubscriber
    ros2 param set /adi_imu_node measured_data_topic_selection 1
    ./adi_imu_test_node \
            --gtest_filter="AccelGyroTempSubscriberTest*" \
            --ros-args -p imu_device_name:=${IMU_DEVICE_NAME}

    # set measured_data_topic_selection to 2 to test ImuSubscriber
    ros2 param set /adi_imu_node measured_data_topic_selection 2
    ./adi_imu_test_node \
            --gtest_filter="ImuSubscriberTest*" \
            --ros-args -p imu_device_name:=${IMU_DEVICE_NAME}

    # set measured_data_topic_selection to 3 to test ImuFullMeasuredDataSubscriber
    ros2 param set /adi_imu_node measured_data_topic_selection 3
    ./adi_imu_test_node \
            --gtest_filter="ImuFullMeasuredDataSubscriberTest*" \
            --ros-args -p imu_device_name:=${IMU_DEVICE_NAME}

    # test ImuIdentificationSubscriber
    ./adi_imu_test_node \
            --gtest_filter="ImuIdentificationSubscriberTest*" \
            --ros-args -p imu_device_name:=${IMU_DEVICE_NAME}

    # test ImuDiagSubscriber
    ./adi_imu_test_node \
            --gtest_filter="ImuDiagSubscriberTest*" \
            --ros-args -p imu_device_name:=${IMU_DEVICE_NAME}

Run adi_imu node with remote client ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

If the ROS2 environment is running on a different processing unit (e.g. personal computer) than the one to which the IMU is connected to (e.g. Raspberry Pi), make sure the two processing units are connected to the same network, and find out the IP address of the processing unit to which the IMU is connected to (e.g. Raspberry Pi) then run the following command to start the adi_imu node:

.. code-block:: bash

    source install/setup.sh
    ros2 run adi_imu adi_imu_node --ros-args \
            -p imu_device_name:="<your_imu_device_name>" \
            -p iio_context_string:="ip:'processing_unit_IP_address'"

For executing system tests, run the following commands, after the adi_imu node has been started:

.. warning:: Hardware tests must be explicitly enabled by setting the environment variable IMU_ROS2_ENABLE_HW_TESTS=1 before running the colcon build command. By default, only lint tests are enabled.

.. code-block:: bash

    # Store the URI and ADIS under test names
    export IIO_CONTEXT_STRING="ip:<processing_unit_IPv4_address>"
    export IMU_DEVICE_NAME="<ADIS_DEVICE_NAME>"

    source install/setup.sh
    cd install/adi_imu/lib/adi_imu_test

    # set measured_data_topic_selection to 0 to test VelAngTempSubscriber (not available for adis1646x)
    ros2 param set /adi_imu_node measured_data_topic_selection 0
    ./adi_imu_test_node \
            --gtest_filter="VelAngTempSubscriberTest*" \
            --ros-args \
                    -p iio_context_string:=${IIO_CONTEXT_STRING} \
                    -p imu_device_name:=${IMU_DEVICE_NAME}

    # set measured_data_topic_selection to 1 to test AccelGyroTempSubscriber
    ros2 param set /adi_imu_node measured_data_topic_selection 1
    ./adi_imu_test_node \
            --gtest_filter="AccelGyroTempSubscriberTest*" \
            --ros-args \
                    -p iio_context_string:=${IIO_CONTEXT_STRING} \
                    -p imu_device_name:=${IMU_DEVICE_NAME}

    # set measured_data_topic_selection to 2 to test ImuSubscriber
    ros2 param set /adi_imu_node measured_data_topic_selection 2
    ./adi_imu_test_node \
            --gtest_filter="ImuSubscriberTest*" \
            --ros-args \
                    -p iio_context_string:=${IIO_CONTEXT_STRING} \
                    -p imu_device_name:=${IMU_DEVICE_NAME}

    # set measured_data_topic_selection to 3 to test ImuFullMeasuredDataSubscriber
    ros2 param set /adi_imu_node measured_data_topic_selection 3
    ./adi_imu_test_node \
            --gtest_filter="ImuFullMeasuredDataSubscriberTest*" \
            --ros-args \
                    -p iio_context_string:=${IIO_CONTEXT_STRING} \
                    -p imu_device_name:=${IMU_DEVICE_NAME}

    # test ImuIdentificationSubscriber
    ./adi_imu_test_node \
            --gtest_filter="ImuIdentificationSubscriberTest*" \
            --ros-args \
                    -p iio_context_string:=${IIO_CONTEXT_STRING} \
                    -p imu_device_name:=${IMU_DEVICE_NAME}

    # test ImuDiagSubscriber
    ./adi_imu_test_node \
            --gtest_filter="ImuDiagSubscriberTest*" \
            --ros-args \
                    -p iio_context_string:=${IIO_CONTEXT_STRING} \
                    -p imu_device_name:=${IMU_DEVICE_NAME}
adi_imu node description

Published topics ^^^^^^^^^^^^^^^^

imufullmeasureddata topic contains acceleration, gyroscope, delta velocity, delta angle and temperature data, acquired by polling the IMU device (data ready signal is ignored). Messages are published on this topic when the measured_data_topic_selection parameter is set to 3. This topic has the following definition:

.. code-block:: bash

std_msgs/Header header
    geometry_msgs/Vector3 linear_acceleration
    geometry_msgs/Vector3 angular_velocity
    geometry_msgs/Vector3 delta_velocity
    geometry_msgs/Vector3 delta_angle
    float64 temperature

imu topic it's the standard imu message type as described here: http://docs.ros.org/en/noetic/api/sensor_msgs/html/msg/Imu.html (opens in a new tab). Messages are published on this topic when the measured_data_topic_selection parameter is set to 2. This topic has the following definition:

.. code-block:: bash

std_msgs/Header header
    geometry_msgs/Quaternion orientation
    float64[9] orientation_covariance
    geometry_msgs/Vector3 angular_velocity
    float64[9] angular_velocity_covariance
    geometry_msgs/Vector3 linear_acceleration
    float64[9] linear_acceleration_covariance

accelgyrotempdata topic contains acceleration, gyroscope and temperature data, acquired on each data ready impulse. Messages are published on this topic when the measured_data_topic_selection parameter is set to 1. This topic has the following definition:

.. code-block:: bash

std_msgs/Header header
    geometry_msgs/Vector3 linear_acceleration
    geometry_msgs/Vector3 angular_velocity
    float64 temperature

velangtempdata topic contains delta velocity, delta angle and temperature data, acquired on each data ready impulse. Messages are published on this topic when the measured_data_topic_selection parameter is set to 0. Some devices do not support publishing messages with this type. This topic has the following definition:

.. code-block:: bash

std_msgs/Header header
    geometry_msgs/Vector3 delta_velocity
    geometry_msgs/Vector3 delta_angle
    float64 temperature

imudiagdata topic contains various diagnosis flags, Messages are published on this topic continuously.

imuidentificationdata topic contains device specific identification data. Messages are published on this topic continuously. This topic has the following definition:

.. code-block:: bash

std_msgs/Header header
    string firmware_revision
    string firmware_date
    uint32 product_id
    uint32 serial_number
    string gyroscope_measurement_range

Node parameters ^^^^^^^^^^^^^^^

imu_device_name """""""""""""""

The adi_imu node requires the name of the IMU device to be set using the imu_device_name parameter. This parameter is used at runtime to identify the specific ADIS device and load its supported capabilities, including available parameters, measurement ranges, and feature sets.

Supported Device Names:

The following device names are supported (case-sensitive):

  • adis16465-1, adis16465-2, adis16465-3
  • adis16467-1, adis16467-2, adis16467-3
  • adis16470
  • adis16475-1, adis16475-2, adis16475-3
  • adis16477-1, adis16477-2, adis16477-3
  • adis16500
  • adis16501
  • adis16505-1, adis16505-2, adis16505-3
  • adis16507-1, adis16507-2, adis16507-3
  • adis16545-1, adis16545-2, adis16545-3
  • adis16547-1, adis16547-2, adis16547-3
  • adis16550
  • adis16575-2, adis16575-3
  • adis16576-2, adis16576-3
  • adis16577-2, adis16577-3

iio_context_string """"""""""""""""""

The adi_imu driver is using LibIIO and thus a LibIIO context should be given when starting the node, using iio_context_string parameter. If the parameter is not set, the default value will be used, which is 'local:', suitable for running the adi_imu node on the Raspberry Pi. If the adi_imu node is not running on the Raspberry Pi, the parameter should be given when starting the adi_imu node and it should have the following format: 'ip:rpi_ip_address', where rpi_ip_address is the IP address of the Raspberry Pi.

measured_data_topic_selection """""""""""""""""""""""""""""

The adi_imu driver can publish the measured data in various mode, based on measured_data_topic_selection parameter value, as shown below:

  • 0: measured data is published on /velangtempdata topic - not available for adis1646x; sampling is performed on each data ready impulse
  • 1: measured data is published on /accelgyrotempdata topic; sampling is performed on each data ready impulse
  • 2: measured data is published on /imu topic; sampling performed on each data ready impulse
  • 3: measured data is published on /imufullmeasureddata topic (default); sampling is performed by polling the data registers without taking into consideration the data ready impulse

diag_data_enable """"""""""""""""

Type: boolean Default: true

Controls whether the IMU diagnostic data publisher is enabled. When enabled, the node will continuously poll diagnostic registers to read and publish device status information including status flags, error conditions, and health monitoring data on the /imudiagdata topic.

Setting this parameter to false will disable diagnostic data publishing, reducing system overhead and network traffic.

ident_data_enable """""""""""""""""

Type: boolean Default: true

Controls whether the IMU identification data publisher is enabled. When enabled, the node will read and publish device identification information such as product ID, serial number, firmware version, and firmware date on the /imuidentificationdata topic.

Setting this parameter to false will disable identification data publishing.

frame_id """"""""

Type: string Default: "imu"

The TF frame ID for the IMU sensor (e.g., source_x/imu). Useful when multiple IMUs are used in the same system to uniquely identify each sensor's data.

IMU covariance parameters """"""""""""""""""""""""""

The adi_imu ROS2 node allows for data-driven, IMU noise covariance estimation. The following algorithms are available:

  • Static: Covariances are preset by the user and do not change during IMU operation time.
  • Welford: IMU should be static while the node computes covariances using the Welford's algorithm. After the calibration completes, variances are frozen.
  • Sliding Window: Maintains a fixed-size buffer of recent samples and continuously recomputes variance over that window. Adapts to changing noise characteristics while the IMU operates.
  • Exponentially Weighted Moving Average (EWMA): Continuously updates variance estimates using exponential smoothing, where recent samples have higher weight. Provides smooth adaptation with O(1) memory usage.
  • Kalman: Uses a scalar Kalman filter to estimate variance as a hidden state, treating squared residuals (between current IMU measurement and the estimated mean) as noisy measurements. Provides optimally smoothed, adaptive variance estimates.

To avoid covariance inflation caused by dynamic changes in the measurement mean, a motion detection mechanism is used. Adaptive covariance algorithms (Sliding Window, EWMA, Kalman) only update their estimates when the sensor is stationary. The sensor is considered stationary when:

  • Gyroscope magnitude is below gyro_threshold (rad/s)
  • Accelerometer magnitude deviation from gravity is below accel_threshold (m/s²)

During motion, covariance estimates are frozen at their last stationary values.

Parameters which are used in configuring and fine-tunning the covariance estimation are listed in the table below:

+---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |Parameter Name |Parameter Description |Parameter type |Default | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.enable |Enable/Disable covariance estimation and publishing inside the ROS2 sensor_msgs::msg::Imu /imu topic (measured_data_topic_selection=2). |bool |false | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.algorithm |Desired algorithm used for covariance estimation. Available choices: "static", "welford", "sliding_window", "ewma", "kalman". |string |"welford" | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.static.accel_variance_x |Static accelerometer X-axis variance (m/s^2)^2. |double |0.01 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.static.accel_variance_y |Static accelerometer Y-axis variance (m/s^2)^2. |double |0.01 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.static.accel_variance_z |Static accelerometer Z-axis variance (m/s^2)^2. |double |0.01 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.static.gyro_variance_x |Static gyroscope X-axis variance (rad/s)^2. |double |0.001 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.static.gyro_variance_y |Static gyroscope Y-axis variance (rad/s)^2. |double |0.001 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.static.gyro_variance_z |Static gyroscope Z-axis variance (rad/s)^2. |double |0.001 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.welford.calibration_samples |Number of samples used when estimating gyroscope and accelerometer covariances. Value must be > 0. |int |1000 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.welford.min_variance |Minimum variance floor for Welford algorithm. |double |1e-9 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.sliding_window.window_size |Number of samples in sliding window. Value must be > 0. |int |500 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.sliding_window.min_samples |Minimum samples before covariance is valid. Value must be > 0. |int |100 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.sliding_window.min_variance |Minimum variance floor for Sliding Window algorithm. |double |1e-9 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.ewma.alpha |EWMA smoothing factor (0 < alpha < 1). Higher = faster adaptation. |double |0.02 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.ewma.warmup_samples |Warmup samples berfore EWMA covariance is valid. Value must be > 0. |int |100 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.ewma.min_variance |Minimum variance floor for EWMA algorithm. |double |1e-9 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.kalman.process_noise_q |Kalman process noise Q (variance change rate). Larger = more adaptive. |double |1e-6 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.kalman.measurement_noise_r |Kalman measurement noise R (noise in variance observations). |double |1e-4 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.kalman.initial_variance |Initial variance estimate for Kalman filter. |double |1e-4 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.kalman.warmup_samples |Warmup samples before Kalman covariance estimates are valid. Value must be > 0. |int |100 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.kalman.min_variance |Minimum variance floor for Kalman filter. |double |1e-9 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.motion_detection.enable |Enable/Disable motion detection for adaptive covariance algorithms. (enable is recommended) |bool |true | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.motion_detection.gyro_threshold |Maximum gyroscope magnitude (rad/s) for stationary detection. Samples with higher angular rates are ignored during covariance estimation. |double |0.05 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+ |covariance.motion_detection.accel_threshold |Maximum accelerometer magnitude (m/s^2) for stationary detection. Samples with higher values are ignored during covariance estimation. |double |0.5 | +---------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------+----------------+-------------+

IMU parameters ^^^^^^^^^^^^^^

The adi_imu driver allows for IMU configuration. Not all parameters are available for a device. See https://github.com/analogdevicesinc/imu_ros2/tree/main/config (opens in a new tab) for chip specific configuration.

+---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | Parameter Name | Parameter Description | Parameter type | Parameter Range | ADIS1646X | ADIS1647X | ADIS1650X | ADIS1654X | ADIS1657X | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | accel_calibbias_x | x-axis acceleration offset correction | integer | -2147483648 up to 2147483647, step 1 | Supported | Supported | Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | accel_calibbias_y | y-axis acceleration offset correction | integer | -2147483648 up to 2147483647, step 1 | Supported | Supported | Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | accel_calibbias_z | z-axis acceleration offset correction | integer | -2147483648 up to 2147483647, step 1 | Supported | Supported | Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | anglvel_calibbias_x | x-axis angular velocity offset correction | integer | -2147483648 up to 2147483647, step 1 | Supported | Supported | Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | anglvel_calibbias_y | y-axis angular velocity offset correction | integer | -2147483648 up to 2147483647, step 1 | Supported | Supported | Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | filter_low_pass_3db_frequency | Low pass 3db frequency | integer | 10, 20, 70, 80, 164, 360, 720 | Supported | Supported | Supported | Possible values: 100 or 300 | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | sampling_frequency | Device sampling frequency | double | 1.0 up to max | max = 2000.0 | max = 2000.0 | max = 2000.0 | max = 4250.0 | max = 4000.0 | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | linear_acceleration_compensation | Linear acceleration compensation enable/disable | integer | 0 up to 1, step 1 | Supported | Supported | Supported | Not Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | point_of_percussion_alignment | Point of percussion alignment enable/disable | integer | 0 up to 1, step 1 | Supported | Supported | Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | bias_correction_time_base_control | Time base control | integer | 0 up to 12, step 1 | Supported | Supported | Not Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | x_axis_accelerometer_bias_correction_enable | x-axis accelerometer bias correction enable/disable | integer | 0 up to 1, step 1 | Supported | Supported | Not Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | y_axis_accelerometer_bias_correction_enable | y-axis accelerometer bias correction enable/disable | integer | 0 up to 1, step 1 | Supported | Supported | Not Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | z_axis_accelerometer_bias_correction_enable | z-axis accelerometer bias correction enable/disable | integer | 0 up to 1, step 1 | Supported | Supported | Not Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | x_axis_gyroscope_bias_correction_enable | x-axis gyroscope bias correction enable/disable | integer | 0 up to 1, step 1 | Supported | Supported | Not Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | y_axis_gyroscope_bias_correction_enable | y-axis gyroscope bias correction enable/disable | integer | 0 up to 1, step 1 | Supported | Supported | Not Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | z_axis_gyroscope_bias_correction_enable | z-axis gyroscope bias correction enable/disable | integer | 0 up to 1, step 1 | Supported | Supported | Not Supported | Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | command_to_execute | list of available commands to be executed, device specific | string | software_reset, flash_memory_test, flash_memory_update, sensor_self_test, factory_calibration_restore, bias_correction_update | All commands supported | All commands supported | All commands supported, except bias_correction_update | All commands supported, except flash_memory_test | All commands supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+ | internal_sensor_bandwidth | Internal sensor bandwidth | integer | 0 for wide bandwidth, 1 for 370 Hz | Not Supported | Not Supported | Supported | Not Supported | Supported | +---------------------------------------------+------------------------------------------------------------+----------------+-------------------------------------------------------------------------------------------------------------------------------+------------------------+------------------------+-------------------------------------------------------+--------------------------------------------------+------------------------+

Examples

adis1646x ^^^^^^^^^

Setup

adis1646x ROS2 driver with adis16467-1 connected to Raspberry Pi 4 Used device-tree for adis16475 Linux driver: https://github.com/analogdevicesinc/linux/blob/rpi-6.1.y/arch/arm/boot/dts/overlays/adis16475-overlay.dts (opens in a new tab) config.txt entries for device-tree overlay:

.. code-block:: bash

    dtoverlay=adis16475
    dtparam=device="adi,adis16467-1"
    dtparam=drdy_gpio25

The image below shows how the adis16467-1 device is connected to Raspberry Pi 4 using EVAL-ADISIMU1-RPIZ using Mounting Slot I with P7 Connector:

.. image:: doc/images/adis16467_1_rpi.jpg :align: center :alt: ADIS16467-1 with RPI4

Topic list

.. code-block:: bash

    ➜ ros2 topic list
    /accelgyrotempdata
    /imu
    /imudiagdata
    /imufullmeasureddata
    /imuidentificationdata

Parameter list

.. code-block:: bash

    ➜ ros2 param list adi_imu_node
    accel_calibbias_x
    accel_calibbias_y
    accel_calibbias_z
    anglvel_calibbias_x
    anglvel_calibbias_y
    anglvel_calibbias_z
    bias_correction_time_base_control
    command_to_execute
    filter_low_pass_3db_frequency
    iio_context_string
    linear_acceleration_compensation
    measured_data_topic_selection
    point_of_percussion_alignment
    sampling_frequency
    x_axis_accelerometer_bias_correction_enable
    x_axis_gyroscope_bias_correction_enable
    y_axis_accelerometer_bias_correction_enable
    y_axis_gyroscope_bias_correction_enable
    z_axis_accelerometer_bias_correction_enable
    z_axis_gyroscope_bias_correction_enable

Parameter dump

.. code-block:: bash

    ➜ ros2 param dump /adi_imu_node
    /adi_imu_node:
            ros__parameters:
                    accel_calibbias_x: 0
                    accel_calibbias_y: 0
                    accel_calibbias_z: 0
                    anglvel_calibbias_x: 0
                    anglvel_calibbias_y: 0
                    anglvel_calibbias_z: 0
                    bias_correction_time_base_control: 10
                    command_to_execute: no_command
                    filter_low_pass_3db_frequency: 720
                    iio_context_string: ip:192.168.0.1
                    linear_acceleration_compensation: 1
                    measured_data_topic_selection: 3
                    point_of_percussion_alignment: 1
                    sampling_frequency: 2000.0
                    x_axis_accelerometer_bias_correction_enable: 0
                    x_axis_gyroscope_bias_correction_enable: 1
                    y_axis_accelerometer_bias_correction_enable: 0
                    y_axis_gyroscope_bias_correction_enable: 1
                    z_axis_accelerometer_bias_correction_enable: 0
                    z_axis_gyroscope_bias_correction_enable: 1

Topic echo accelgyrotempdata

.. code-block:: bash

    ➜ ros2 param set /adi_imu_node measured_data_topic_selection 1
    Set parameter successful
    ➜ ros2 topic echo accelgyrotempdata
    header:
            stamp:
                    sec: 1698751163
                    nanosec: 610640655
            frame_id: accelgyrotempdata
    linear_acceleration:
            x: -0.12255231999999999
            y: 0.49020927999999997
            z: 10.245373952
    angular_velocity:
            x: 0.0077987840000000004
            y: -0.008912896
            z: 0.0023592960000000003
    temperature: 37.9
    ---
    header:
            stamp:
                    sec: 1698751163
                    nanosec: 611141470
            frame_id: accelgyrotempdata
    linear_acceleration:
            x: 0.036765696
            y: 0.47795404799999996
            z: 10.147332096
    angular_velocity:
            x: 0.0057671680000000005
            y: -0.006553600000000001
            z: 0.0
    temperature: 37.9

Topic echo imu

.. code-block:: bash

    ➜ ros2 param set /adi_imu_node measured_data_topic_selection 2
    Set parameter successful
    ➜ ros2 topic echo imu
    header:
            stamp:
                    sec: 1698746841
                    nanosec: 951239970
    frame_id: imu
    orientation:
            x: 0.0
            y: 0.0
            z: 0.0
            w: 1.0
    orientation_covariance:
            -1.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
    angular_velocity:
            x: -0.0021626880000000003
            y: -0.005046272
            z: -0.0015728640000000002
    angular_velocity_covariance:
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
    linear_acceleration:
            x: -0.073531392
            y: 0.0
            z: 9.98801408
    linear_acceleration_covariance:
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0

Topic echo imufullmeasureddata

.. code-block:: bash

    ➜ ros2 param set /adi_imu_node measured_data_topic_selection 3
    Set parameter successful
    ➜ ros2 topic echo imufullmeasureddata
    header:
            stamp:
                    sec: 1698747556
                    nanosec: 755176752
            frame_id: imufullmeasureddata
    linear_acceleration:
            x: 0.06316448599999999
            y: 0.04266031
            z: 9.86933827
    angular_velocity:
            x: -0.000793858
            y: -0.001786835
            z: -0.0019665010000000003
    delta_velocity:
            x: 2.3436e-05
            y: 8.184e-06
            z: 0.004929186
    delta_angle:
            x: 2.7e-07
            y: -1.28e-06
            z: -5.96e-07
    temperature: 41.0
    ---
    header:
            stamp:
                    sec: 1698747556
                    nanosec: 760426222
            frame_id: imufullmeasureddata
    linear_acceleration:
            x: 0.003555244
            y: 0.008432765
            z: 9.839817141
    angular_velocity:
            x: 4.0902e-05
            y: -0.003819203
            z: -0.0019095020000000002
    delta_velocity:
            x: 1.6926e-05
            y: -3.348e-06
            z: 0.004927512
    delta_angle:
            x: 1.98e-07
            y: -1.356e-06
            z: -1.092e-06
    temperature: 41.0

Topic echo imuidentificationdata

.. code-block:: bash

    ➜ ros2 topic echo /imuidentificationdata
    header:
            stamp:
                    sec: 1698747693
                    nanosec: 960557599
            frame_id: imuidentificationdata
    firmware_revision: '1.6'
    firmware_date: 08-29-2017
    product_id: 16467
    serial_number: 107
    gyroscope_measurement_range: +/-125_degrees_per_sec

Topic echo imudiagdata

.. code-block:: bash

    ➜ ros2 topic echo /imudiagdata
    header:
            stamp:
                    sec: 1698747757
                    nanosec: 309115737
            frame_id: imudiagdata
    diag_data_path_overrun: false
    diag_flash_memory_update_error: false
    diag_spi_communication_error: false
    diag_standby_mode: false
    diag_sensor_self_test_error: false
    diag_flash_memory_test_error: false
    diag_clock_error: false
    diag_flash_memory_write_count_exceeded_error: false
    flash_counter: 14

adis1650x ^^^^^^^^^

Setup

adis1650x ROS2 driver with adis16505-2 connected to Raspberry Pi 4 using a ribbon cable Used device-tree for adis16475 Linux driver: https://github.com/analogdevicesinc/linux/blob/rpi-6.1.y/arch/arm/boot/dts/overlays/adis16475-overlay.dts (opens in a new tab) config.txt entries for device-tree overlay:

.. code-block:: bash

    dtoverlay=adis16475
    dtparam=device="adi,adis16505-2"

The image below shows how the adis16467-1 device is connected to Raspberry Pi 4 using EVAL-ADISIMU1-RPIZ using Mounting Slot I with P7 Connector:

.. image:: doc/images/adis16505_2_rpi.jpg :align: center :alt: ADIS16505-2 with RPI4

Topic list

.. code-block:: bash

    ➜ ros2 topic list
    /accelgyrotempdata
    /imu
    /imudiagdata
    /imufullmeasureddata
    /imuidentificationdata
    /velangtempdata

Parameter list

.. code-block:: bash

    ➜ ros2 param list adi_imu_node
    accel_calibbias_x
    accel_calibbias_y
    accel_calibbias_z
    anglvel_calibbias_x
    anglvel_calibbias_y
    anglvel_calibbias_z
    command_to_execute
    filter_low_pass_3db_frequency
    iio_context_string
    internal_sensor_bandwidth
    linear_acceleration_compensation
    measured_data_topic_selection
    point_of_percussion_alignment
    sampling_frequency

Parameter dump

.. code-block:: bash

    ➜ ros2 param dump /adi_imu_node
    /adi_imu_node:
            ros__parameters:
                    accel_calibbias_x: 0
                    accel_calibbias_y: 0
                    accel_calibbias_z: 0
                    anglvel_calibbias_x: 0
                    anglvel_calibbias_y: 0
                    anglvel_calibbias_z: 0
                    command_to_execute: no_command
                    filter_low_pass_3db_frequency: 720
                    iio_context_string: ip:192.168.0.1
                    internal_sensor_bandwidth: 0
                    linear_acceleration_compensation: 1
                    measured_data_topic_selection: 3
                    point_of_percussion_alignment: 1
                    sampling_frequency: 2000.0

Topic echo velangtempdata

.. code-block:: bash

    ➜ ros2 param set /adi_imu_node measured_data_topic_selection 0
    Set parameter successful
    ➜ ros2 topic echo velangtempdata
    header:
            stamp:
                    sec: 1698753051
                    nanosec: 211437438
            frame_id: velangtempdata
    delta_velocity:
            x: 0.0
            y: 0.0
            z: 0.003014656
    delta_angle:
            x: -0.000393216
            y: 0.0
            z: 0.0
    temperature: 32.7
    ---
    header:
            stamp:
                    sec: 1698753051
                    nanosec: 212438253
            frame_id: velangtempdata
    delta_velocity:
            x: 0.0
            y: 0.0
            z: 0.003014656
    delta_angle:
            x: -0.000393216
            y: 0.0
            z: -0.000393216
    temperature: 32.7

Topic echo accelgyrotempdata

.. code-block:: bash

    ➜ ros2 param set /adi_imu_node measured_data_topic_selection 1
    Set parameter successful
    ➜ ros2 topic echo accelgyrotempdata
    header:
            stamp:
                    sec: 1698752813
                    nanosec: 865099477
            frame_id: accelgyrotempdata
    linear_acceleration:
            x: 1.513095168
            y: 6.326386688
            z: 7.5776
    angular_velocity:
            x: -0.012189696
            y: 0.009437184
            z: 0.001572864
    temperature: 32.6
    ---
    header:
            stamp:
                    sec: 1698752813
                    nanosec: 865597207
            frame_id: accelgyrotempdata
    linear_acceleration:
            x: 1.522794496
            y: 6.1833216
            z: 7.616397312
    angular_velocity:
            x: -0.017301504
            y: 0.009437184
            z: 0.001179648
    temperature: 32.6

Topic echo imu

.. code-block:: bash

    ➜ ros2 param set /adi_imu_node measured_data_topic_selection 2
    Set parameter successful
    ➜ ros2 topic echo imu
   header:
            stamp:
                    sec: 1698752385
                    nanosec: 697059208
            frame_id: imu
    orientation:
            x: 0.0
            y: 0.0
            z: 0.0
            w: 1.0
    orientation_covariance:
            -1.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
    angular_velocity:
            x: -0.022413312
            y: 0.005111808
            z: 0.003538944
    angular_velocity_covariance:
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
    linear_acceleration:
            x: 1.52764416
            y: 4.917559296
            z: 7.866155008
    linear_acceleration_covariance:
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0
            0.0

Topic echo imufullmeasureddata

.. code-block:: bash

    ➜ ros2 param set /adi_imu_node measured_data_topic_selection 3
    Set parameter successful
    ➜ ros2 topic echo imufullmeasureddata
    header:
            stamp:
                    sec: 1698752480
                    nanosec: 32117474
            frame_id: imufullmeasureddata
    linear_acceleration:
            x: 1.498841658
            y: 5.758833587
            z: 7.699544637
    angular_velocity:
            x: 0.0180183
            y: 0.006585252
            z: -0.003338532
    delta_velocity:
            x: 0.000749064
            y: 0.002869894
            z: 0.003841414
    delta_angle:
            x: 1.1514e-05
            y: 4.05e-06
            z: -2.0039999999999998e-06
    temperature: 32.1
    ---
    header:
            stamp:
                    sec: 1698752480
                    nanosec: 47051862
            frame_id: imufullmeasureddata
    linear_acceleration:
            x: 1.500955246
            y: 5.752098773
            z: 7.669287517
    angular_velocity:
            x: 0.014685954
            y: 0.008353032
            z: 0.000134526
    delta_velocity:
            x: 0.000747822
            y: 0.002868008
            z: 0.003832168
    delta_angle:
            x: 7.824e-06
            y: 4.956e-06
            z: -1.488e-06
    temperature: 32.2

Topic echo imuidentificationdata

.. code-block:: bash

    ➜ ros2 topic echo /imuidentificationdata
    header:
            stamp:
                    sec: 1698752760
                    nanosec: 145522368
            frame_id: imuidentificationdata
    firmware_revision: '1.6'
    firmware_date: 06-27-2019
    product_id: 16505
    serial_number: 1208
    gyroscope_measurement_range: +/-500_degrees_per_sec

Topic echo imudiagdata

.. code-block:: bash

    ➜ ros2 topic echo /imudiagdata
    header:
            stamp:
                    sec: 1698752709
                    nanosec: 500543873
            frame_id: imudiagdata
    diag_data_path_overrun: false
    diag_flash_memory_update_error: false
    diag_spi_communication_error: false
    diag_standby_mode: false
    diag_sensor_self_test_error: false
    diag_flash_memory_test_error: false
    diag_clock_error: false
    diag_acceleration_self_test_error: false
    diag_gyroscope1_self_test_error: false
    diag_gyroscope2_self_test_error: false
    diag_flash_memory_write_count_exceeded_error: false
    flash_counter: 22
Publishing IMU data with covariances

Identify the IP address of the processing unit to which the IMU is connected to (e.g. Raspberry Pi) and determine your specific ADIS device name. There are two ways of starting publishing IMU + covariance data.

  1. Using adi_imu node:

.. code-block:: bash

    ros2 run adi_imu adi_imu_node --ros-args \
            -p imu_device_name:="adis16545-3" \
            -p iio_context_string:="ip:192.168.0.1" \
            -p measured_data_topic_selection:=2 \
            -p covariance.enable:=true \
            -p covariance.algorithm:="sliding_window" \
            -p covariance.sliding_window.window_size:=1500 \
            -p covariance.sliding_window.min_samples:=300

.. note:: Covariance is only published on the /imu topic, so measured_data_topic_selection must be set to 2.

  1. Using the imu_and_covariance.launch.py launch file:

imu_ros2 repository offers a launch file to easily start publishing IMU data and measurement variances through imu_and_covariance.launch.py:

.. code-block:: bash

    ros2 launch adi_imu imu_and_covariance.launch.py \
        iio_context_string:="ip:192.168.0.1" \
        imu_device_name:="adis16545-3"

The config_file parameter is optional and defaults to config/imu_covariance_config.yaml. To use a custom configuration:

.. code-block:: bash

    ros2 launch adi_imu imu_and_covariance.launch.py \
        iio_context_string:="ip:192.168.0.1" \
        imu_device_name:="adis16545-3" \
        config_file:="/path/to/your/custom_config.yaml"

.. tip:: You can see all available launch arguments by running:

.. code-block:: bash

    ros2 launch adi_imu imu_and_covariance.launch.py --show-args
Using adi_imu node with imu-tools

imu_ros2 repository offers a launch file which can be used to visualize in rviz the imu filtered data, using a Madgwick filter implemented in imu-tools ros package. Below you may find the steps to achieve this, assuming imu_ros2 sources and dependencies are already available.

First install imu-tools and rviz2 packages:

.. code-block:: bash

    ➜ sudo apt-get install ros-humble-imu-tools ros-humble-rviz2

Identify the IP address of the processing unit to which the IMU is connected to (e.g. Raspberry Pi) and determine your specific ADIS device name. Then launch the imu_with_madgwick_filter_rviz.launch file with the required arguments:

.. code-block:: bash

    source install/setup.sh
    ros2 launch adi_imu imu_with_madgwick_filter_rviz.launch.py \
        iio_context_string:="ip:192.168.0.1" \
        imu_device_name:="adis16545-3"

.. tip:: You can see all available launch arguments and their descriptions by running:

.. code-block:: bash

    ros2 launch adi_imu imu_with_madgwick_filter_rviz.launch.py --show-args
IMU and TOF sensor fusion

imu_ros2 repository offers a launch file which can be used to visualize in rviz the ToF point cloud fused with imu filtered data. Below you may find the steps to achieve this, assuming imu_ros2 sources and dependencies are already available.

First install imu-tools and rviz2 packages:

.. code-block:: bash

    ➜ sudo apt-get install ros-humble-imu-tools ros-humble-rviz2

Secondly install tof-ros2 package by following the steps from: https://github.com/analogdevicesinc/tof-ros2#readme (opens in a new tab)

Identify the IP address of the processing unit to which the IMU is connected to (e.g. Raspberry Pi) and determine your specific ADIS device name. Then launch the imu_tof_fusion.launch file with the required arguments:

.. code-block:: bash

    source install/setup.sh
    ros2 launch adi_imu imu_tof_fusion.launch.py \
        iio_context_string:="ip:192.168.0.1" \
        imu_device_name:="adis16545-3"

.. tip:: You can see all available launch arguments and their descriptions by running:

.. code-block:: bash

    ros2 launch adi_imu imu_tof_fusion.launch.py --show-args

.. _imu_ros2 - Third Party and Open Source Software: https://download.analog.com/imu_ros2/versions.html (opens in a new tab)

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.