rsasaki0109 / li_slam_ros2

ROS 2 package of tightly-coupled lidar inertial ndt/gicp slam
BSD 2-Clause "Simplified" License
279 stars 40 forks source link

Covariance Matrix for the odometry ? #27

Open swiipius opened 11 months ago

swiipius commented 11 months ago

From running the li_slam_ros2 in my project, I can see that the covariance matrix for the odometry is set to 0 is their anyway to get calculated values like the original LIO-SAM did ? I would like to add li_slam_ros2 as an odometry source for the robot_localization stack :D

rsasaki0109 commented 11 months ago

~What is the topic name with covariance in LIO-SAM that I can refer to for consideration?~

rsasaki0109 commented 11 months ago

It seems that you can obtain covariance with the marginalCovariance function in ISAM2 of GTSAM. In g2o, it appears you can output the error covariance for each vertex using the computeMarginals function.