ROS之服務器與客戶端簡單程序遇到的錯誤
在按ROS入門教程(點擊打開鏈接)行進過程中遇到的錯誤
1、exec_depend與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>
這樣就得以解決問題
2、ROSCORE每次啟動必須打開
[ERROR] [1446531999.044935824]: [registerPublisher] Failed to contact master at [localhost:11311]. Retrying...
解決:請檢查 roscore 是否正常打開。
每次進行運行測試時都要首先運行 roscore。
ROS之服務器與客戶端簡單程序遇到的錯誤