mirror of
https://github.com/apirrone/Open_Duck_Mini_Runtime.git
synced 2025-09-02 19:23:54 +00:00
raw imu
This commit is contained in:
parent
7725fd45d0
commit
60acfc0d18
1 changed files with 6 additions and 6 deletions
|
@ -266,12 +266,12 @@ class RLWalk:
|
||||||
if obs is None:
|
if obs is None:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# if np.linalg.norm(self.last_commands[:3]) > 0.1:
|
if np.linalg.norm(self.last_commands[:3]) > 0.1:
|
||||||
self.imitation_i += 1 * (
|
self.imitation_i += 1 * (
|
||||||
self.phase_frequency_factor + self.phase_frequency_factor_offset
|
self.phase_frequency_factor + self.phase_frequency_factor_offset
|
||||||
)
|
)
|
||||||
# else:
|
else:
|
||||||
# self.imitation_i = 0
|
self.imitation_i = 0
|
||||||
self.imitation_i = self.imitation_i % self.PRM.nb_steps_in_period
|
self.imitation_i = self.imitation_i % self.PRM.nb_steps_in_period
|
||||||
self.imitation_phase = np.array(
|
self.imitation_phase = np.array(
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue