Skip to content

Commit

Permalink
ci(pre-commit): autofix
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Dec 9, 2021
1 parent d8e7561 commit 8ed702d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions common/autoware_debug_tools/scripts/stop_reason2tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
stop_reason_name="$1"

if [ -z "${stop_reason_name}" ]; then
echo "Please input stop_reason_name as the 1st argument."
exit 1
echo "Please input stop_reason_name as the 1st argument."
exit 1
fi

ros2 run autoware_debug_tools stop_reason2pose.py /planning/scenario_planning/status/stop_reasons >/dev/null 2>&1 &
Expand Down
20 changes: 10 additions & 10 deletions common/autoware_rosbag_recorder/scripts/record.sh
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
#!/bin/sh

usage_exit() {
echo "Usage: ros2 run autoware_rosbag_recorder record.sh [-o filename]" 1>&2
exit 1
echo "Usage: ros2 run autoware_rosbag_recorder record.sh [-o filename]" 1>&2
exit 1
}

while getopts o:h OPT; do
case $OPT in
"o") echo "record as $OPTARG" ;;
"h") usage_exit ;;
"*") usage_exit ;;
\?) usage_exit ;;
esac
case $OPT in
"o") echo "record as $OPTARG" ;;
"h") usage_exit ;;
"*") usage_exit ;;
\?) usage_exit ;;
esac
done

if [ -n "$OPTARG" ]; then
ros2 bag record -e "(.*)/velodyne_packets|/pacmod_interface/(.*)|/pacmod/(.*)|/vehicle/(.*)|/sensing/imu/(.*)|/sensing/gnss/(.*)|/sensing/camera/(.*)/camera_info|/sensing/camera/(.*)/compressed|/perception/object_recognition/detection/rois(.)|/perception/object_recognition/objects" -o "$OPTARG"
ros2 bag record -e "(.*)/velodyne_packets|/pacmod_interface/(.*)|/pacmod/(.*)|/vehicle/(.*)|/sensing/imu/(.*)|/sensing/gnss/(.*)|/sensing/camera/(.*)/camera_info|/sensing/camera/(.*)/compressed|/perception/object_recognition/detection/rois(.)|/perception/object_recognition/objects" -o "$OPTARG"
else
usage_exit
usage_exit
fi

0 comments on commit 8ed702d

Please sign in to comment.