roscore fails to start
I have just recently moved. My project worked before, but I cannot even run roscore now. This is the error I have received. Does anyone know a fix?
ecejames01@ECE521:~$ roscore
... logging to /home/ecejames01/.ros/log/314256dc-9f5b-11e4-96a8-000a9de008e4/roslaunch-ECE521-2982.log
Checkingt log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
Unable to contact my own server at [http://ECE521:43402/}.
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 ece521
For more tips, please see
http://www.ros.org/wiki/ROS/NetworkSetup
ping ece521 gives me: ping: unknown host ece521
Any help would be much appreciated. Thanks.
EDIT:
In a new terminal window, here are the results from commands:
ecejames01@ECE521:~$ hostname
ECE521
ecejames01@ECE521:~$ echo $ROS_HOSTNAME
ecejames01@ECE521:~$ echo $ROS_IP
68.55.84.72
ecejames01@ECE521:~$ echo $ROS_MASTER_URI
http://localhost:11311
Running ifconfig eth0
gives me inet addr: 10.0.0.9
.
My localhost
is 127.0.0.1
.
Forcing ROS using these methods allows roscore to run:
export ROS_HOSTNAME=localhost
export ROS_MASTER_URI=http://localhost:11311
roscore
export ROS_IP=MY_IP_ADDRESS
export ROS_MASTER_URI=http://$ROS_IP:11311
roscore
Thanks gvdhoorn for all your help.