Skip to content

Setting up services at vizzy desktop

Plinio Moreno edited this page Apr 23, 2019 · 1 revision

Running roscore as a service using systemd File /etc/systemd/system/ros.service

[Unit]
Description=ROS Kinetic
After=sshd.service

[Service]
Type=simple
ExecStart=/opt/ros/kinetic/bin/roscore.startup
ExecStop=/opt/ros/kinetic/bin/roscore.kill

[Install]
WantedBy=multi-user.target

File /opt/ros/kinetic/bin/roscore.startup

#!/bin/bash

source /opt/ros/kinetic/setup.bash
roscore

File /opt/ros/kinetic/bin/roscore.kill

#!/bin/bash

source /opt/ros/kinetic/setup.bash
killall rosmaster

To start/stop and see status

systemctl start ros
systemctl stop ros
systemctl status ros

To start vizzy_launch, the idea is to use the robot_upstart package, using the option --provider systemd