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

How to run roscore as a daemon

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

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
3

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

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.

http://wiki.ros.org/roslaunch

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

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

Seen: 2,657 times

Last updated: May 03 '15