Skip to content

Commit

Permalink
Update services for Stanley
Browse files Browse the repository at this point in the history
  • Loading branch information
flochre committed Oct 1, 2023
1 parent 85420a4 commit 702600a
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Unit]
Description=Service to start Vmxpi
After=syslog.target network.target
[Service]
LimitMEMLOCK=102400
LimitMEMLOCKSoft=102400
LimitRTPRIO=99
LimitRTPRIOSoft=99
ExecStart=/bin/bash /opt/stanley2/scripts/stanley2-vmxpi-start
Restart=on-failure
RestartSec=10s
User=root
[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

source /opt/ros/humble/setup.bash
source /opt/stanley2/stanley2_control/setup.bash

ros2 launch ros2_vmxpi ros2_vmxpi_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ ls -la /usr/local/lib
# activate stanley2 service
systemctl daemon-reload
systemctl enable stanley2.service
systemctl enable stanley2_vmxpi.service

# clean up to reduce image size
apt-get autoremove -y && apt-get clean
Expand Down

0 comments on commit 702600a

Please sign in to comment.