mirror of
https://github.com/apirrone/Open_Duck_Mini_Runtime.git
synced 2025-09-02 19:23:54 +00:00
aze
This commit is contained in:
parent
9ff8fd3834
commit
1e8e063eff
1 changed files with 6 additions and 6 deletions
|
@ -274,12 +274,12 @@ class RLWalk:
|
|||
if obs is None:
|
||||
continue
|
||||
|
||||
if np.linalg.norm(self.last_commands[:3]) > 0.1:
|
||||
self.imitation_i += 1 * (
|
||||
self.phase_frequency_factor + self.phase_frequency_factor_offset
|
||||
)
|
||||
else:
|
||||
self.imitation_i = 0
|
||||
# if np.linalg.norm(self.last_commands[:3]) > 0.1:
|
||||
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