add services
This commit is contained in:
10
drone_scripts/start_height_sensor.sh
Executable file
10
drone_scripts/start_height_sensor.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
. /home/ubuntu/source_ros2.sh
|
||||
|
||||
SERIAL=$(cat /home/ubuntu/drone_conf/height.conf)
|
||||
echo "serial port is "$SERIAL
|
||||
echo ros2 run height height_reader --ros-args -p height_serial_port:=/dev/${SERIAL}
|
||||
ros2 run height height_reader --ros-args -p height_serial_port:=/dev/${SERIAL} | tee /home/ubuntu/drone_log/height.log
|
||||
|
||||
|
||||
Reference in New Issue
Block a user