def _sit(self):
     self._start_robot_command('sit', RobotCommandBuilder.sit_command())
Beispiel #2
0
def test_sit_command():
    command = RobotCommandBuilder.sit_command()
    _test_has_mobility(command)
    assert command.mobility_command.HasField("sit_request")
Beispiel #3
0
 def sit(self):
     """Stop the robot's motion and sit down if able."""
     response = self._robot_command(RobotCommandBuilder.sit_command())
     self._last_sit_command = response[2]
     return response[0], response[1]
Beispiel #4
0
def build_sit_command(deprecated):
    if (deprecated):
        cmd = RobotCommandBuilder.sit_command()
    else:
        cmd = RobotCommandBuilder.synchro_sit_command()
    return cmd