Clover demo application that can be used as a template.
Contents:
- The main Python script (
src/main.py). - The main launch file (
launch/main.launch). - The systemd service file: (
debian/service.em). - The web part served with
roswwworroswww_static(www).
Install prerequisites:
sudo apt-get install python3-bloom fakeroot debhelper dpkg-devGo to your package directory:
roscd clover_appGenerate Debian files:
bloom-generate rosdebianBuild Debian package:
fakeroot debian/rules binaryThe built Debian packages are located one directory upper then your package directory:
cd ..Install the package with dpkg. E. g.:
sudo dpkg -i ros-noetic-clover-app_0.0.0-0buster_armhf.debThe systemd service file is installed as <package_name>.service, e. g. ros-noetic-clover-app.service. It will be started automatically. You can see the status using systemctl command, e. g.:
sudo systemctl status ros-noetic-clover-appThe demo script will publish to a topic /test:
rostopic echo /testThe web part should be available at http://<hostname>/<package_name>, e. g. http://192.168.11.1/clover_app.
Change all the clover_app occurrences to your app's name. Keeping clover_ prefix is recommended.
Finished Debian package can be published at packages.coex.tech.