# Pimu system check failure for IMU AZ

**URL:** <https://forum.hello-robot.com/t/pimu-system-check-failure-for-imu-az/591>\
**Category:** Ask\
**Created:** [February 14, 2023, 6:19am UTC](https://forum.hello-robot.com/t/pimu-system-check-failure-for-imu-az/591 "2023-02-14T06:19:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![srama2512](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/srama2512/32/354_2.png) [@srama2512](https://forum.hello-robot.com/u/srama2512)\
**Post date:** [February 14, 2023, 6:19am UTC](https://forum.hello-robot.com/t/pimu-system-check-failure-for-imu-az/591/1 "2023-02-14T06:19:57Z")

</div>

Hi,

I started using Stretch RE1 a few days back. When running the systems check, I noticed that the Pimu IMU AZ check repeatedly fails. This happens even after I use stretch\_robot\_home.py. Is this normal? I am having problems further downstream, so I want to make sure this isn’t a confounding factor. Here is the systems check output:

```auto
For use with S T R E T C H (R) RESEARCH EDITION from Hello Robot Inc.
---------------------------------------------------------------------

---- Checking Devices ----
[Pass] : hello-wacc
[Pass] : hello-motor-left-wheel
[Pass] : hello-motor-arm
[Pass] : hello-dynamixel-wrist
[Pass] : hello-motor-right-wheel
[Pass] : hello-motor-lift
[Pass] : hello-pimu
[Pass] : hello-respeaker
[Pass] : hello-lrf
[Pass] : hello-dynamixel-head

---- Checking Pimu ----
[Pass] Voltage = 13.0265069008
[Pass] Current = 3.91115401598
[Pass] Temperature = 32.1881823051
[Pass] Cliff-0 = -16.4053955078
[Pass] Cliff-1 = -20.1940917969
[Pass] Cliff-2 = -21.128692627
[Pass] Cliff-3 = 1.1796875
[Fail] IMU AZ = -9.26397514343 out of range -10.1 to -9.5
[Pass] IMU Pitch = -0.391304761171
[Pass] IMU Roll = 1.20613098145

---- Checking EndOfArm ----
[Pass] Ping of: stretch_gripper
[Pass] Calibrated: stretch_gripper

[Pass] Ping of: wrist_yaw
[Pass] Calibrated: wrist_yaw

[Pass] Ping of: wrist_pitch

[Pass] Ping of: wrist_roll

---- Checking Head ----
[Pass] Ping of: head_tilt

[Pass] Ping of: head_pan

---- Checking Wacc ----
[Pass] AX = 9.6309223175

---- Checking hello-motor-left-wheel ----
[Pass] Position = 2.54818081856

---- Checking hello-motor-right-wheel ----
[Pass] Position = -2.72253918648

---- Checking hello-motor-arm ----
[Pass] Position = 14.5785598755
[Pass] Position Calibrated = True

---- Checking hello-motor-lift ----
[Pass] Position = 62.8360443115
[Pass] Position Calibrated = True

---- Checking for Intel D435i ----
Bus 002 Device 002: ID 8086:0b3a Intel Corp.
[Pass] : Device found

```

---

<div class="post-metadata">

**Author:** ![chintujaguar](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/chintujaguar/32/260_2.png) [@chintujaguar](https://forum.hello-robot.com/u/chintujaguar)\
**Post date:** [February 14, 2023, 8:17pm UTC](https://forum.hello-robot.com/t/pimu-system-check-failure-for-imu-az/591/2 "2023-02-14T20:17:20Z")

</div>

Hey @srama2512, welcome to the forum, and thanks for reporting the issue!

Could you report the robot’s serial number that can be found in the robot trunk, and elaborate on the downstream issue that you think you are facing as a result of this failure?

Best,  
Chintan

---

<div class="post-metadata">

**Author:** ![srama2512](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/srama2512/32/354_2.png) [@srama2512](https://forum.hello-robot.com/u/srama2512)\
**Post date:** [February 14, 2023, 8:38pm UTC](https://forum.hello-robot.com/t/pimu-system-check-failure-for-imu-az/591/3 "2023-02-14T20:38:14Z")

</div>

Hi @chintujaguar, thanks for your prompt response!

The serial number is stretch-re1-1097. I could calibrate the robot and `check_head_calibration.sh` as suggested [here](https://github.com/hello-robot/stretch_ros/tree/master/stretch_calibration#checking-the-current-calibration-with-new-observations). But when I tried to `test` the head calibration using `roslaunch stretch_calibration simple_test_head_calibration.launch`, I could see the robot’s 3D model in RViz, but not the point cloud. I don’t have the error logs on hand. Happy to share them with you later today.

.

---

<div class="post-metadata">

**Author:** ![aedsinger](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/aedsinger/32/6_2.png) [@aedsinger](https://forum.hello-robot.com/u/aedsinger)\
**Post date:** [February 14, 2023, 9:16pm UTC](https://forum.hello-robot.com/t/pimu-system-check-failure-for-imu-az/591/4 "2023-02-14T21:16:39Z")

</div>

Hi @srama2512. Given the reported value of AZ=-9.26, it appears that your IMU is reporting data correctly however it is slightly out of calibration relative to the ‘sanity check’ bounds of -10.1 to -9.5.

We calibrate the IMU at the factory and it is possible for you to recalibrate it yourself. It shouldn’t affect the robot function unless your program depends on an accurate IMU calibration.

If you’d like to recalibrate, to start can you let us know what the current calibration scalar is? Please run,:

`stretch_params.py | grep gravity_vector_scale`

This parameter scales the reported AZ value such that the sensor nominally reports back -9.8. You can simply adjust the parameter (in your user YAML) accordingly.

Alternatively, the tools `REx_base_imu_collect.py` and `REx_base_imu_process.py` can do a full IMU recalibration. This process is a bit more involved but we’re happy to walk you through it if needed.

–Aaron

---

<div class="post-metadata">

**Author:** ![srama2512](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.hello-robot.com/srama2512/32/354_2.png) [@srama2512](https://forum.hello-robot.com/u/srama2512)\
**Post date:** [February 14, 2023, 9:21pm UTC](https://forum.hello-robot.com/t/pimu-system-check-failure-for-imu-az/591/5 "2023-02-14T21:21:39Z")

</div>

Hi @aedsinger. Thanks for your response. Based on your feedback, this warning sounds pretty harmless to me and doesn’t look like the source of errors for point cloud generation. I will close this issue for the time being. I will re-open it if I find it necessary to calibrate the IMU accurately. Thanks!
