fix minor bugs
This commit is contained in:
parent
2735e0bf24
commit
28aa430fd2
@ -194,7 +194,7 @@ class BlackBoxWrapper(gym.ObservationWrapper):
|
|||||||
if done or self.replanning_schedule(current_pos, current_vel, obs, c_action,
|
if done or self.replanning_schedule(current_pos, current_vel, obs, c_action,
|
||||||
t + 1 + self.current_traj_steps):
|
t + 1 + self.current_traj_steps):
|
||||||
|
|
||||||
if self.max_planning_times is not None and self.plan_steps >= self.max_planning_times:
|
if not done and self.max_planning_times is not None and self.plan_steps >= self.max_planning_times:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
self.condition_pos = pos if self.condition_on_desired else None
|
self.condition_pos = pos if self.condition_on_desired else None
|
||||||
|
@ -162,11 +162,11 @@ if __name__ == '__main__':
|
|||||||
# ProMP
|
# ProMP
|
||||||
# example_mp("HoleReacherProMP-v0", seed=10, iterations=5, render=render)
|
# example_mp("HoleReacherProMP-v0", seed=10, iterations=5, render=render)
|
||||||
# example_mp("BoxPushingTemporalSparseProMP-v0", seed=10, iterations=1, render=render)
|
# example_mp("BoxPushingTemporalSparseProMP-v0", seed=10, iterations=1, render=render)
|
||||||
example_mp("TableTennis4DProMP-v0", seed=10, iterations=20, render=render)
|
# example_mp("TableTennis4DProMP-v0", seed=10, iterations=20, render=render)
|
||||||
|
|
||||||
# ProDMP
|
# ProDMP
|
||||||
# example_mp("BoxPushingDenseReplanProDMP-v0", seed=10, iterations=4, render=render)
|
# example_mp("BoxPushingDenseReplanProDMP-v0", seed=10, iterations=4, render=render)
|
||||||
|
example_mp("TableTennis4DProDMP-v0", seed=10, iterations=20, render=render)
|
||||||
# Altered basis functions
|
# Altered basis functions
|
||||||
# obs1 = example_custom_mp("Reacher5dProMP-v0", seed=10, iterations=1, render=render)
|
# obs1 = example_custom_mp("Reacher5dProMP-v0", seed=10, iterations=1, render=render)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user