add services

This commit is contained in:
Sem van der Hoeven
2023-05-09 12:48:18 +02:00
parent 7ff51fc904
commit 31f3959de4
9 changed files with 94 additions and 1 deletions

10
drone_scripts/start_lidar.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
. /home/ubuntu/source_ros2.sh
SERIAL=$(cat /home/ubuntu/drone_conf/lidar.conf)
echo "serial port is "$SERIAL
echo ros2 run object_detection lidar_reader --ros-args -p lidar_serial_port:=/dev/${SERIAL}
ros2 run object_detection lidar_reader --ros-args -p lidar_serial_port:=/dev/${SERIAL} | tee /home/ubuntu/drone_log/lidar.log