예제 #1
0
 def _signal_reset(self):
     """Reset the environment."""
     self._tv = 0.0
     self._rv = 0.0
     robot.setSpeed(self._tv, self._rv, self._dt, False)
     robot.stage_setpose(*self._start_pose)
     robot.wait(0.5)
예제 #2
0
 def _action_turn1(self):
     self._rv += 0.1
     self._saturate_velocities()
     return robot.setSpeed(self._tv, self._rv, self._dt, False)
예제 #3
0
 def _actoin_noop(self):
     return robot.setSpeed(self._tv, self._rv, self._dt, False)
예제 #4
0
 def _action_reduce_angle_speed(self):
     self._rv /= 2.0
     return robot.setSpeed(self._tv, self._rv, self._dt, False)