remote
Physical modular robot remote control.
Package Contents
Functions
|
Control a robot remotely, running the controller on your local machine. |
|
Remotely connect to a physical robot and provide manual controls to test it. |
- run_remote(config: modular_robot_physical._config.Config, hostname: str, on_prepared: Callable[[], None] = lambda : ..., port: int = STANDARD_PORT, debug: bool = False, manual_mode: bool = False, display_camera_view: bool = False) None
Control a robot remotely, running the controller on your local machine.
- Parameters:
config – The robot configuration.
hostname – Hostname or IP of the robot.
on_prepared – Callback for when everything is prepared, ready to run the actual controller. You can use this for timing when the actual controller starts.
port – Port the robot daemon uses.
debug – Enable debug messages.
manual_mode – Enable manual controls for the robot, ignoring the brain.
display_camera_view – Display the camera view of the robot.
- test_physical_robot(robot: revolve2.modular_robot.ModularRobot | revolve2.modular_robot.body.base.Body, hostname: str, hinge_mapping: dict[modular_robot_physical._uuid_key.UUIDKey[revolve2.modular_robot.body.base.ActiveHinge], int], inverse_servos: dict[int, bool]) None
Remotely connect to a physical robot and provide manual controls to test it.
- Parameters:
robot – Body of the robot.
hostname – Hostname of the robot.
hinge_mapping – map each active hinge object to a specific Servo with its ID (int).
inverse_servos – If a servo is mounted in the wrong direction on the body one can fix it by inversing the action. inverse_servos allows you to inverse specific servos with their gpio number as key.