Ask Your Question

roscore hangs up in the middle [closed]

asked 2017-04-04 10:24:36 -0500

thanhvu94 gravatar image

I`m quite new to ROS and Linux, I need to use ROS to communicate between VICON system and Crazyflie. When I tried to run the rosrun, it works but hangs up in the middle at started core service [/rosout] . I wait for 15 minutes but there is nothing new. Could you tell me what is happening? Here is what actually happens on the terminal console:

pi@pi-desktop:~$ roscore
... logging to /home/pi/.ros/log/1e8ee47c-1945-11e7-8cfb-b827eb1fc882/roslaunch-pi-desktop-2196.log
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://pi-desktop:43110/
ros_comm version 1.12.6


 * /rosdistro: kinetic
 * /rosversion: 1.12.6


auto-starting new master
process[master]: started with pid [2209]

setting /run_id to 1e8ee47c-1945-11e7-8cfb-b827eb1fc882
process[rosout-1]: started with pid [2222]
started core service [/rosout]
^C[rosout-1] killing on exit
[master] killing on exit
shutting down processing monitor...
... shutting down processing monitor complete

My Ubuntu version is 16.04 and I'm using ROS Kinetic. Actually, I downloaded an image with ROS pre-installed on this website of germanrobot as suggested by ROS for my Raspberry 3.

Thank you.

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by thanhvu94
close date 2017-04-05 17:09:06.556460


What are you doing and what do you expect? Like others have said, roscore doesn't do much in the foreground and you're not going to see much happening. It sets up the infrastructure for your system. You'll see stuff happening when you run other nodes.

jayess gravatar image jayess  ( 2017-04-05 10:40:00 -0500 )edit

In other words, roscore is doing exactly what it's supposed to, there's no problem.

jayess gravatar image jayess  ( 2017-04-05 10:41:07 -0500 )edit

2 Answers

Sort by » oldest newest most voted

answered 2017-04-04 12:40:10 -0500

updated 2017-04-04 12:44:27 -0500

Roscore, same as rosnodes are applications, in linux, you are starting those in a terminal windows, those can be abruptly terminated by doing on the focus gained terminal Control+C I see in the windows you are doing that

check this line

...started core service [/rosout]

until that line everything was ok, roscore was runing as expected... but then you do:

^C[rosout-1] killing on exit

...[master] killing on exit

so you are actually killing the roscore

edit flag offensive delete link more


I'm facing the same issue. So do you mean that after running roscore, the console will just end up with showing "started core service [/rosout]"? If so, how do I give further command to my raspberrypi?

Jeoker gravatar image Jeoker  ( 2017-12-05 18:25:22 -0500 )edit

answered 2017-04-04 12:04:42 -0500

NEngelhard gravatar image

This is the correct behaviour. The master was simply waiting for nodes to start or parameters to be set or read and other jobs. What did you expect?

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-04-04 10:24:36 -0500

Seen: 1,853 times

Last updated: Apr 04 '17