Skip to content

Commit

Permalink
Readding new services
Browse files Browse the repository at this point in the history
  • Loading branch information
jmount1992 committed Jun 1, 2023
1 parent 25bb472 commit e696473
Show file tree
Hide file tree
Showing 15 changed files with 225 additions and 0 deletions.
27 changes: 27 additions & 0 deletions ros-project/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cmake_minimum_required(VERSION 3.0.2)
project(ros_project)

find_package(catkin REQUIRED)

###################################
## catkin specific configuration ##
###################################

catkin_package(
)

###########
## Build ##
###########

include_directories(
)

#############
## Install ##
#############

install(FILES
etc/ros-project.service
DESTINATION /etc/systemd/system/
)
6 changes: 6 additions & 0 deletions ros-project/debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

systemctl daemon-reload

systemctl enable ros-project.service
systemctl start ros-project.service
6 changes: 6 additions & 0 deletions ros-project/debian/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

systemctl stop ros-project.service
systemctl disable ros-project.service

systemctl daemon-reload
13 changes: 13 additions & 0 deletions ros-project/etc/ros-project.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=ROS Project Service Hook
Requires=ros-watchdog.service
After=ros-watchdog.service

[Service]
ExecStart=/bin/bash -c "echo Started ROS Project Service Hook"
RemainAfterExit=true
Restart=always

[Install]
WantedBy=ros-watchdog.service

23 changes: 23 additions & 0 deletions ros-project/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<package format="2">
<name>ros_project</name>
<version>0.3.0</version>
<description>The ros_project package</description>

<!-- One maintainer tag required, multiple allowed, one person per tag -->
<!-- Example: -->
<!-- <maintainer email="[email protected]">Jane Doe</maintainer> -->
<maintainer email="[email protected]">QUT-REF</maintainer>


<license>MIT</license>

<buildtool_depend>catkin</buildtool_depend>
<exec_depend>qcr_env</exec_depend>

<!-- The export tag contains other, unspecified, tags -->
<export>
<!-- Other tools can request additional information be placed here -->

</export>
</package>
27 changes: 27 additions & 0 deletions ros-robot/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cmake_minimum_required(VERSION 3.0.2)
project(ros_robot)

find_package(catkin REQUIRED)

###################################
## catkin specific configuration ##
###################################

catkin_package(
)

###########
## Build ##
###########

include_directories(
)

#############
## Install ##
#############

install(FILES
etc/ros-robot.service
DESTINATION /etc/systemd/system/
)
6 changes: 6 additions & 0 deletions ros-robot/debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

systemctl daemon-reload

systemctl enable ros-robot.service
systemctl start ros-robot.service
6 changes: 6 additions & 0 deletions ros-robot/debian/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

systemctl stop ros-robot.service
systemctl disable ros-robot.service

systemctl daemon-reload
13 changes: 13 additions & 0 deletions ros-robot/etc/ros-robot.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=ROS Robot Service Hook
Requires=ros-watchdog.service
After=ros-watchdog.service

[Service]
ExecStart=/bin/bash -c "echo Started ROS Robot Service Hook"
RemainAfterExit=true
Restart=always

[Install]
WantedBy=ros-watchdog.service

23 changes: 23 additions & 0 deletions ros-robot/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<package format="2">
<name>ros_robot</name>
<version>0.3.0</version>
<description>The ros_robot package</description>

<!-- One maintainer tag required, multiple allowed, one person per tag -->
<!-- Example: -->
<!-- <maintainer email="[email protected]">Jane Doe</maintainer> -->
<maintainer email="[email protected]">QUT-REF</maintainer>


<license>MIT</license>

<buildtool_depend>catkin</buildtool_depend>
<exec_depend>qcr_env</exec_depend>

<!-- The export tag contains other, unspecified, tags -->
<export>
<!-- Other tools can request additional information be placed here -->

</export>
</package>
27 changes: 27 additions & 0 deletions ros-sensors/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
cmake_minimum_required(VERSION 3.0.2)
project(ros_sensors)

find_package(catkin REQUIRED)

###################################
## catkin specific configuration ##
###################################

catkin_package(
)

###########
## Build ##
###########

include_directories(
)

#############
## Install ##
#############

install(FILES
etc/ros-sensors.service
DESTINATION /etc/systemd/system/
)
6 changes: 6 additions & 0 deletions ros-sensors/debian/postinst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

systemctl daemon-reload

systemctl enable ros-sensors.service
systemctl start ros-sensors.service
6 changes: 6 additions & 0 deletions ros-sensors/debian/prerm
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

systemctl stop ros-sensors.service
systemctl disable ros-sensors.service

systemctl daemon-reload
13 changes: 13 additions & 0 deletions ros-sensors/etc/ros-sensors.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[Unit]
Description=ROS Sensors Service Hook
Requires=ros-watchdog.service
After=ros-watchdog.service

[Service]
ExecStart=/bin/bash -c "echo Started ROS Sensors Service Hook"
RemainAfterExit=true
Restart=always

[Install]
WantedBy=ros-watchdog.service

23 changes: 23 additions & 0 deletions ros-sensors/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<package format="2">
<name>ros_sensors</name>
<version>0.3.0</version>
<description>The ros_sensors package</description>

<!-- One maintainer tag required, multiple allowed, one person per tag -->
<!-- Example: -->
<!-- <maintainer email="[email protected]">Jane Doe</maintainer> -->
<maintainer email="[email protected]">QUT-REF</maintainer>


<license>MIT</license>

<buildtool_depend>catkin</buildtool_depend>
<exec_depend>qcr_env</exec_depend>

<!-- The export tag contains other, unspecified, tags -->
<export>
<!-- Other tools can request additional information be placed here -->

</export>
</package>

0 comments on commit e696473

Please sign in to comment.