| 163 | | self._addButton(command=GaitSequencer().walkStop, key="button_000") |
| 164 | | self._addButton(command=GaitSequencer().walkStep, key="button_003") |
| 165 | | |
| 166 | | self._addButton(command=GaitSequencer().selectPrevGait, key="button_009", trigger="hold") |
| 167 | | self._addButton(command=GaitSequencer().selectNextGait, key="button_008", trigger="hold") |
| 168 | | |
| 169 | | self._addJoystick(command=GaitSequencer().walk, keys=("analog_02", "analog_03", "analog_00"), mapper=MapperWalk()) |
| 170 | | |
| 171 | | self._addButton(command=self.robot.incBodyPosition, key="button_004", mapper=MapperSetValue(dz=+5)) |
| 172 | | self._addButton(command=self.robot.incBodyPosition, key="button_005", mapper=MapperSetValue(dz=-5)) |
| 173 | | |
| 174 | | self._addAnalog(command=self.robot.setBodyExtraPosition, key="analog_01", modifier="button_006", mapper=MapperSet('z')) |
| | 163 | self._addComponent(Button, command=GaitSequencer().walkStop, key="button_000") |
| | 164 | self._addComponent(Button, command=GaitSequencer().walkStep, key="button_003") |
| | 165 | |
| | 166 | self._addComponent(Button, command=GaitSequencer().selectPrevGait, key="button_009", trigger="hold") |
| | 167 | self._addComponent(Button, command=GaitSequencer().selectNextGait, key="button_008", trigger="hold") |
| | 168 | |
| | 169 | self._addComponent(Joystick, command=GaitSequencer().walk, keys=("analog_02", "analog_03", "analog_00"), mapper=MapperWalk()) |
| | 170 | |
| | 171 | self._addComponent(Button, command=self.robot.incBodyPosition, key="button_004", mapper=MapperSetValue(dz=+5)) |
| | 172 | self._addComponent(Button, command=self.robot.incBodyPosition, key="button_005", mapper=MapperSetValue(dz=-5)) |
| | 173 | |
| | 174 | self._addComponent(Analog, command=self.robot.setBodyExtraPosition, key="analog_01", modifier="button_006", mapper=MapperSet('z')) |