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

reduce roscore startup time

asked 2014-06-30 02:21:08 -0500

GringoRos gravatar image


I'm running ros on an embedded system (2xCortexA9@900MHz). It takes about 13 seconds till roscore is ready. The problem is, that I need a running system with roscore and some small nodes after about 12 seconds. The bootup time of the operating system (~3sec) is included, so roscore must be started in 9 sec. or better.

I used the python cProfile module and runsnake but I didn't find the "one" time consuming element. Are there any ideas how to reduce the startup time of roscore? Is it possible to "compile" roscore (binary without python)?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-06-30 13:58:43 -0500

ahendrix gravatar image

updated 2017-06-07 12:42:15 -0500

I believe that there's an option to roslaunch that skips the disk space check; that may be able to shave a few seconds off of the startup time, particularly if there isn't a user to see the results.


The command-line option to roslaunch to skip log size checks is --skip-log-check

edit flag offensive delete link more


Thanks a lot for your great advice! May I know if there is any tips for finding the function of disk space checking in the source code of ROS? :)

AustinXDLiu gravatar image AustinXDLiu  ( 2017-06-07 04:16:10 -0500 )edit

I've updated my answer with the option in question. If you're still curious about how it works, I'd recommend that you start at the roslaunch wiki page and follow the source code link to the source code.

ahendrix gravatar image ahendrix  ( 2017-06-07 12:43:11 -0500 )edit

Question Tools



Asked: 2014-06-30 02:21:08 -0500

Seen: 750 times

Last updated: Jun 07 '17