MCPcopy Create free account
hub / github.com/RoboVerseOrg/RoboVerse / zero_torque_state

Method zero_torque_state

scripts/unitree_deploy/deploy_real.py:126–133  ·  view source on GitHub ↗

Hold zero torque until the start signal is received.

(self)

Source from the content-addressed store, hash-verified

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."""

Callers 1

deploy_real.pyFile · 0.80

Calls 2

send_cmdMethod · 0.95
create_zero_cmdFunction · 0.90

Tested by

no test coverage detected