Пример #1
0
    def scan(self, scanner_id: str) -> str:
        """
        Gets scan.
        :param scanner_id:
        :return:
        """

        return rest.get_primitive(f"{URL}/scanners/{scanner_id}/scan", str)
Пример #2
0
def active(url: str) -> Optional[str]:
    return rest.get_primitive(f"{url}/systems/active", str)
Пример #3
0
 def is_item_attached(self, robot_id: str, suction_id: str) -> bool:
     return rest.get_primitive(
         f"{URL}/robots/{robot_id}/suctions/{suction_id}/attached", bool)
Пример #4
0
 def is_item_gripped(self, robot_id: str, gripper_id: str) -> bool:
     return rest.get_primitive(
         f"{URL}/robots/{robot_id}/grippers/{gripper_id}/gripped", bool)
Пример #5
0
    def get_gripper_opening(self, robot_id: str, gripper_id: str) -> float:

        return rest.get_primitive(
            f"{URL}/robots/{robot_id}/grippers/{gripper_id}/opening", float)
Пример #6
0
 def get_output(self, robot_id: str, output_id: str) -> float:
     return rest.get_primitive(
         f"{URL}/robots/{robot_id}/outputs/{output_id}", float)
Пример #7
0
 def get_input(self, robot_id: str, input_id: str) -> float:
     super(RestRobotService, self).get_input(robot_id, input_id)
     return rest.get_primitive(f"{URL}/robots/{robot_id}/inputs/{input_id}",
                               float)