Closed ihadzic closed 6 years ago
@ihadzic, Thank you for reporting the issue. This will be applied in the next release within this week. Thanks!
Hi :) @ihadzic
Thank you for your inquiry. You can watch the code is replaced.
It will be updated soon. Thank you for your help!!
Updated.
Hi again @ihadzic
We update new firmware (version 1.2.0) :) Thank you to your contribution!
When the Turtlebot is flat on the ground, not moving, the linear acceleration shows negative numbers with G-vector pointing down:
Apparently this is done by design because ACCEL_FACTOR constant in turtlebot3_sensor.h is negative.
This wrong and in conflict with ROS-REP145: http://www.ros.org/reps/rep-0145.html
In section titled "Data Reporting" it reads: "When the device is at rest, the vector will represent the specific force solely due to gravity. I.e. if the body z axis points upwards, its z axis should indicate +g. This data must be in m/s^2."
Other ROS modules that use accelerometer and comply with this specification will get utterly confused. The ACCEL_FACTOR should not be negative.