LIO-SAM icon indicating copy to clipboard operation
LIO-SAM copied to clipboard

Standing ego vehicle moves in rviz

Open weisenberg opened this issue 1 year ago • 2 comments

Hi. I run the algorithm on ROS2 with my recorded ros bag file from Carla (Velodyne LiDAR.) I have the IMU noise values from the imu_utils package and it seems right. However, to test it on the lio_sam algorithm, I record a stationary car and replay the bag, but the car (after a while) starts to drift and fly around rapidly with time. I can solve this by manually setting this value in imuPreintegration.cpp:

gtsam::NavState prevStateOdom(gtsam::Pose3(), gtsam::Velocity3(0.0, 0.0, 0.0));

This prevents the transformation for lidar_link to be anything other than the specified values above. However, to find the root of this issue I get nowhere. Does anyone have any idea?

weisenberg avatar Feb 05 '24 11:02 weisenberg

Good day! Where exactly did you make the changes?

LouiMilvus avatar Mar 15 '24 07:03 LouiMilvus

Hi! you mean changes to run Carla on lio_sam or changes to solve this issue? The latter got solved by setting the world tick to a higher frequency.

weisenberg avatar Apr 02 '24 09:04 weisenberg