在做通过程序实现“无人车确定目标点导航”时,处理客户端和服务器时出现的问题
在package.xml中添加
<bulid_depend>move_base_msgs</bulid_depend>
<bulid_depend>actionlib</bulid_depend>
和
<run_depend>move_base_msgs</run_depend>
<run_depend>actionlib</run_depend>
后,编译是出现如下报错
Error(s) in package '/home/robot/catkin_ws/src/simple_navigation_goals/package.xml':
Error(s):
- The manifest of package "simple_navigation_goals" (with format version 2) must not contain the following tags: run_depend, bulid_depend
解决办法:
将package.xml中添加的 bulid_depend改为 build_export_depend
将run_depend改为exec_depend
即:
<build_export_depend>move_base_msgs</build_export_depend>
<build_export_depend>actionlib</build_export_depend>
<exec_depend>move_base_msgs</exec_depend>
<exec_depend>actionlib</exec_depend>
注:run_depend 与 exce_depend 是一样的
indigo之后的版本要把run_depend 换成 exce_depend
这里有个问题,我用的就是indigo版本,不知道为啥也要改,版本问题总是很麻烦,先这么改着吧,改了就跑通了。