关于解决package.xml编译时出现run_depend, bulid_depend问题

在做通过程序实现“无人车确定目标点导航”时,处理客户端和服务器时出现的问题
在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版本,不知道为啥也要改,版本问题总是很麻烦,先这么改着吧,改了就跑通了。

它的package.xml为:<?xml version="1.0"?> <package> <name>dh_hand_driver</name> <version>0.0.0</version> <description>The dh_hand_driver package</description> <!-- One maintainer tag required, multiple allowed, one person per tag --> <!-- Example: --> <!-- <maintainer email="jane.doe@example.com">Jane Doe</maintainer> --> <maintainer email="jiesun@todo.todo">jiesun</maintainer> <!-- One license tag required, multiple allowed, one license per tag --> <!-- Commonly used license strings: --> <!-- BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3 --> <license>TODO</license> <!-- Url tags are optional, but multiple are allowed, one per tag --> <!-- Optional attribute type can be: website, bugtracker, or repository --> <!-- Example: --> <!-- <url type="website">http://wiki.ros.org/dh_hand_driver</url> --> <!-- Author tags are optional, multiple are allowed, one per tag --> <!-- Authors do not have to be maintainers, but could be --> <!-- Example: --> <!-- <author email="jane.doe@example.com">Jane Doe</author> --> <!-- The *depend tags are used to specify dependencies --> <!-- Dependencies can be catkin packages or system dependencies --> <!-- Examples: --> <!-- Use depend as a shortcut for packages that are both build and exec dependencies --> <!-- <depend>roscpp</depend> --> <!-- Note that this is equivalent to the following: --> <!-- <build_depend>roscpp</build_depend> --> <!-- <exec_depend>roscpp</exec_depend> --> <!-- Use build_depend for packages you need at compile time: --> <!-- <build_depend>message_generation</build_depend> --> <!-- Use build_export_depend for packages you need in order to build against this package: --> <!-- <build_export_depend>message_generation</build_export_depend> --> <!-- Use buildtool_depend for build tool packages: --> <!-- <buildtool_depend>catkin</buildtool_depend> --> <!-- Use exec_depend for packages you need at runtime: --> <!-- <exec_depend>message_runtime</exec_depend> --> <!-- Use test_depend for packages you need only for testing: --> <!-- <test_depend>gtest</test_depend> --> <!-- Use doc_depend for packages you need only for building documentation: --> <!-- <doc_depend>doxygen</doc_depend> --> <buildtool_depend>catkin</buildtool_depend> <build_depend>actionlib</build_depend> <build_depend>actionlib_msgs</build_depend> <build_depend>message_generation</build_depend> <build_depend>roscpp</build_depend> <build_depend>rospy</build_depend> <build_depend>serial</build_depend> <build_depend>std_msgs</build_depend> <run_depend>std_msgs</run_depend> <run_depend>actionlib</run_depend> <run_depend>actionlib_msgs</run_depend> <run_depend>message_runtime</run_depend> <run_depend>roscpp</run_depend> <run_depend>rospy</run_depend> <run_depend>serial</run_depend> <!-- The export tag contains other, unspecified, tags --> <export> <!-- Other tools can request additional information be placed here --> </export> </package>。需要修改吗?
03-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值