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

Add helper scripts #102

Merged
merged 1 commit into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
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
5 changes: 5 additions & 0 deletions helperScripts/0kill.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

pkill -f "ros"
pkill -f "gz"
pkill -f "ruby"
21 changes: 21 additions & 0 deletions helperScripts/1manual.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Ctrl + C to exit the program
function cleanup() {
return
}

# trap cleanup SIGINT SIGTERM
trap cleanup SIGINT SIGTERM

cd ~/autonomous_f1tenth/

export GZ_PARTITION=50
export ROS_DOMAIN_ID=50

. install/setup.bash

colcon build
ros2 launch reinforcement_learning sanity_check.launch.py &

wait
21 changes: 21 additions & 0 deletions helperScripts/2train.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Ctrl + C to exit the program
function cleanup() {
return
}

# trap cleanup SIGINT SIGTERM
trap cleanup SIGINT SIGTERM

cd ~/autonomous_f1tenth/

export GZ_PARTITION=100
export ROS_DOMAIN_ID=100

. install/setup.bash

colcon build
ros2 launch reinforcement_learning train.launch.py &

wait
21 changes: 21 additions & 0 deletions helperScripts/3test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

# Ctrl + C to exit the program
function cleanup() {
return
}

# trap cleanup SIGINT SIGTERM
trap cleanup SIGINT SIGTERM

cd ~/autonomous_f1tenth/

export GZ_PARTITION=150
export ROS_DOMAIN_ID=150

. install/setup.bash

colcon build
ros2 launch reinforcement_learning test.launch.py &

wait
2 changes: 1 addition & 1 deletion retrain.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function cleanup() {
}

# trap cleanup SIGINT SIGTERM
trap cleanup SIGINT
trap cleanup SIGINT SIGTERM

# Time limit for training
if [ -z "$1" ]; then
Expand Down