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

Using a rotated IMU to build 2d maps #1647

Open
seanxu112 opened this issue Nov 6, 2019 · 0 comments
Open

Using a rotated IMU to build 2d maps #1647

seanxu112 opened this issue Nov 6, 2019 · 0 comments

Comments

@seanxu112
Copy link

seanxu112 commented Nov 6, 2019

I have zedm camera which comes with an imu. I rotated the camera (with imu) -pi/2 along the y-axis, so that it faces upwards, and we linear acceleration about:

linear_acceleration:
x: 10.2479972839
y: -0.378756403923
z: 0.0886961147189

which makes sense. I have also made sure that, in tf, imu_link is rotated w.r.t base_link. However, when I set the tracking frame to be imu_link instead of base_link(which gives an error if I set it to base_link with imu data) the map and the laser scan are on orthogonal planes. I wonder if I have to set project_to_2d = true. If so, is there any potential problems? The map seems fine, but the visualization just throws me off.

not_coherent

The base_link is on the bottom. laser_frame is not rotated w.r.t. base_link and in front of imu_link. X-axis of imu_link is pointing up.

This is my tf file and my_robot.lua file:

my_robot_lua.txt
setup_robot_tf.txt

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

No branches or pull requests

1 participant