ros消息和服务error:The manifest (with format version 2) must not contain the following tags: run_depend

在按ROS入门教程(点击打开链接)行进过程中到了执行

rosmsg show beginner_tutorials/Num

命令时,出现提示

The manifest (with format version 2) must not contain the following tags: run_depend

的警告,这个的主要解决方法是使用catkin方式时在package.xml文件中将教程中添加的两行语句

 <build_depend>message_generation</build_depend>
  <run_depend>message_runtime</run_depend>

要改成

  <build_depend> message_generation </build_depend>

  <exec_depend> message_runtime </exec_depend>

或者

<build_export_depend>message_generation</build_export_depend>
<exec_depend>message_runtime</exec_depend>

这样就得以解决问题


--------------------- 
作者:fancyop 
来源:CSDN 
原文:https://blog.csdn.net/fancyop/article/details/79149402 
版权声明:本文为博主原创文章,转载请附上博文链接!

猜你喜欢

转载自blog.csdn.net/weixin_41803874/article/details/83961523