eclipse下調試ROS工程

同Qt調試較大的CMakeLists程序時,比較卡,變量查看跳轉很慢,所以轉到eclipse下面。

主要內容參照:

http://www.cnblogs.com/freedomshe/archive/2013/05/16/configure_eclipse_in_catkin.html

還有一篇:http://blog.csdn.net/sunbibei/article/details/45319457,也有相應的參考


但是遇到一些問題,記錄如下:

1.運行報錯:

“ [31m[FATAL] [1475987926.825032659]: ROS_MASTER_URI is not defined in the environment. Either type the following or (preferrably) add this to your ~/.bashrc file in order set up your local machine as a ROS master:

export ROS_MASTER_URI=http://localhost:11311 ”

方法:在eclipse環境中添加ROS_MASTER_URI變量

          windows->preference->c/c++->build->environment

       點擊add,添加對應的變量


如果出現找不到頭文件之類的,或者編輯器中,頭文件那裏一直報錯,

就把所有的變量添加上。

add->select->select All

發佈了44 篇原創文章 · 獲贊 16 · 訪問量 9萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章