Skip to content

Commit

Permalink
change window size and add output sym link (#15)
Browse files Browse the repository at this point in the history
Signed-off-by: Takagi, Isamu <isamu.takagi@tier4.jp>
  • Loading branch information
isamu-takagi authored Jun 11, 2024
1 parent 3309c5d commit 9d4dc08
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions aichallenge/run_evaluation.bash
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
OUTPUT_DIRECTORY=$(date +%Y%m%d-%H%M%S)
cd /output || exit
mkdir "$OUTPUT_DIRECTORY"
ln -nfs "$OUTPUT_DIRECTORY" latest
cd "$OUTPUT_DIRECTORY" || exit

# shellcheck disable=SC1091
Expand All @@ -23,10 +24,6 @@ ros2 launch aichallenge_system_launch aichallenge_system.launch.xml >autoware.lo
PID_AUTOWARE=$!
sleep 10

# Move AWSIM window
wmctrl -a "AWSIM" && wmctrl -r "AWSIM" -e 0,0,0,960,1043


# Start recording rosbag
echo "Start rosbag"
ros2 bag record -a -o rosbag2_autoware >/dev/null 2>&1 &
Expand All @@ -41,6 +38,10 @@ done
ros2 service call /debug/service/capture_screen std_srvs/srv/Trigger >/dev/null
sleep 5

# Move windows
wmctrl -a "RViz" && wmctrl -r "RViz" -e 0,0,0,1600,900
wmctrl -a "AWSIM" && wmctrl -r "AWSIM" -e 0,0,0,700,960

# Start driving and wait for the simulation to finish
echo "Waiting for the simulation"
ros2 topic pub --once /control/control_mode_request_topic std_msgs/msg/Bool '{data: true}' >/dev/null
Expand Down

0 comments on commit 9d4dc08

Please sign in to comment.