Adding the gpu services

This commit is contained in:
AhmedElsafy 2021-05-14 15:47:03 -03:00
parent e5961a913a
commit 53cccb2d03
2 changed files with 17 additions and 0 deletions

7
sbin/gpudisplaunch Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
source ~/catkin-ws/devel/setup.bash
source /etc/ros/env.sh
export ROS_HOME=$(echo ~spiri/.ros)
roslaunch gpu_stereo_image_proc libsgm_stereo_image_proc.launch manager:=/stereo/standalone_nodelet __ns:=stereo
PID=$!
wait "$PID"

View File

@ -0,0 +1,10 @@
[Unit]
Requires=roscore.service
PartOf=roscore.service
After=NetworkManager.service time-sync.target roscore.service camlaunch.service
[Service]
Type=simple
User=spiri
ExecStart=/usr/sbin/gpudisplaunch
[Install]
WantedBy=multi-user.target