Skip to content

Commit e5cfe17

Browse files
committed
fix prev commit
1 parent 64f23f2 commit e5cfe17

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

robohive/robot/robot.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,9 @@ def get_sensors(self, noise_scale=None, random_generator=None):
383383
current_sen={}
384384
noise_scale = self._noise_scale if noise_scale is None else noise_scale
385385

386+
# Update time
387+
self.time_wall = time.time()-self.time_start
388+
386389
if self.is_hardware:
387390
# record sensor*device['scale']+device['offset']
388391
current_sen = self.hardware_get_sensors()
@@ -707,9 +710,6 @@ def step(self, ctrl_desired, step_duration, ctrl_normalized=True, realTimeSim=Fa
707710
elif time_left_in_step < 0.0:
708711
prompt("Step duration %0.4fs, Step took %0.4fs, Time left %0.4f"% (step_duration, (time_now-self.time_wall), time_left_in_step), type=Prompt.WARN)
709712

710-
# Update time
711-
self.time_wall = time.time()-self.time_start
712-
713713
if _ROBOT_VIZ:
714714
global timing_SRV_t0
715715
timing_SRV_t = time.time()

0 commit comments

Comments
 (0)