diff --git a/launch/rosbuzz-testing.launch b/launch/rosbuzz-testing.launch index 4baca4f..d674c14 100644 --- a/launch/rosbuzz-testing.launch +++ b/launch/rosbuzz-testing.launch @@ -1,13 +1,26 @@ - - + + + + + + - - - - - + + + + + + + + + + + + + + @@ -15,18 +28,17 @@ - + - + - + - diff --git a/misc/cmdlinectr.sh b/misc/cmdlinectr.sh new file mode 100644 index 0000000..e00b73b --- /dev/null +++ b/misc/cmdlinectr.sh @@ -0,0 +1,20 @@ +#! /bin/bash +function takeoff { + rosservice call /buzzcmd 0 22 0 0 0 0 0 0 0 0 +} +function land { + rosservice call /buzzcmd 0 21 0 0 0 0 0 0 0 0 +} +function record { + rosbag record /flight_status /global_position /dji_sdk/local_position /neighbours_pos /power_status /guidance/obstacle_distance /guidance/front_depth_image/compressedDepth /guidance/right_depth_image/compressedDepth /guidance/left_depth_image/compressedDepth /guidance/bottom_depth_image/compressedDepth /guidance/back_depth_image/compressedDepth +} +function clean { + sudo rm /var/log/upstart/robot* + sudo rm /var/log/upstart/x3s* +} +function startrobot { + sudo service robot start +} +function stoprobot { + sudo service robot stop +}