Numpy bugfix
This commit is contained in:
parent
edd1e83813
commit
d0cb6316a5
@ -31,7 +31,6 @@ from .mujoco.table_tennis.mp_wrapper import TT_MPWrapper as MPWrapper_TableTenni
|
||||
from .mujoco.table_tennis.mp_wrapper import TT_MPWrapper_Replan as MPWrapper_TableTennis_Replan
|
||||
from .mujoco.table_tennis.mp_wrapper import TTVelObs_MPWrapper as MPWrapper_TableTennis_VelObs
|
||||
from .mujoco.table_tennis.mp_wrapper import TTVelObs_MPWrapper_Replan as MPWrapper_TableTennis_VelObs_Replan
|
||||
from .mujoco.air_hockey.air_hockey_env_wrapper import MAX_EPISODE_STEPS_AIRHOCKEY
|
||||
|
||||
# Classic Control
|
||||
# Simple Reacher
|
||||
@ -294,5 +293,5 @@ register(
|
||||
register(
|
||||
id='fancy/AirHockey-v0',
|
||||
entry_point='fancy_gym.envs.mujoco:AirHockeyEnv',
|
||||
max_episode_steps=MAX_EPISODE_STEPS_AIRHOCKEY
|
||||
)
|
||||
max_episode_steps=45000
|
||||
)
|
@ -9,4 +9,9 @@ from .reacher.reacher import ReacherEnv
|
||||
from .walker_2d_jump.walker_2d_jump import Walker2dJumpEnv
|
||||
from .box_pushing.box_pushing_env import BoxPushingDense, BoxPushingTemporalSparse, BoxPushingTemporalSpatialSparse
|
||||
from .table_tennis.table_tennis_env import TableTennisEnv, TableTennisWind, TableTennisGoalSwitching
|
||||
from .air_hockey.air_hockey_env_wrapper import AirHockeyEnv
|
||||
|
||||
from .air_hockey.air_hockey_env_wrapper import AirHockeyEnv
|
||||
try:
|
||||
from .air_hockey.air_hockey_env_wrapper import AirHockeyEnv
|
||||
except:
|
||||
print("[FANCY GYM] Air Hockey not available (depends on mushroom-rl, dmc, mujoco)")
|
@ -129,8 +129,8 @@ class AirHockeyDouble(AirHockeyBase):
|
||||
|
||||
self.q_pos_prev[i] = self.init_state[i]
|
||||
self.q_pos_prev[i + 7] = self.init_state[i]
|
||||
self.q_vel_prev[i] = self._data.joint("iiwa_1/joint_" + str(i + 1)).qvel
|
||||
self.q_vel_prev[i + 7] = self._data.joint("iiwa_2/joint_" + str(i + 1)).qvel
|
||||
self.q_vel_prev[i] = self._data.joint("iiwa_1/joint_" + str(i + 1)).qvel[0]
|
||||
self.q_vel_prev[i + 7] = self._data.joint("iiwa_2/joint_" + str(i + 1)).qvel[0]
|
||||
|
||||
self.universal_joint_plugin.reset()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user