Skip to content

Commit ae88760

Browse files
committed
rl kick input
1 parent 8bfd972 commit ae88760

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

  • src/bitbots_rl_walk/bitbots_rl_walk

src/bitbots_rl_walk/bitbots_rl_walk/kick.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -279,17 +279,15 @@ def _timer_callback(self):
279279

280280
command = np.array([self._cmd_vel.linear.x, self._cmd_vel.linear.y, self._cmd_vel.angular.z], dtype=np.float32)
281281

282-
"""
283282
rel_ball_pos = np.array(
284283
[
285-
self._ball_pos_rel_filter.pose.pose.position.x,
286-
self._ball_pos_rel_filter.pose.pose.position.y,
284+
self._goal_pose.pose.position.x,
285+
self._goal_pose.pose.position.y,
287286
],
288287
dtype=np.float32,
289288
)
290289

291290
rel_target_pos = np.array([])
292-
"""
293291

294292
obs = np.hstack(
295293
[
@@ -300,7 +298,8 @@ def _timer_callback(self):
300298
joint_velocities, # 18
301299
self._previous_action, # 18 # Previous action
302300
phase, # 2
303-
# rel_ball_pos, # 2
301+
rel_ball_pos, # 2
302+
rel_target_pos, # 0
304303
]
305304
).astype(np.float32)
306305

0 commit comments

Comments
 (0)