5 Commits

Author SHA1 Message Date
0311f22be9 some tiny change 2025-11-24 17:42:59 +08:00
e3152ceebb some tiny change 2025-11-24 17:42:18 +08:00
20c819346c some tiny change 2025-11-24 17:39:05 +08:00
3226ef99c1 some tiny change 2025-11-24 17:01:46 +08:00
be8736ce3b Delete Tarin.sh 2025-11-21 02:43:42 -05:00
2 changed files with 4 additions and 4 deletions

View File

@@ -256,7 +256,7 @@ class Kick_3M(gym.Env):
waiting_steps += 1
dis = np.linalg.norm(self.ball_pos - w.ball_cheat_abs_pos)
reward = 10 - abs(3 - dis) - abs(w.ball_cheat_abs_pos[1] - self.ball_pos[1])
reward = 3 - abs(3 - dis) - abs(w.ball_cheat_abs_pos[1] - self.ball_pos[1])
if self.isfallen or w.ball_cheat_abs_pos[0] < self.ball_pos[0]:
reward = 0
# print(reward)
@@ -282,7 +282,7 @@ class Train(Train_Base):
minibatch_size = 64 # should be a factor of (n_steps_per_env * n_envs)
total_steps = 30000000
learning_rate = 3e-5
folder_name = f'kick_moving_ball_R{self.robot_type}'
folder_name = f'Kick_3M_R{self.robot_type}'
model_path = f'./scripts/gyms/logs/{folder_name}/'
# print("Model path:", model_path)

View File

@@ -1,6 +1,6 @@
#!/bin/bash
source /home/constantine/Downloads/Anaconda/etc/profile.d/conda.sh
conda activate FCP
source /home/apollo/下载/Anaconda/etc/profile.d/conda.sh
conda activate gym
export MKL_SERVICE_FORCE_INTEL=1
export MKL_THREADING_LAYER=GNU