Skip to content

Software

rt_usb_9axisimu_driver

By RT Corporation, Japan (checked on github.com/rt-net (opens in a new tab)), from github.com/rt-net/rt_usb_9axisimu_driver (opens in a new tab)

  • Perception
  • Driver or SDK
  • BSD-3-Clause

A ROS 2 driver package for the USB-output 9-axis IMU sensor module sold by RT Corporation, publishing its inertial, magnetic and temperature data as ROS topics.

Facts

GitHub stars
62read on 29 Nov 2026
Last update
7 Aug 2026Newest commit on ros2
Maintenance
Maintaineda commit in the last 12 months
Difficulty
Beginner
Hardware it needs, as the project states it
The USB 9-axis IMU sensor module from RT Corporation, connected over USB (default port /dev/ttyACM0), running ROS 2 Humble, Jazzy or Lyrical.

Checked on GitHub on 29 Nov 2026.

Licenses

Code
BSD-3-Clause (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit 1d3a101 (opens in a new tab), on 16 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Reads the USB 9-axis IMU module and publishes raw acceleration and angular velocity on /imu/data_raw.
  • Publishes magnetic flux density on /imu/mag and sensor temperature on /imu/temperature.
  • Supports ROS 2 lifecycle, so the device can be plugged or unplugged while the node is unconfigured.
  • Also runs as a composable component inside a component container.
  • Assumes the module's default firmware; modified firmware may not work correctly.

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

Robots on Robotheca
No robot on Robotheca uses it yet.
Licence
BSD-3-Clause. 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 7 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 1d3a101

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.md by RT Corporation, at commit 1d3a101, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

日本語 (opens in a new tab) | English

rt_usb_9axisimu_driver

(opens in a new tab)

株式会社アールティが販売しているUSB出力9軸IMUセンサモジュール用のROS 2パッケージです。

Image: usb-9axisimu (opens in a new tab)

現在、以下のROSのディストリビューションに対応しております。

1. 概要

rt_usb_9axisimu_driverは株式会社アールティが販売している USB出力9軸IMUセンサモジュール (opens in a new tab) のROS 2パッケージです。

株式会社アールティによって開発、メンテナンスがなされています。

1.1 座標軸について

USB出力9軸IMUセンサモジュールは、センサとしてInvenSense社のMPU9250を使用しております。 このセンサの磁気センサの座標系はNED座標系(x-north, y-east, z-down)ですが、 モジュール内のマイコン(LPC1343)においてENU座標系(x-east, y-north, z-up)に変換され、 ジャイロセンサおよび加速度センサの座標系と揃えられております。 これはROSで使われる座標系のルールにも適合しています。詳しくは、REP-0103 (opens in a new tab)をご覧ください。

1.2 ファームウェア開発について

USB出力9軸IMUセンサモジュールはオープンハード・オープンソースのため、モジュール内のマイコンのファームウェアの変更が可能です。 このROSパッケージはデフォルトのファームウェアにのみ対応しております。ファームウェアを変更された場合、正常な動作ができなくなる恐れがございますので、ご了承ください。

1.3 ver2.0でのご利用について

2020年8月現在、販売されているUSB出力9軸IMUセンサモジュールはver2.0となります。 このバージョンのデフォルトのファームウェアには、ASCII出力とBinary出力の2つのデータ出力形式があります。 センサ出荷時点ではASCII出力に設定されています。出力形式の切り替え方法は、以下のリポジトリにあるマニュアルをご参照ください。 https://github.com/rt-net/RT-USB-9AXIS-00 (opens in a new tab)

[ERROR] Error opening sensor device, please re-check your devices. が発生する場合

ポートの権限を変更してください。

sudo chmod 666 /dev/ttyACM0
2. インストール
2.1 バイナリをインストールする場合
sudo apt install ros-$ROS_DISTRO-rt-usb-9axisimu-driver
2.2 ソースからインストールする場合
mkdir -p ~/ros2_ws/src && cd ~/ros2_ws/src
# Clone package & checkout ROS 2 branch
git clone -b $ROS_DISTRO https://github.com/rt-net/rt_usb_9axisimu_driver

# Install dependencies
rosdep install -r -y -i --from-paths .

# Build & Install
cd ~/ros2_ws
colcon build --symlink-install
source ~/ros2_ws/install/setup.bash
2.3 クイックスタート
# Terminal 1
source ~/ros2_ws/install/setup.bash
ros2 launch rt_usb_9axisimu_driver rt_usb_9axisimu_driver.launch.py
# Terminal 2
source ~/ros2_ws/install/setup.bash
# Echo topics (Press Ctrl+C for exit)
ros2 topic echo /imu/data_raw
ros2 topic echo /imu/mag
ros2 topic echo /imu/temperature
3. ノード
3.1 rt_usb_9axisimu_driver

rt_usb_9axisimu_driverはUSB出力9軸IMUセンサモジュールの出力を受信し、角速度と並進加速度・磁束密度をパブリッシュします。

3.1.1 パブリッシュされるトピック
3.1.2 パラメータ
  • ~frame_id (string, default: imu_link)

    • IMUデータのヘッダーにセットされるフレーム名
  • ~port (string, default: /dev/ttyACM0)

    • モジュールが接続されているポート名
  • ~linear_acceleration_stddev (double, default: 0.023145)

    • 並進加速度の共分散行列の対角成分の平方根(m/s^2)
  • ~angular_velocity_stddev (double, default: 0.0010621)

    • 角速度の共分散行列の対角成分の平方根(rad/s)
  • ~magnetic_field_stddev (double, default: 0.00000080786)

    • 磁束密度の共分散行列の対角成分の平方根(T)
4. ROS 2 特有の使い方
4.1 Lifecycle

Lifecycle (opens in a new tab) 機能を使うことで、ノード実行中にUSBの抜き差しや、 トピックのパブリッシュを稼働/停止できます。

各状態での動作内容は次のとおりです。

4.1.1 Unconfigured state
  • USBポート(~port)にアクセスしません
  • トピックをパブリッシュしません
4.1.2 Configuring transition
  • パラメータを反映します
  • USBポート(~port)をオープンし9軸IMUセンサと通信します
    • 9軸IMUセンサの認識に失敗したらUnconfigured stateに遷移します
4.1.3 Inactive state
  • トピックをパブリッシュしません
4.1.4 Activating transition
  • 9軸IMUセンサと定期通信を開始します
    • 9軸IMUセンサとの通信に失敗したらUnconfigured stateに遷移します
  • トピックのパブリッシュを開始します
4.1.5 Active state
  • トピックをパブリッシュします
  • 9軸IMUセンサとの通信に失敗しても状態遷移しません
4.1.6 Deactivating transition
  • 9軸IMUセンサとの定期通信を停止します
  • トピックのパブリッシュを停止します
4.1.7 CleaningUp transition
  • USBポート(~port)をクローズし9軸IMUセンサと通信を終了します
4.1.8 Example
# Terminal 1
source ~/ros2_ws/install/setup.bash
ros2 run rt_usb_9axisimu_driver rt_usb_9axisimu_driver
# Terminal 2
source ~/ros2_ws/install/setup.bash

# User can plug-in/out the IMU module at unconfigure state.

ros2 lifecycle set rt_usb_9axisimu_driver configure
ros2 lifecycle set rt_usb_9axisimu_driver activate
# The node start publishing the topics.

# Stop publishing
ros2 lifecycle set rt_usb_9axisimu_driver deactivate
ros2 lifecycle set rt_usb_9axisimu_driver cleanup

# User can plug-in/out the IMU module at unconfigure state.
# User can set parameters of the node.
ros2 param set /rt_usb_9axisimu_driver frame_id "imu2-link"
ros2 param set /rt_usb_9axisimu_driver port "/dev/ttyACM1"

ros2 lifecycle set rt_usb_9axisimu_driver configure
ros2 lifecycle set rt_usb_9axisimu_driver activate
# The node start publishing the topics.
4.2 Component

rt_usb_9axisimu_driver::Driverは Component (opens in a new tab) として実装されているため、共有ライブラリとして実行できます。

4.2.1 Example
# Terminal 1
source ~/ros2_ws/install/setup.bash
ros2 run rclcpp_components component_container
# Terminal 2
source ~/ros2_ws/install/setup.bash
ros2 component load /ComponentManager rt_usb_9axisimu_driver rt_usb_9axisimu_driver::Driver

ros2 lifecycle set rt_usb_9axisimu_driver configure
ros2 lifecycle set rt_usb_9axisimu_driver activate
# The node start publishing the topics.

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