def drive(self, left_dist, right_dist, speed, block = True): robot_status.is_driving() slam_controller.wheels_started(self.get_distance()) control.send_command("SetMotor %d %d %d" % (left_dist, right_dist, speed)) if block: self.__wait_for_stop()
def drive(self, left_dist, right_dist, speed, block=True): robot_status.is_driving() slam_controller.wheels_started(self.get_distance()) control.send_command("SetMotor %d %d %d" % (left_dist, right_dist, speed)) if block: self.__wait_for_stop()
def disable(self): if self.enabled: control.send_command("SetMotor LWheelDisable RWheelDisable") self.enabled = False robot_status.is_not_driving()
def enable(self): if not self.enabled: control.send_command("SetMotor LWheelEnable RWheelEnable") self.enabled = True
def stop(self): control.send_command("SetMotor -1 -1 300") robot_status.is_not_driving() slam_controller.wheels_stopped(self.get_distance())
def __del__(self): control.send_command("SetLDSRotation off")
def __init__(self): self.ready = False control.send_command("SetLDSRotation on")
def __del__(self): control.send_command("SetLDSRotation off")
def __init__(self): self.ready = False control.send_command("SetLDSRotation on")
def disable(self): if self.enabled: control.send_command("SetMotor LWheelDisable RWheelDisable") self.enabled = False robot_status.is_not_driving()
def enable(self): if not self.enabled: control.send_command("SetMotor LWheelEnable RWheelEnable") self.enabled = True
def stop(self): control.send_command("SetMotor -1 -1 300") robot_status.is_not_driving() slam_controller.wheels_stopped(self.get_distance())
def hibernate(): serial_api.send_command("SetSystemMode Hibernate")
def shutdown(): serial_api.send_command("SetSystemMode Shutdown")