天天看點

ROS入門 建立msg(消息)和svr(服務)遇到的問題

ROS測試版本:Indigo

在按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>
           

這樣就得以解決問題