ros-android / android_sensors_driver

ROS Driver for Android Sensors
79 stars 65 forks source link

Determine Which Sensor Vendor to Use #12

Open chadrockey opened 11 years ago

chadrockey commented 11 years ago

Looks like some devices has multiple vendors for a specific sensor type.

For example, on the Nexus 10, there are three different Gyroscopes:

MPL Gyroscope -> Invensense MPL Raw Gyro -> Invensense Corrected Gyroscope Sensor -> Google, Inc.

Should this driver output the raw sensors or the best sensors. There are probably times when the correct sensors fail (I'd suspect if the magnetometers experience non-zero mean noise).

It's possible I should output an /imu_raw and an /imu, but that still doesn't answer what to do when there are multiple corrected sensors.

I should probably only output the sensors produced by the following function: http://developer.android.com/reference/android/hardware/SensorManager.html#getDefaultSensor%28int%29