-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ZR300 IMU driver bug: Zero measurements in linear acceleration or angular velocity #186
Comments
The angular velocity and linear acceleration are each received asynchronously from the ZR300 camera and they are published as and when they are received without any buffering (to avoid any kind of latency). We decided not to have them in separate topics, based on the ROS IMU message standard. Refer to the comments at http://docs.ros.org/api/sensor_msgs/html/msg/Imu.html One can determine the type of data that the IMU topic contains by referring to the element 0 of the associated covariance matrix. This has been documented at http://wiki.ros.org/realsense_camera.
|
Thanks a lot for the fast response. As a quick fix I would suggest to create a flag which specifies if gyro and accelerometer should be published on separate topics. In case they are published on one topic it would probably be accurate enough to just take the last available accelerometer measurement (faster sensor) at the time the gyro measurement (slower sensor) arrives and publish it together. |
System Configuration
The realsense_camera driver seems to have a bug in the ZR300 IMU part. When looking at the IMU rostopic /camera/imu/data_raw (see Screenshot below), one can see that either all angular_velocities or all linear_acceleration values are zero. The gyro and the accelerometer seem to have different frame rates (250 HZ accelerometer, 200 Hz gyro ?). Since no buffering seems to be done, the /camera/imu/data_raw topic is published at a frequency of about 430 Hz containing always either zero angular_velocity or linear_acceleration values. This can be seen in the zr300_nodelet.cc where in case an angular velocity measurement arrives, the linear_acceleration is set to zero (L595) or vice versa the angular_velocity (L604).
I think it would be desirable to have a flag to publish gyro and accelerometer on separate topics with their full frame rate or to publish one fused topic at e.g. 200 Hz always containing non zero linear_acceleration and angular velocity.
The text was updated successfully, but these errors were encountered: