ROS运行的一些常见问题记录,一边学一边记,下次遇见同样的问题可以回来查找解决方案
ROSCORE出现问题:Unable to contact my own server at [http://192.168.81.131:45753/].This usually means that the network is not configured properly.
我也不知道为什么会出现这种问题,反正不是真的因为网络,不管怎样只需要终端输入以下命令即可解决:
export ROS_HOSTNAME=localhost
export ROS_MASTER_URI=http://localhost:11311
然后重新输入roscore可以正常启动
roslaunch报错:[fake_turtlebot.launch] is neither a launch file in package [rbx1_bringup] nor is [rbx1_bringup] a launch file name.The traceback for the exception was written to the log file
仍然不知道为啥,但是网上说是因为没有source,那就source一下:
cd ~/catkin_ws
source devel/setup.bash
source完确实好了,但是如果他又说网有问题,就第一步的操作再来一遍就好了