Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: window size and sym link #15

Merged
merged 1 commit into from
Jun 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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