ReachySDK

class reachy_sdk.ReachySDK(host, with_mobile_base=False, sdk_port=50055, camera_port=50057, restart_port=50059)

The ReachySDK class handles the connection with your robot.

It holds:

  • all joints (can be accessed directly via their name or via the joints list).

  • all force sensors (can be accessed directly via their name or via the force_sensors list).

  • all fans (can be accessed directly via their name or via the fans list).

The synchronisation with the robot is automatically launched at instanciation and is handled in background automatically.

Parameters:
  • host (str) –

  • with_mobile_base (bool) –

  • sdk_port (int) –

  • camera_port (int) –

  • restart_port (int) –

turn_off(part)

Turn the joints of the given Reachy’s part compliant.

The requested part can be ‘l_arm’, ‘r_arm’, ‘head’ or ‘reachy’. Having part = ‘reachy’ corresponds to turning all avaible joints compliant.

turn_off_smoothly(part, duration=2.0)

Turn smoothly the joints of the given Reachy’s part compliant.

Used to prevent parts from falling too hardwhen turned compliant.

The requested part can be ‘l_arm’, ‘r_arm’, ‘head’ or ‘reachy’. Having part = ‘reachy’ corresponds to turning all avaible joints compliant.

Parameters:

duration (float) –

turn_on(part)

Turn the joints of the given Reachy’s part stiff.

The requested part can be ‘l_arm’, ‘r_arm’, ‘head’ or ‘reachy’. Having part = ‘reachy’ corresponds to turning all avaible joints stiff.