shorter duration
This commit is contained in:
		
							parent
							
								
									be1a9bd67e
								
							
						
					
					
						commit
						a219f90d72
					
				| @ -99,7 +99,8 @@ class BlackBoxWrapper(gym.ObservationWrapper): | |||||||
| 
 | 
 | ||||||
|     def get_trajectory(self, action: np.ndarray) -> Tuple: |     def get_trajectory(self, action: np.ndarray) -> Tuple: | ||||||
|         # duration = self.duration |         # duration = self.duration | ||||||
|         duration = self.duration - self.current_traj_steps * self.dt |         # duration = self.duration - self.current_traj_steps * self.dt | ||||||
|  |         duration = action[0] | ||||||
|         if self.learn_sub_trajectories: |         if self.learn_sub_trajectories: | ||||||
|             duration = None |             duration = None | ||||||
|             # reset  with every new call as we need to set all arguments, such as tau, delay, again. |             # reset  with every new call as we need to set all arguments, such as tau, delay, again. | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user