# Livox IMU如何融合GPS与轮里程计实现全局状态估计

> 原文链接：https://robotics.hellobike.com/pitfalls/2026-05-12-livox-ros-driver2-248
> 频道：pitfalls | 更新日期：2026-05-12 | 标签：auto, github-issue, livox_ros_driver2
> 核心摘要：使用FusionCore订阅/livox/imu话题，融合GPS与轮里程计输出全局odom，无需额外坐标变换节点。

# Livox IMU如何融合GPS与轮里程计实现全局状态估计

::: v-pre
> 本文由 AI 根据公开内容整理，可能有误，请以原文为准：[Using Livox IMU output with a GPS + wheel odometry state estimator](https://github.com/Livox-SDK/livox_ros_driver2/issues/248)（GitHub Livox-SDK/livox_ros_driver2 #248）

**状态**：有绕过办法

## 问题

在使用Livox传感器进行室外建图时，需获取基于GPS锚定的全局状态估计。Livox驱动虽发布IMU数据至`/livox/imu`，但缺乏直接融合GPS与轮里程计生成全局参考`odom → base_link`变换的标准方案，导致难以与KISS-ICP或Fast-LIO等SLAM栈协同工作。

## 环境

ROS 2 Jazzy/Humble，Livox LiDAR（驱动发布`sensor_msgs/Imu`至`/livox/imu`），FusionCore UKF状态估计器。

## 解决办法

1. 安装FusionCore：执行`sudo apt install ros-jazzy-fusioncore-ros`或对应Humble版本。
2. 配置YAML参数：在机器人配置文件中设置`fusioncore.ros__parameters.imu.frame_id: livox_frame`以匹配Livox IMU帧ID。
3. 启动并重映射话题：运行`ros2 launch fusioncore_ros fusioncore.launch.py fusioncore_config:=robot.yaml --ros-args -r /imu/data:=/livox/imu`，将默认IMU话题重映射至Livox输出。
4. 集成SLAM栈：将FusionCore输出的`/fusion/odom`及`odom -> base_link` TF作为输入馈送至KISS-ICP或Fast-LIO，两者独立运行，分别负责全局里程计与地图构建。

讨论原作者：@manankharwar 等，版权归原作者所有。
:::

## 原始参考来源 (Sources)

- [GitHub Livox-SDK/livox_ros_driver2 #248：Using Livox IMU output with a GPS + wheel odometry state estimator](https://github.com/Livox-SDK/livox_ros_driver2/issues/248)