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

Virtual machine does not display a pop-up window

2. Check device connection status
View device ID
xxxxxxxxxxlsusb
View device number
xxxxxxxxxxll /dev/ttyU*
View IMU mapping
xxxxxxxxxxll /dev/my*
3. Rviz Visualization
Run the command to view
xxxxxxxxxxros2 launch imu_ros2_device ybimu_display.launch.py
After entering, you can rotate the IMU module, and you can see the IMU on the screen rotate accordingly.

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.
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
xxxxxxxxxxsh ros2_humble.sh
4.2 Rviz Visualization
xxxxxxxxxxros2 launch imu_ros2_device ybimu_display.launch.py
