IMU, 一般具有两个基本器件:加速计和陀螺仪。主要用于测量自身位姿,位姿包括位置和姿态。
最近在研究imu 融合里程计方面的内容,初学一些内容,总结一下:
环境信息:
Ubuntu:18.04
ROS : melodic
一. IMU接入ROS系统
imu型号:ROS IMU hfi_a9型号
1.安装ros-imu功能依赖包
sudo apt-get install ros-melodic-imu-tools ros-melodic-rviz-imu-plugin #如果不安装,imu在rviz中无法正常显示
2.下载并编译 handsfree_ros_imu 驱动包
cd ~/catkin_ws/src/
git clone https://github.com/HANDS-FREE/handsfree_ros_imu.git
cd ..
catkin_make -DCATKIN_WHITELIST_PACKAGES='handsfree_ros_imu'
#如果git上下载慢,可以在gitee上下载:git clone https://gitee.com/HANDS-FREE/handsfree_ros_imu.git
3.修改权限
cd src/handsfree_ros_imu/scripts/
sudo chmod 777 *.py
4.插上imu设备运行可视化程序
ls