robot_pose_ekf运行报错问题解决

在运行robot_pose_ekf时遇到错误,原因为从官网下载的源码包与ROS版本不兼容。通过删除源码包,使用ROS命令行安装ros-kinetic-robot-pose-ekf,并修改launch文件,成功避免了编译错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 

运行的时候ekf报错
原因是我在官网下载的ekf源码包不对应,虽然已经选择了对应的ros版本,依然报错
因此采用不吧ekf包放到我自己工程的方法,
而是把他用ros命令安装
首先,删掉我在我源码包中的ekf功能包
rm -r robot_pose_ekf
然后用ros命令安装此功能包

sudo apt-get install ros-kinetic-robot-pose-ekf 
同时,ekf下的launch文件进行对应的修改
 roscd robot_pose_ekf/
   ls
   gedit robot_pose_ekf.launch 
   sudo gedit robot_pose_ekf.launch 
再次编译我的功能包,不会在报错

ROS_MASTER_URI=http://localhost:11311 process[abot_driver-1]: started with pid [11227] process[abot_imu-2]: started with pid [11228] process[base_imu_to_base_link-3]: started with pid [11239] process[base_laser_to_base_link-4]: started with pid [11241] process[imu_filter_madgwick-5]: started with pid [11246] process[robot_pose_ekf-6]: started with pid [11250] process[odom_ekf-7]: started with pid [11255] process[joint_state_publisher-8]: started with pid [11266] [ INFO] [1741329298.897535489]: port:/dev/abot buadrate:921600 [ INFO] [1741329298.914410219]: IMU calibration found. process[robot_state_publisher-9]: started with pid [11268] [ INFO] [1741329298.993604768]: Starting ImuFilter process[rplidarNode-10]: started with pid [11271] process[laser_filter-11]: started with pid [11277] [ INFO] [1741329299.126334122]: out_pid_debug_enable:0 [ INFO] [1741329299.228310009]: BaseDriver startup Transport main read/write started [ INFO] [1741329299.231230559]: connected to main board [ INFO] [1741329299.360461609]: Using dt computed from message headers [ INFO] [1741329299.360665780]: The gravity vector is kept in the IMU message. [ INFO] [1741329299.417325997]: Starting Raw Imu Bridge. [ INFO] [1741329299.500850550]: RPLIDAR running on ROS package rplidar_ros. SDK Version:1.7.0 [ INFO] [1741329299.748798455]: Imu filter gain set to 0.100000 [ INFO] [1741329299.749018907]: Gyro drift bias set to 0.000000 [ INFO] [1741329299.749163294]: Magnetometer bias values: 0.000000 0.000000 0.000000 [ INFO] [1741329299.772481628]: output frame: odom [ INFO] [1741329299.847852108]: base frame: base_footprint [ INFO] [1741329299.877294784]: BOX filter started [ INFO] [1741329299.948587655]: invert filter not set, assuming false [ INFO] [1741329301.231547591]: end sleep [ INFO] [1741329301.245752946]: robot version:v1.0.2 build time:20180730-m0e0 [ INFO] [1741329301.264577695]: subscribe cmd topic on [cmd_vel] [ INFO] [1741329301.280285015]: advertise odom topic on [wheel_odom] [ INFO] [1741329301.308485577]: RobotParameters: 97 225 3960 10 320 2700 0 10 250 50 50 250 69 [ INFO] [1741329301.708502447]: Initializing Odom sensor [ WARN] [1741329301.727296527]: Calibrating accelerometer and gyroscope, make sure robot is stationary and level. [ INFO] [1741329301.741557545]: Odom sensor activated [ INFO] [1741329301.742947838]: Kalman filter initialized with odom measurement [INFO] [1741329301.841551]: Publishing combined odometry on [ERROR] [1741329304.043761987]: Error, operation time out. RESULT_OPERATION_TIMEOUT! [rplidarNode-10] process has died [pid 11271, exit code 255, cmd /opt/ros/melodic/lib/rplidar_ros/rplidarNode __name:=rplidarNode __log:=/home/robot/.ros/log/4555c2d8-fb1e-11ef-b86e-982cbceead36/rplidarNode-10.log]. log file: /home/robot/.ros/log/4555c2d8-fb1e-11ef-b86e-982cbceead36/rplidarNode-10*.log [ WARN] [1741329310.035015476]: Still waiting for data on topic /imu/data_raw... [ INFO] [1741329317.897678201]: Calibrating accelerometer and gyroscope complete. [ INFO] [1741329317.897737851]: Bias values can be saved for reuse. [ INFO] [1741329317.897784946]: Accelerometer: x: 0.069855, y: 0.096045, z: -0.577353 [ INFO] [1741329317.897814783]: Gyroscope: x: -0.070678, y: 0.115459, z: -0.012532 [ INFO] [1741329317.932081971]: First IMU message received. [ INFO] [1741329317.932650697]: Initializing Imu sensor [ INFO] [1741329317.996404847]: Imu sensor activated
最新发布
03-08
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

kobesdu

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值