zoukankan      html  css  js  c++  java
  • roscore运行报错Unable to contact my own server

      大概几天没有运行ROS了,今天运行一下出现以下错误,在此记录一下

    zztsj@tsj:~$ roscore
    ... logging to /home/zztsj/.ros/log/3455db8a-1536-11eb-9296-9822efa1466f/roslaunch-tsj-8025.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://tsj:40035/].
    This usually means that the network is not configured properly.
                                                                                              
    A common cause is that the machine cannot ping itself.  Please check                      
    for errors by running:                                                                    
                                                                                              
            ping tsj                                                                          
                                                                                              
    For more tips, please see                                                                 
                                                                                              
            http://wiki.ros.org/ROS/NetworkSetup                                              
                                                                                              
    The traceback for the exception was written to the log file      

    解决方法如下:

    进入到配置文件

    vim ~/.bashrc

    加入以下两段代码

    1  export ROS_HOSTNAME=localhost
    2 export ROS_MASTER_URI=http://localhost:11311

    更新环境变量

    source ~/.bashrc

    就顺利解决了,再次启动就可以正常的跑起来了。

    可到官网去查找方法:http://wiki.ros.org/ROS/NetworkSetup



  • 相关阅读:
    Jmeter执行流程分析
    curl获取公网IP地址
    搭建redis集群
    基于bind搭建DNS主从
    centos7设置iptables
    rabbitmq常用命令
    防火墙
    定时任务和配置中心
    Maven中pom.xml配置文件详细介绍
    Grafana+Prometheus监控
  • 原文地址:https://www.cnblogs.com/tanshengjiang/p/13866372.html
Copyright © 2011-2022 走看看