Example #1
0
    def get_dialog(self) -> DialogValue:
        """
        Gets names of all tracked values stored in given group.
        :return:
        """

        return rest.get(f"{URL}/dialog", DialogValue)
Example #2
0
 def get_dialog(self) -> DialogValue:
     """
     Gets names of all tracked values stored in given group.
     :return:
     """
     try:
         return rest.get(f"{URL}/dialog", DialogValue)
     except rest.RestException:
         return None
Example #3
0
def get_service_type_ids() -> IdDescList:
    return rest.get(f"{URL}/service_types", IdDescList)
Example #4
0
def get_object_type_ids() -> IdDescList:
    return rest.get(f"{URL}/object_types", IdDescList)
Example #5
0
def get_service_type(service_type_id: str) -> ServiceType:
    return rest.get(f"{URL}/service_type/{service_type_id}", ServiceType)
Example #6
0
def get_object_type(object_type_id: str) -> ObjectType:
    return rest.get(f"{URL}/object_types/{object_type_id}", ObjectType)
Example #7
0
def get_scene(scene_id: str) -> Scene:
    return rest.get(f"{URL}/scene/{scene_id}", Scene)
Example #8
0
 def search(self) -> SearchOutput:
     """
     Searches items based on search engine configuration and images stored in internal cache.
     :return:
     """
     return rest.get(f"{URL}/search", SearchOutput)
Example #9
0
def get_project(project_id: str) -> Project:
    return rest.get(f"{URL}/project/{project_id}", Project)
Example #10
0
def get_scenes() -> IdDescList:
    return rest.get(f"{URL}/scenes", IdDescList)
Example #11
0
def get_projects() -> IdDescList:
    return rest.get(f"{URL}/projects", IdDescList)
Example #12
0
def get_model(model_id: str, model_type: Model3dType) -> Models:
    return rest.get(f"{URL}/models/{model_id}/{model_type.value.lower()}",
                    MODEL_MAPPING[model_type])
Example #13
0
def get_mesh(mesh_id) -> Mesh:
    return rest.get(f"{URL}/models/{mesh_id}/mesh", Mesh)
Example #14
0
 def get_pose(self) -> Pose:
     """
     Gets capture device pose in actual initialized spatial system space.
     :return:
     """
     return rest.get(f"{URL}/capture/pose", Pose)
Example #15
0
 def get_robot_pose(self, robot_id: str) -> Pose:
     return rest.get(f"{URL}/robots/{robot_id}/pose", Pose)
Example #16
0
 def get_end_effector_pose(self, robot_id: str,
                           end_effector_id: str) -> Pose:
     return rest.get(
         f"{URL}/robots/{robot_id}/endeffectors/{end_effector_id}/pose",
         Pose)
Example #17
0
def get_project_sources(project_id: str) -> ProjectSources:
    return rest.get(f"{URL}/project/{project_id}/sources", ProjectSources)