eclipse下调试ROS工程

来源:互联网 发布:阿里云服务器申请发票 编辑:程序博客网 时间:2024/06/04 18:53

同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

0 0
原创粉丝点击