MCPcopy Create free account
hub / github.com/MarkFzp/act-plus-plus / dynamixel_cleanup_handler

Function dynamixel_cleanup_handler

dynamixel_client.py:33–40  ·  view source on GitHub ↗

Cleanup function to ensure Dynamixels are disconnected properly.

()

Source from the content-addressed store, hash-verified

31
32
33def dynamixel_cleanup_handler():
34 """Cleanup function to ensure Dynamixels are disconnected properly."""
35 open_clients = list(DynamixelClient.OPEN_CLIENTS)
36 for open_client in open_clients:
37 if open_client.port_handler.is_using:
38 logging.warning('Forcing client to close.')
39 open_client.port_handler.is_using = False
40 open_client.disconnect()
41
42
43def signed_to_unsigned(value: int, size: int) -> int:

Callers

nothing calls this directly

Calls 1

disconnectMethod · 0.80

Tested by

no test coverage detected