Ask Your Question
0

roscore doesn't start normally anymore?

asked 2016-01-11 05:01:43 -0600

Sietse gravatar image

Hello all,

since a week or so, starting roscore doesn't work normally om my machine. The program hangs most of the time, there is nothing more than the command I entered. It only starts if I Ctrl-C the hanging roscore, then it suddenly starts. Very strange.

If I, e.g., start rviz it has the same behaviour (often), it only really starts when I ctrl-C the hanging program.

There were no ros-updates in the last month I think. I am running ubuntu 14.04 and indigo, all standard.

What can we wrong here? Thanks in advance,

Sietse

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2016-01-11 05:24:47 -0600

gvdhoorn gravatar image

It only starts if I Ctrl-C the hanging roscore, then it suddenly starts.

It normally takes care of this by itself, but sometimes ROS needs a little help: run a rosclean check and see if it also hangs (or takes a very long time to complete). That is the program that is run first by roscore: it keeps tabs on the nr of log files (and their total size). On a regular HDD (so not an SSD), that can take quite some time.

If rosclean check also 'hangs', you can either run rosclean purge, or manually rm ~/.ros/log/*.log. In both cases make sure you have nothing there you'd like to keep.

edit flag offensive delete link more

Comments

rosclean check check returns immediately, there was 109MB logging. After rosclean purge nothing is changed, so that isn't the problem... Any other possibility?

Sietse gravatar imageSietse ( 2016-01-11 06:25:02 -0600 )edit
1

Make sure you don't have any incorrect info in your /etc/hosts, or a wrong ROS_IP / ROS_HOSTNAME in your .bashrc. Especially on university / corporate networks (where addressing may change without notice) that sometimes leads to strange (and hard to diagnose) issues.

gvdhoorn gravatar imagegvdhoorn ( 2016-01-11 06:27:28 -0600 )edit

Thanks, that was it! It was some mixup between an extra network interface (to connect to our robots) and the university-linux-network-setup.

Sietse gravatar imageSietse ( 2016-01-11 07:33:40 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-01-11 05:01:43 -0600

Seen: 2,440 times

Last updated: Jan 11 '16