Open MrGitGo opened 5 years ago
I still suspect IMU, please post the data contents of a few IMU messages.
Also, please post the text output of rosbag_validate as the issue template describes.
Cartographer initializes submap orientation with IMU gravity direction.
TRAJECTORY_BUILDER_3D.use_online_correlative_scan_matching = true
Why do you use the correlative scan matcher?
use_odometry = true,
For tuning, always start with as few input as possible, so no odometry. Only add after it works with the minimum sensor set.
Thank you for your answer! I put the correlative scan matcher out and it works fine without. Thanks!
Hey @gaschler I thought the problem was solved but it's not. The tip over is not that big anymore. Thats why I thought it is solved but I have here the rosbag validate: https://gist.github.com/Semih67/671cf968358a3178c9abb34e8e26f9f3
and this is my imu data:
header:
seq: 1359
stamp:
secs: 1552894209
nsecs: 922173471
frame_id: "imu"
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 0.0
orientation_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
angular_velocity:
x: -0.00111111111111
y: -0.00444444444444
z: -0.00111111111111
angular_velocity_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
I hope you can help me with this EDIT: @gaschler or @MichaelGrupp I have noticed that it could be a problem of the global slam. If I set optimize every n nodes to zero, the imu stays at the correct rotation. But if I increase it, the higher the value the longer it takes to get the wrong rotation
And here is more:
---
header:
seq: 1075
stamp:
secs: 1552894748
nsecs: 156453738
frame_id: "imu"
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 0.0
orientation_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
angular_velocity:
x: 0.0
y: 0.00111111111111
z: 0.0
angular_velocity_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
linear_acceleration:
x: -0.13
y: 0.24
z: 9.49
linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
---
header:
seq: 1076
stamp:
secs: 1552894748
nsecs: 166435749
frame_id: "imu"
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 0.0
orientation_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
angular_velocity:
x: -0.00111111111111
y: 0.0
z: 0.0
angular_velocity_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
linear_acceleration:
x: -0.16
y: 0.27
z: 9.52
linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
---
header:
seq: 1077
stamp:
secs: 1552894748
nsecs: 176433824
frame_id: "imu"
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 0.0
orientation_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
angular_velocity:
x: -0.00111111111111
y: 0.00111111111111
z: 0.0
angular_velocity_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
linear_acceleration:
x: -0.14
y: 0.23
z: 9.55
linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
---
header:
seq: 1078
stamp:
secs: 1552894748
nsecs: 186434875
frame_id: "imu"
orientation:
x: 0.0
y: 0.0
z: 0.0
w: 0.0
orientation_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
angular_velocity:
x: -0.00222222222222
y: 0.00333333333333
z: -0.00111111111111
angular_velocity_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
linear_acceleration:
x: -0.16
y: 0.22
z: 9.55
linear_acceleration_covariance: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
The jump in rotation during global slam (pose graph optimization) is the exact issue I observe (#1201) with a dual lidar system. The result of local slam is relatively stable but there is something about the global optimization which I don't understand and have likely configured incorrectly. Do you notice this if you start from a stationary pose or if you are moving at the beginning of the data set?
I am working with a tof camera and my problem is this:
Then this happens:
I have looked at the imu (rostopic echo /imu) and I couldn't see any changes in there. So I think there is no problem with the imu or the odometry.
This is my lua:
Do you also have hints for tuning?
This is the bag file: https://www.dropbox.com/s/cuc9fmy3zcrjz6a/2019-03-12-Neu.bag?dl=0