File tree Expand file tree Collapse file tree
demos/turtlebot3_integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ API_BASE="${GATEWAY_URL}/api/v1"
88# Colors for output
99BLUE=' \033[0;34m'
1010GREEN=' \033[0;32m'
11- YELLOW=' \033[1;33m'
1211NC=' \033[0m'
1312
1413echo_step () {
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ echo "Canceling any active navigation goals..."
2626# List active executions and cancel them
2727EXECUTIONS=$( curl -s " ${API_BASE} /apps/bt-navigator/operations/navigate_to_pose/executions" 2> /dev/null)
2828if echo " $EXECUTIONS " | jq -e ' .items[]' > /dev/null 2>&1 ; then
29- echo " $EXECUTIONS " | jq -r ' .items[].id' | while read EXEC_ID; do
29+ echo " $EXECUTIONS " | jq -r ' .items[].id' | while read -r EXEC_ID; do
3030 if [ -n " $EXEC_ID " ]; then
3131 curl -s -X DELETE " ${API_BASE} /apps/bt-navigator/operations/navigate_to_pose/executions/$EXEC_ID " > /dev/null 2>&1
3232 echo " Canceled execution: $EXEC_ID "
You can’t perform that action at this time.
0 commit comments