Skip to content

Commit 386b64f

Browse files
committed
ignoring arm joints
1 parent b21896a commit 386b64f

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

src/bitbots_rl_walk/bitbots_rl_walk/forward_kick.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,17 @@
3131
from bitbots_msgs.msg import JointCommand
3232

3333
ONNX_MODEL = os.path.join(
34-
get_package_share_directory("bitbots_rl_walk"), "models", "wolfgang_forward_kick_better_ball_ppo.onnx"
34+
get_package_share_directory("bitbots_rl_walk"), "models", "wolfgang_forward_kick_better_ball_without_arms_ppo.onnx"
3535
)
3636

3737
WALKREADY_STATE = np.array(
3838
[
39-
0,
40-
0,
41-
0,
42-
0,
43-
0,
44-
0,
39+
# 0,
40+
# 0,
41+
# 0,
42+
# 0,
43+
# 0,
44+
# 0,
4545
0.023628265148262724,
4646
-0.10401795710581162,
4747
-0.7352626990449959,
@@ -63,12 +63,12 @@
6363
GAIT_FREQUENCY = 1.5 # Gait frequency in Hz
6464

6565
ORDERED_RELEVANT_JOINT_NAMES = [
66-
"RShoulderPitch",
67-
"RShoulderRoll",
68-
"RElbow",
69-
"LShoulderPitch",
70-
"LShoulderRoll",
71-
"LElbow",
66+
# "RShoulderPitch",
67+
# "RShoulderRoll",
68+
# "RElbow",
69+
# "LShoulderPitch",
70+
# "LShoulderRoll",
71+
# "LElbow",
7272
"RHipYaw",
7373
"RHipRoll",
7474
"RHipPitch",
@@ -215,9 +215,9 @@ def _timer_callback(self):
215215
gyro, # 3
216216
gravity, # 4
217217
# command, # 3
218-
joint_angles, # 18
219-
joint_velocities, # 18
220-
self._previous_action, # 18 # Previous action
218+
joint_angles, # 18 (or 12)
219+
joint_velocities, # 18 (or 12)
220+
self._previous_action, # 18 (or 12) # Previous action
221221
phase, # 2
222222
rel_ball_pos, # 2
223223
]
Binary file not shown.

0 commit comments

Comments
 (0)