(base) root@miivii-tegra:/# roscore
... logging to /root/.ros/log/3e781ae4-6a62-11ef-84d0-64626600601d/roslaunch-miivii-tegra-302.log Checking log directory for disk usage. This may take a while. Press Ctrl-C to interrupt Done checking log file disk usage. Usage is <1GB. RLException: Unable to contact my own server at [http://miivii-tegra:36127/]. This usually means that the network is not configured properly. A common cause is that the machine cannot connect to itself. Please check for errors by running: ping miivii-tegra For more tips, please see http://wiki.ros.org/ROS/NetworkSetup The traceback for the exception was written to the log file
问题在于ROS(Robot Operating System)无法通过网络与本地机器建立连接。
解决办法:
-
检查主机名解析
- 运行
ping miivii-tegra
检查是否可以成功ping通。 - 如果不能ping通,请确保
/etc/hosts
文件中正确配置了主机名和IP地址
- 运行