Skip to content

Commit

Permalink
Minor fix in MuJoCo Interface
Browse files Browse the repository at this point in the history
- append instead of extend for unlimited joints
  • Loading branch information
boris-il-forte committed Jun 30, 2022
1 parent ac3b036 commit c2cdf4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mushroom_rl/environments/mujoco.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ def __init__(self, file_name, actuation_spec, observation_spec, gamma,
low.append(joint_range[0])
high.append(joint_range[1])
else:
low.extend(-np.inf)
high.extend(np.inf)
low.append(-np.inf)
high.append(np.inf)
else:
low.extend([-np.inf] * obs_count)
high.extend([np.inf] * obs_count)
Expand Down

0 comments on commit c2cdf4b

Please sign in to comment.