Ask Your Question

How to run roscore as a daemon

asked 2015-05-03 12:44:34 -0600

Cerin gravatar image

Since virtually everything in ROS seems to require roscore to be running, and there should only be one instance of it per machine, does it make sense to run it as a daemon/service process on Ubuntu and make it start at boot time? If so, why is this not the default configuration? Googling shows a few people have non-standard solutions for accomplishing this, but nothing in the roscore wiki suggests this is even desirable.

I feel this may be confusing a lot of newcomers, like myself, since most of the tutorials don't mention you need to start roscore before you run any commands/nodes, and the errors you get for failing to do so are usually unhelpful and nothing along the lines of "roscore isn't running!"

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-05-03 21:17:30 -0600

jseal gravatar image

You might want to look into creating a launch file see roslaunch, it will start and stop roscore for you. Plus you can have as many nodes as you want and it only takes up one terminal.

If you are want to run a node(s) every time you boot up your computer have a look at the robot_upstart package.

edit flag offensive delete link more

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


Asked: 2015-05-03 12:44:34 -0600

Seen: 2,059 times

Last updated: May 03 '15