记使用TianBot_Mini实现ROS中的各种local_planner遇到的问题(dwb、asr_ftc)

本文档提供asr_ftc_local_planner和dwb_local_planner在ROS环境中集成使用的教程及解决方案。针对asr_ftc_local_planner在不同navigation版本中遇到的问题给出详细解答,并说明了如何避免与dwb_local_planner在同一工作空间中的编译冲突。

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

# asr_ftc_local_planner


## tutorial
asr_ftc_local_planner tutorial


tips: 
1. 使用1.14.x版本的navigation库(当前未出现问题为1.14.7版本)
2. 将navigation文件夹和asr_ftc_local_planner文件夹同级放入src目录下


## problem & solution 

1. Problem1: 'tf2_buffer_' was not declared in this scope (navigation版本1.14.9)
Solution: 参考[ROS- 解决error “tf2_buffer_’ was not declared in this scope”_ゃ﹏淸凨ゞ-优快云博客]
    更换 inline tf2_ros::Buffer& getBuffer() { return tf2_buffer_; } 为 inline std::shared_ptr<tf2_ros::Buffer> &getBuffer() {return tf2_buffer_ptr_;}
    更换 tf_->getBuffer().setTransform(tf_msg->transforms[ii], "rosbag_authority"); 为 tf_->getBuffer()->setTransform(tf_msg->transforms[ii], "rosbag_authority");



2. Problem2: 'global_costmap_ros_' was not declared in this scope
Solution: 参考https://github.com/asr-ros/asr_ftc_local_planner/issues/2
    在nav_core/include/base_local_planner.h中加入protected变量costmap_2d::Costmap2DROS* global_costmap_ros;



3. Problem3: move_base_msgs/RecoveryStatus.h没有那个文件或目录 (navigation版本1.14.9)
Solution: 更换navigation版本为1.14.7,此版本move_base.cpp文件没有包含该头文件

# dwb_local_planner



## tutorial https://github.com/locusrobotics/robot_navigation

配置参考
​​​​​​DWB Controller — Navigation 2 1.0.0 documentation
tips:
asr_ftc_local_planner因navigation版本问题无法与dwb_local_planner在同一个工作空间中编译使用


[asr_tutorial]: http://wiki.ros.org/asr_ftc_local_planner/SetupNavigationForFTCPlanner

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值