清理多余策略

This commit is contained in:
meiqi
2026-03-30 15:30:30 +08:00
parent 32702e25f3
commit cc1f766009
19 changed files with 3 additions and 929 deletions

View File

@@ -44,7 +44,7 @@ class UDPXboxSender(Node):
f"Forwarding {self.joy_topic} -> udp://{self.target_host}:{self.target_port}"
)
self.get_logger().info(
"Buttons: A=WALKAMP X=ZERO Y=STOP B=MYPOLICY START=reset"
"Buttons: A=WALKAMP X=ZERO Y=STOP START=reset"
)
def destroy_node(self) -> bool:
@@ -167,13 +167,6 @@ class UDPXboxSender(Node):
self._send_event("pose_home", "x")
elif self._rising_edge(state, "a"):
self._send_event("mode_stride", "a")
elif self._rising_edge(state, "b"):
self._send_event("mode_dash", "b")
elif (
self._rising_edge(state, "home")
and state["l_trigger"] < self.trigger_pressed_threshold
):
self._send_event("mode_xrun", "home")
def _send_trim_event(self, state: Dict[str, float]) -> None:
if self._rising_edge(state, "start"):