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 20.04 and ROS1 version Noetic as an example. Other ROS1 versions can use this as a reference.
Note: Before running, please ensure that you have completed the "IMU Data Printing" section of the previous chapter and that it is running normally.
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
xxxxxxxxxxroslaunch imu_ros1_device ybimu_display.launch

After running, an Rviz window will pop up. If the following prompt appears, click OK. That's it.

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

Note:
If, after starting the command, you find that the blocks displayed by rviz are tilted horizontally, as shown in the image, you need to calibrate them.

Refer to the calibration tutorial in the attached 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 is running normally.
4.1 Starting the Docker image
xxxxxxxxxxsh ros1_noetic.sh
4.2 Rviz visualization
xxxxxxxxxxroslaunch imu_ros1_device ybimu_display.launch
