roscore doesn't output anything.
I'm using ROS Indigo on Ubuntu 14.04.
Strangely enough, running roscore
doesn't output anything as it should.
Running roswtf
shows the following output
ROSIP may be incorrect : ROSIP [192.168.0.51] does not appear to be a local IP address ['127.0.0.1', '100.69.117.246'] ROSMASTERURI is [http://192.168.0.200:11311]
I agree that there are similar questions on here which have already been answered.
But trying those solutions and changing the IP in .bashrc
file did't affect the issue or I might be going wrong somewhere which i'm unable to figure out.
Thanks.
Asked by spiritninja on 2019-02-21 14:53:49 UTC
Answers
Assuming that you are running roscore
on the local machine, open a terminal and try the following:
$ ifconfig
This will show you your ip address, among other info.
Once you find out what your ip address is, in terminal type the following at the bottom:
$ echo $ROS_MASTER_URI
and
$ echo $ROS_IP
Ensure that these match what you found in the first step.
If not, go in to your /.bashrc and type the following
export ROS_MASTER_URI=http://**your_ip_address**:11311
export ROS_IP=**your_ip_address**
Either re-source your .bashrc or close terminal and re-open a new one before running another roscore
.
Asked by lucasg on 2019-02-21 17:43:03 UTC
Comments
Thank you @lucasg
I had to reset the IP
and MASTER
addresses to the address shown in the warning by roswtf
.
As ROS is running on the local machine, the catch was that the address in my export lines were changed to one with which the system couldn't ping itself.
Asked by spiritninja on 2019-02-22 01:04:25 UTC
Unlike the usual 127.0.0.1 for localhost, the other address worked. Apart from ifconfig
hostname -I
was helpful in verifying whether the address was a localhost or not.
Asked by spiritninja on 2019-02-22 01:10:27 UTC
Setting ROS_IP
and ROS_MASTER_URI
to values other than the defaults is typically only needed in special cases. Make sure you actually need to do this, as you've already found out that incorrect values can lead to problems (which may be hard to diagnose).
Asked by gvdhoorn on 2019-02-22 11:15:51 UTC
Indeed @gvdhoorn . I wouldn't have changed the addressed but for reasons unknown my localhost address has started changing which I hadn't encountered earlier and hence the same had to be reflected in .bashrc
for roscore
to run again. I doubt if it has anything to do with export DISPLAY
. Thanks
Asked by spiritninja on 2019-02-25 05:43:46 UTC
Comments
Can you clarify why you are setting
ROS_IP
? Setting that to an incorrect value most likely is the cause here.Asked by gvdhoorn on 2019-02-21 15:23:12 UTC
@gvdhoorn I reset
ROS_IP
because I found out that it had been changed to some other value upon checking my system IP.roscore
was working fine before and as I keep a copy of my.bashrc
if I make changes, i noticed theIP
value had changed in this file. Hence i tried setting it back.Asked by spiritninja on 2019-02-21 23:14:24 UTC