Skip to content
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

[bug] Units break REP103 and are not consistent #23

Closed
Darkproduct opened this issue Nov 6, 2021 · 1 comment · Fixed by #24
Closed

[bug] Units break REP103 and are not consistent #23

Darkproduct opened this issue Nov 6, 2021 · 1 comment · Fixed by #24

Comments

@Darkproduct
Copy link

Darkproduct commented Nov 6, 2021

We tried a view BNO055 driver for ROS2 and found a bug in all of them. To adhere to REP 103 the messages have to use SI units.

In this package there are two problems:

  1. The acceleration factor is 1000 where it has to be 100
  2. The magnetometer unit is in μT and not T the factor hast to be 16000000 and not 16

The Bug

The linear_acceleration scale factor is set to 1000, but has to be 100.
From the BNO055 Data Sheet:

  • 3.6.1 Unit selection - Table 3-17: Accelerometer Unit settings:
Unit Representation
m/s² 1 m/s² = 100 LSB
mg 1 mg = 1 LSB
  • 3.6.1 Unit selection - Table 3-19: Magnetometer Unit settings:
Unit Representation
μT 1 μT = 16 LSB

Info

In the end, we decided to use the ros2_bno055_driver from RoverRobotics-archive, because we only have an RPi4 and python is not that performant. Here are our fixes RoverRobotics-archive/ros2_bno055_driver#6. But because this is the upstream repository of ros-foxy-bno055, it would be beneficial for other to fix it here as well.

@github-actions
Copy link

github-actions bot commented Nov 6, 2021

Thank you for creating your first issue on this repo! Give me some time to review and respond to your problem.

@Darkproduct Darkproduct changed the title [Bug] Acceleration values too small [bug] Units break REP103 and are not consistent Nov 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant