ochra.discovery.spaces
lab
- class ochra.discovery.spaces.lab.Lab(hostname, experiment_id=None)
Bases:
LabConnects to the lab and provides access to the stations and robots.
- Parameters:
hostname (str) – Ip address and port of the lab server.
experiment_id (str, optional) – ID of the experiment. Defaults to None.
- get_robot(robot_name)
get a robot object by name.
- Parameters:
robot_name (str) – Name of the robot to get.
- Returns:
The robot object.
- Return type:
Type[Robot]
- get_robots()
get a list of all the connected robots.
- Returns:
list of robot objects.
- Return type:
List[Type[Robot]]
- get_station(station_name)
Get a station object by name.
- Parameters:
station_name (str) – Name of the station to get.
- Returns:
The station object.
- Return type: