yahboom
HomeTutorialsProduct
Solution
Blog
Online Store
About Us
EN/中文
Store
IMU Sensor Module📖
1. Introduction to the IMU Module
  • Introduction to IMU Module
2. Multi-master communication case
1. PC Communication
  • For PC
2. Serial communication
  • For STM32F103C8T6
  • For MSPM0G3507
  • For MSPM0G3519new
  • For ESP32
  • For Arduino
  • For Raspberry Pi Pico
  • For Raspberry Pi 5
  • For Jetson
  • For RDK
3. IIC Communication
  • For STM32F103C8T6
  • For MSPM0G3507
  • For MSPM0G3519new
  • For ESP32
  • For Arduino
  • For Raspberry Pi Pico
  • For Raspberry Pi 5
  • For Jetson
  • For RDK
3. Application Cases of Microcontroller-Based Cars
  • 1. Autonomous Driving Car
4. ROS Application Cases
ROS1 Applications
  • 1. IMU data printing
  • 2. Rviz Visualization
  • 3. IMU-integrated radar mapping and navigation
ROS2 Applications
  • 1. IMU data printing
  • 2. Rviz Visualization
  • 3. IMU-integrated radar mapping and navigation
Download
  • Code
  • VM_File
  • Docker_Image
  • 3D_Model_File
  • Hardware_DataSheet
  • Communication_Protocol
  • PC_Software
Download ZIP

Welcome to IMU Sensor Module repository

2. Rviz Visualization

Rviz Visualization

Rviz Visualization1. Connecting the Device2. Check device connection status3. Rviz Visualization4. Raspberry Pi 5, RDK X5 series, Jetson series4.1 Starting the Docker Image4.2 Rviz Visualization

This tutorial uses Ubuntu 22.04 and ROS2 version Humble as an example.

Note: Before running, please ensure that you have completed the "IMU Data Printing" section of the previous chapter and that it is running correctly.

1. Connecting the Device

Connect the IMU attitude sensor to the host controller's USB port using a Type-C cable.

If using a virtual machine, refer to the following steps:

Virtual machine displays a pop-up window

image-20251022184733332

Virtual machine does not display a pop-up window

image-20251022184934184

2. Check device connection status

View device ID

xxxxxxxxxx
lsusb

image-20251022185043976

View device number

xxxxxxxxxx
ll /dev/ttyU*

image-20251022190125351

View IMU mapping

xxxxxxxxxx
ll /dev/my*

image-20251022190323459

3. Rviz Visualization

Run the command to view

xxxxxxxxxx
ros2 launch imu_ros2_device ybimu_display.launch.py

image-20251023105359597

After entering, you can rotate the IMU module, and you can see the IMU on the screen rotate accordingly.

image-20251023105617807

Notes:

If, after starting the command, the IMU module is placed horizontally and the blocks displayed by rviz are tilted horizontally, as shown in the image, calibration is required.

image-20251021193607644

Refer to the calibration tutorial in the attachment folder for details.

4. Raspberry Pi 5, RDK X5 series, Jetson series

Note: Before running, please ensure that you have completed the "IMU data printing" section of the previous chapter and that it runs normally.

4.1 Starting the Docker Image

xxxxxxxxxx
sh ros2_humble.sh

4.2 Rviz Visualization

xxxxxxxxxx
ros2 launch imu_ros2_device ybimu_display.launch.py

image-20251027173801993

IMU data printing
IMU-integrated radar mapping and navigation

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文