stereolabs / zed-ros2-wrapper

ROS 2 wrapper for the ZED SDK
https://www.stereolabs.com/docs/ros2/
Apache License 2.0
156 stars 156 forks source link

nan values for magnetometer on zed2 #107

Closed ladrians closed 2 years ago

ladrians commented 2 years ago

Preliminary Checks

Description

We were using without any trouble the zed2, now we get trouble with the IMU MAG, specifically the magnetometer details

header: 
  seq: 29907
  stamp: 
    secs: 1664573644
    nsecs: 761844325
  frame_id: "zed_mag_link"
magnetic_field: 
  x: nan
  y: nan
  z: nan
magnetic_field_covariance: [3.9e-08, 0.0, 0.0, 0.0, 3.7e-08, 0.0, 0.0, 0.0, 4.7e-08]

We need the raw value to use the madgwick IMU filter to get an absolute value for outdoor navigation.

Steps to Reproduce

  1. Attached a svo simple file to reproduce the case.
  2. Using ROS melodic

zed01.zip

Expected Result

The camera was working fine; from one day to the next week we detected this problem as the outdoor navigation got crazy.

Actual Result

Weird values on IMU and Magnetometer.

ZED Camera model

ZED2

Environment

OS: Ubuntu 18.04.6 LTS
GPU: Nvidia Jetxon Xavier NX and Jetson Nano
Zed SDK: 3.7 and 3.2.1
ROS Melodic

Anything else?

No response

Myzhar commented 2 years ago

Hi @ladrians This seems an HW problem. Please write an email to support@stereolabs.com adding the report file generated by the ZED Diagnostic tool to receive technical support. I close the issue. PS this is the ROS2 repository, not ROS1 😉