Comments (5)
I see line 628 of https://github.com/uzh-rpg/rpg_dvs_ros/blob/master/davis_ros_driver/src/driver.cpp should convert from caer g units to m/s^2 unit. (I don't know what the switch is there for, since caer should deliver the IMU data in same form for each type of DAVIS).
if (davis_info_.chipID == DAVIS_CHIP_DAVIS346B)
{
// convert from g's to m/s^2 and align axes with camera frame
msg.linear_acceleration.x = -caerIMU6EventGetAccelY(event) * STANDARD_GRAVITY;
msg.linear_acceleration.y = -caerIMU6EventGetAccelX(event) * STANDARD_GRAVITY;
msg.linear_acceleration.z = -caerIMU6EventGetAccelZ(event) * STANDARD_GRAVITY;
// convert from deg/s to rad/s and align axes with camera frame
msg.angular_velocity.x = -caerIMU6EventGetGyroY(event) / 180.0 * M_PI;
msg.angular_velocity.y = -caerIMU6EventGetGyroX(event) / 180.0 * M_PI;
msg.angular_velocity.z = -caerIMU6EventGetGyroZ(event) / 180.0 * M_PI;
}
else
{
// convert from g's to m/s^2 and align axes with camera frame
msg.linear_acceleration.x = -caerIMU6EventGetAccelX(event) * STANDARD_GRAVITY;
msg.linear_acceleration.y = caerIMU6EventGetAccelY(event) * STANDARD_GRAVITY;
msg.linear_acceleration.z = -caerIMU6EventGetAccelZ(event) * STANDARD_GRAVITY;
// convert from deg/s to rad/s and align axes with camera frame
msg.angular_velocity.x = -caerIMU6EventGetGyroX(event) / 180.0 * M_PI;
msg.angular_velocity.y = caerIMU6EventGetGyroY(event) / 180.0 * M_PI;
msg.angular_velocity.z = -caerIMU6EventGetGyroZ(event) / 180.0 * M_PI;
}
Line 112 of https://github.com/uzh-rpg/rpg_dvs_ros/blob/master/davis_ros_driver/include/davis_ros_driver/driver.h defines
`
static constexpr double STANDARD_GRAVITY = 9.81;
`
https://github.com/inilabs/libcaer/blob/master/include/events/imu6.h defines cAER units for acceleration as g's. Therefore I think that the g units of cAER are being multiplied by another factor of g in this code, rather than being divided by it. I must be missing something.
from rpg_dvs_ros.
Thanks for pointing this out. I think the switch is now obsolete. This code was there to fix an earlier version of libcaer regarding the DAVIS346B.
7e741c2
It seems that libcaer has been fixed in the time since that commit, making sure that the IMU for the DAVIS346B has the same notation as the one for the DAVIS240C, and we did not notice. We did not fix it since we always compute the camera-to-IMU transformation (rotation and translation) using Kalibr.
We will remove this now obsolete switch. @eliasm @supitalp just be aware.
from rpg_dvs_ros.
Fixed in PR #59
from rpg_dvs_ros.
Thanks Guillermo, and reading the code I now I see I was mistaken. A 1g acceleration from cAER is correctly multiplied by 9.8m/s^2 to result in a final 9.8m/s^2 ROS value.
It still doesn't explain why I'm getting wrong values in my jAER rosbag acceleration, but it is probably something in that RosBagFileInputStream class, not here.
Have you validating physical correctness of the acceleration values by application using rpg-dvs code?
from rpg_dvs_ros.
Hi Tobi. We have validated the physical correctness of the acceleration values for the DAVIS240C sensors. In case of the mini DAVIS346B, we have reported to iniLabs that the values given by the accelerometer are off by some amount, and so, we have to calibrate the IMU (while at rest) and compensate for this offset whenever we use our visual-inertial odometry algorithms.
from rpg_dvs_ros.
Related Issues (20)
- real-time target detection and tracking by using event camera
- how to Read the maximum frame Rate ? HOT 1
- How to get color events HOT 2
- a problem with the compilation
- DAVIS346 IMU coordinate system?
- How to use the rpg_dvs_ros to visualize event cameras fused with lidar rosbag file?
- [ WARN] [1641968634.644978988]: Camera calibration file /home/zfl/.ros/camera_info/DAVIS-00000554.yaml not found. HOT 2
- Connection to node=/davis_ros_driver failed: param client failed
- ERROR: cannot launch node of type [rqt_image_view/rqt_image_view]: rqt_image_view HOT 2
- roslaunch error:[dvxplorer_ros_driver-2] process has died [pid 10699, exit code -11 HOT 2
- DVS 346 stereo recording parallel both at the same timestamp HOT 5
- Error with dvxplorer_ros_driver HOT 2
- Unable to play video of the other rosbags in driving dataset ttps://rpg.ifi.uzh.ch/event_driving_datasets.html
- Could not find DVS HOT 3
- Not able to play vedio slider_depth.bag
- dvs_tracking has died
- Run Dvxplorer lite camera and Davis camera in the same time
- Modifying GUI parameters
- Are there plans on porting the functionality of this repo to ROS2?
- Build Error Ubunto 20.04 ROS Noetic (libcaer) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rpg_dvs_ros.