Add and enable roscore service by default

This commit is contained in:
Alexey Rogachevskiy
2020-06-08 17:10:50 +03:00
parent 63c625bc53
commit c3a1f46c59
3 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
[Unit]
Description=Launcher for the ROS master, parameter server and rosout logging node
[Service]
User=clever
ExecStart=/bin/sh -c ". /opt/ros/melodic/setup.sh; ROS_HOSTNAME=`hostname`.local exec roscore"
Restart=on-failure
RestartSec=3
[Install]
WantedBy=multi-user.target