Nice work! A few small things—
systemd by default limits the number of processes per service. Our jobs are set to TasksMax=infinity to turn off this limitation.
- To ensure a clean shutdown, set it to send SIGINT to roslaunch instead of SIGKILL, with
KillSignal=SIGINT.
- Consider setting up a
ros or robot user to avoid running the background ROS job as root. Unfortunately it's not in 18.04, but as of eoan, there's a debhelper for this: http://manpages.ubuntu.com/manpages/eoan/en/man1/dh_sysuser.1.html
- Your
roslaunch invocation should probably have --wait to avoid racing the roscore unit that starts at the same time.
Nice work! A few small things—
systemdby default limits the number of processes per service. Our jobs are set toTasksMax=infinityto turn off this limitation.KillSignal=SIGINT.rosorrobotuser to avoid running the background ROS job as root. Unfortunately it's not in 18.04, but as of eoan, there's a debhelper for this: http://manpages.ubuntu.com/manpages/eoan/en/man1/dh_sysuser.1.htmlroslaunchinvocation should probably have--waitto avoid racing the roscore unit that starts at the same time.