Field-Robotics-Japan / UnitySensors

ROS/ROS2 enabled Sensor models (Assets) on Unity
Apache License 2.0
193 stars 29 forks source link

IMU does not update angular velocity values. #21

Closed robograffitti closed 1 year ago

robograffitti commented 2 years ago

When I attached the IMU on the robot in my unity environment, it does not update its angular velocity values. They keep displaying zero.

robograffitti commented 1 year ago

Finally, this was not a bag.

An IMU is implemented with aquisition of properties from an attached target rigit body or articulation body. Therefore, set its attached link such as imu_link as connected body or connected articulation body in its fixed joint component.

Screenshot from 2022-08-02 18-28-55

Reference: https://github.com/arav-jp/UnitySensors/blob/main/Scripts/Runtime/IMU/IMU.cs#L71