ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

roscore does not initialize

asked 2017-03-26 05:22:04 -0600

Filippo Grazioli gravatar image

updated 2017-03-27 17:50:24 -0600

tfoote gravatar image

Hey guys,

I'm new to ROS. If I run roscore, it does not initialize, it just gets stuck. If I run strace roscore, after a certain point, I keep seeing the following forever:

select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)
select(0, NULL, NULL, NULL, {0, 100000}) = 0 (Timeout)

Concerning the environmental variables, I have:

ROS_ROOT=/opt/ros/kinetic/share/ros
ROS_PACKAGE_PATH=/home/filippo/catkin_ws/src:/opt/ros/kinetic/share
ROS_MASTER_URI=http://localhost:11311
ROS_HOSTNAME=localhost
ROSLISP_PACKAGE_DIRECTORIES=/home/filippo/catkin_ws/devel/share/common-lisp
ROS_DISTRO=kinetic
ROS_ETC_DIR=/opt/ros/kinetic/etc/ros

The console output is:

Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

started roslaunch server http://filippo-HP-ENVY-17-Notebook-PC:43155/
ros_comm version 1.12.7


SUMMARY
========

PARAMETERS
 * /rosdistro: kinetic
 * /rosversion: 1.12.7

NODES

auto-starting new master
process[master]: started with pid [15768]
ROS_MASTER_URI=http://filippo-HP-ENVY-17-Notebook-PC:11311/

setting /run_id to 1cc9a0fe-133d-11e7-903f-3423872d9899
process[rosout-1]: started with pid [15781]
started core service [/rosout]

Any idea? Thanks a lot :)

edit retag flag offensive close merge delete

Comments

Please show the console output for when you run it too.

tfoote gravatar image tfoote  ( 2017-03-27 12:41:37 -0600 )edit

Please edit your question when you have updates. I've added the console output to your question for you.

tfoote gravatar image tfoote  ( 2017-03-27 17:50:47 -0600 )edit

This is what starting up roscore is supposed to do; it will keep running and won't print a new prompt until you stop it.

ahendrix gravatar image ahendrix  ( 2017-03-27 17:52:11 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2017-03-27 17:55:22 -0600

tfoote gravatar image

It looks like your roscore has started and is successfully running. That is the same output that I see when I run roscore. It is just waiting for an incoming connection.

Now that you've started the ROS master using roscore. You need to launch a node. I'd recommend going through the ROS tutorials: http://wiki.ros.org/ROS/Tutorials

edit flag offensive delete link more
1

answered 2017-03-27 06:54:23 -0600

angeltop gravatar image

I am not sure what is wrong, but maybe it would help if you also set the ROS_IP variable

export ROS_IP=127.0.0.1
edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2017-03-26 05:22:04 -0600

Seen: 2,700 times

Last updated: Mar 27 '17