mirror of
https://github.com/apirrone/Open_Duck_Mini_Runtime.git
synced 2025-09-03 11:43:58 +00:00
action scale 0.25
This commit is contained in:
parent
b79c2ec6d3
commit
c0a466ceb7
1 changed files with 6 additions and 3 deletions
|
@ -261,9 +261,12 @@ class RLWalk:
|
|||
if obs is None:
|
||||
continue
|
||||
|
||||
self.imitation_i += 1 * (
|
||||
self.phase_frequency_factor + self.phase_frequency_factor_offset
|
||||
)
|
||||
if np.linalg.norm(self.commands[3:]) > 0.01:
|
||||
self.imitation_i += 1 * (
|
||||
self.phase_frequency_factor + self.phase_frequency_factor_offset
|
||||
)
|
||||
else:
|
||||
self.imitation_i = 0
|
||||
self.imitation_i = self.imitation_i % self.PRM.nb_steps_in_period
|
||||
self.imitation_phase = np.array(
|
||||
[
|
||||
|
|
Loading…
Reference in a new issue