Hold zero torque until the start signal is received.
(self)
| 124 | logger.info("Successfully connected to the robot.") |
| 125 | |
| 126 | def zero_torque_state(self): |
| 127 | """Hold zero torque until the start signal is received.""" |
| 128 | logger.info("Enter zero torque state.") |
| 129 | logger.info("Waiting for the start signal...") |
| 130 | while self.remote_controller.button[KeyMap.start] != 1: |
| 131 | create_zero_cmd(self.low_cmd) |
| 132 | self.send_cmd(self.low_cmd) |
| 133 | time.sleep(self.config.control_dt) |
| 134 | |
| 135 | def move_to_default_pos(self): |
| 136 | """Move the robot to its default posture smoothly.""" |
no test coverage detected