Skip to content

Translates tinyIMU messages from arduino to full IMU messages used in the rest of ROS

Notifications You must be signed in to change notification settings

superjax/tinyIMU_relay

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinyIMU_relay

A package designed to relay messages from the tinyIMU messages published by the arduino running the sketch found in https://github.com/superjax/tinyIMU_arduino to full IMU messages recognized by the rest of ROS.

Scaling for MPU6050

When using the MPU6050, the raw sensor value are scaled corresponding to the sensitivity of the sensor and in an odd range. When setting the ros parameter 'scale' = true, the readings will be scaled to [m/s²] (accel) and [rad/s] (gyro). These units are defined as a standard in sensor_msgs/Imu.

To use the scaling function run

rosrun tinyIMU_relay tinyIMU_relay _scale:=true

This works with the standard MPU6050 settings AFS_SEL=0 and FS_SEL=0 which corresponds to a sensitivity of +-2g for the accelerometer and +-250 degree/second for the gyro. The scaling factor to get from the reading to [g] (accel) and [deg/s] (gyro) is 16,384 and 131. The readings are then scaled from [g] to [m/s²] and from [deg/s] to [rad/s]. The values come from the MPU6050 Datasheet Page 12-13.

This is usefull when using the imu data for another package like imu_complementary_filter. Don't forget to calibrate the sensor offsets.

About

Translates tinyIMU messages from arduino to full IMU messages used in the rest of ROS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published