Added convinence scripts for running base/behavior tree
This commit is contained in:
9
scripts/run_base.sh
Executable file
9
scripts/run_base.sh
Executable file
@@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
ros_distro="jazzy"
|
||||||
|
script_dir=$(dirname "$(readlink -f "${bash_source[0]}")")
|
||||||
|
|
||||||
|
source "/opt/ros/${ROS_DISTRO}/setup.bash"
|
||||||
|
source ./install/setup.bash
|
||||||
|
|
||||||
|
ros2 launch mg_bringup base.launch.py $@
|
||||||
19
scripts/run_bt.sh
Executable file
19
scripts/run_bt.sh
Executable file
@@ -0,0 +1,19 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
|
||||||
|
ros_distro="jazzy"
|
||||||
|
script_dir=$(dirname "$(readlink -f "${bash_source[0]}")")
|
||||||
|
pids=()
|
||||||
|
|
||||||
|
source "/opt/ros/${ROS_DISTRO}/setup.bash"
|
||||||
|
source "./install/setup.bash"
|
||||||
|
|
||||||
|
trap "trap - SIGTERM && kill -- -$$" SIGINT SIGTERM EXIT
|
||||||
|
|
||||||
|
ros2 launch mg_bringup bt.launch.py & pids+=($!)
|
||||||
|
|
||||||
|
sleep 1
|
||||||
|
|
||||||
|
ros2 action send_goal /mg_bt_action_server btcpp_ros2_interfaces/action/ExecuteTree "target_tree: $1" & pids+=($!)
|
||||||
|
|
||||||
|
wait
|
||||||
Reference in New Issue
Block a user