ROS_MASTER_URI is not defined in the environment
在用QT调试ROS的时候,运行出现以下错误:
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
还有就是
nothing to be done for first
我明明已经开启了roscore节点,然后按照提示把
export ROS_MASTER_URI=http://localhost:11311
这句话加到bashrc文件也依然不行,最后上网百度才知道原因是没有从bash里面启动qt,所以qt的环境变量里面没有ros的变量环境,所以运行不起来。