Skip to content

Commit

Permalink
Merge pull request #13 from UoA-CARES/docker
Browse files Browse the repository at this point in the history
Docker
  • Loading branch information
retinfai authored May 16, 2023
2 parents 76d6451 + 09f35e5 commit fc09f14
Show file tree
Hide file tree
Showing 13 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ install
log
data
notes
models
training_logs
checkpoint
cares_reinforcement_learning
Expand Down
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,4 @@ RUN cd cares_reinforcement_learning && \
RUN echo 'source /opt/ros/humble/setup.bash' >> ~/.bashrc && \
echo 'source install/setup.bash' >> ~/.bashrc

WORKDIR /ws

RUN pip install -r requirements.txt
WORKDIR /ws
1 change: 1 addition & 0 deletions dockercommand.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
docker run --rm -it --network host --gpus all -e DISPLAY -e GZ_PARTITION=10 -v "$PWD/data:/ws/data" -v "$PWD/models:/ws/models" -v "$PWD/figures:/ws/figures" autonomous_f1tenth:latest bash
Binary file added models/cargoal_training-0_actor.pht
Binary file not shown.
Binary file added models/cargoal_training-0_critic.pht
Binary file not shown.
Binary file added models/carwall_training-0_actor.pht
Binary file not shown.
Binary file added models/carwall_training-0_critic.pht
Binary file not shown.
Binary file added models/carwall_training-25000_actor.pht
Binary file not shown.
Binary file added models/carwall_training-25000_critic.pht
Binary file not shown.
Binary file added models/carwall_training-50000_actor.pht
Binary file not shown.
Binary file added models/carwall_training-50000_critic.pht
Binary file not shown.
2 changes: 0 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ xhost +
docker run --rm -it \
--network host \
--gpus all \
--privileged \
-e NVIDIA_VISIBLE_DEVICES=all \
-e NVIDIA_DRIVER_COMPABILITIES=all \
-e QT_X11_NO_MITSHM=1 \
Expand All @@ -24,7 +23,6 @@ docker run --rm -it \
-v "$PWD/models:/ws/models" \
-v "$PWD/figures:/ws/figures" \
-v "$PWD/src:/ws/src" \
-v "/tmp/.X11-unix/:/tmp/.X11-unix" \
autonomous_f1tenth:latest \
bash

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def post(self, y_point):
self.y_data.append(y_point)

if self.plot_num % self.checkpoint_freq == 0:
self.save_csv(f'{self.name}-checkpoint-{len(self.x_data)}.csv')
self.save_csv(f'{self.name}-checkpoint.csv')

def save_csv(self, file_name=str(uuid.uuid4().hex)):
dir_exists = os.path.exists("data")
Expand Down

0 comments on commit fc09f14

Please sign in to comment.