def yaml_loader_com_robotraconteur_geometry_NamedPose2D(RRN,data): output=RRN.NewStructure("com.robotraconteur.geometry.NamedPose2D") if(data.get('parent_frame')!=None): output.parent_frame = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['parent_frame']) if(data.get('frame')!=None): output.frame = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['frame']) if(data.get('pose')!=None): output.pose = yaml_loader_com_robotraconteur_geometry_Pose2D(RRN,data['pose']) return output
def yaml_loader_com_robotraconteur_geometry_NamedTransform(RRN,data): output=RRN.NewStructure("com.robotraconteur.geometry.NamedTransform") if(data.get('parent_frame')!=None): output.parent_frame = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['parent_frame']) if(data.get('child_frame')!=None): output.child_frame = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['child_frame']) if(data.get('transform')!=None): output.transform = yaml_loader_com_robotraconteur_geometry_Transform(RRN,data['transform']) return output
def yaml_loader_com_robotraconteur_device_DeviceInfo(RRN, data): output = RRN.NewStructure("com.robotraconteur.device.DeviceInfo") if (data.get('device') != None): output.device = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier( RRN, data['device']) if (data.get('parent_device') != None): output.parent_device = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier( RRN, data['parent_device']) if (data.get('manufacturer') != None): output.manufacturer = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier( RRN, data['manufacturer']) if (data.get('model') != None): output.model = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier( RRN, data['model']) if (data.get('options') != None): mylist = [] for i in range(len(data['options'])): mylist.append( yaml_loader_com_robotraconteur_device_DeviceOption( RRN, data['options'][i])) output.options = mylist if (data.get('capabilities') != None): mylist = [] for i in range(len(data['capabilities'])): mylist.append( yaml_loader_com_robotraconteur_device_DeviceCapability( RRN, data['capabilities'][i])) output.capabilities = mylist if (data.get('serial_number') != None): output.serial_number = data['serial_number'] else: print("No value found for serial_number\n") if (data.get('device_classes') != None): mylist = [] for i in range(len(data['device_classes'])): mylist.append( yaml_loader_com_robotraconteur_device_DeviceClass( RRN, data['device_classes'][i])) output.device_classes = mylist if (data.get('user_description') != None): output.user_description = data['user_description'] else: print("No value found for user_description\n") if (data.get('description_resource') != None): output.description_resource = YAMLconverter__com_robotraconteur_resource.yaml_loader_com_robotraconteur_resource_ResourceIdentifier( RRN, data['description_resource']) if (data.get('implemented_types') != None): mylist = [] for i in range(len(data['implemented_types'])): mylist.append(data['implemented_types'][i]) output.implemented_types = mylist if (data.get('device_origin_pose') != None): output.device_origin_pose = YAMLconverter__com_robotraconteur_geometry.yaml_loader_com_robotraconteur_geometry_NamedPose( RRN, data['device_origin_pose']) return output
def yaml_loader_com_robotraconteur_geometry_NamedSpatialAcceleration(RRN,data): output=RRN.NewStructure("com.robotraconteur.geometry.NamedSpatialAcceleration") if(data.get('frame')!=None): output.frame = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['frame']) if(data.get('Acceleration')!=None): output.Acceleration = yaml_loader_com_robotraconteur_geometry_SpatialAcceleration(RRN,data['Acceleration']) return output
def yaml_loader_com_robotraconteur_geometry_NamedWrench(RRN,data): output=RRN.NewStructure("com.robotraconteur.geometry.NamedWrench") if(data.get('frame')!=None): output.frame = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['frame']) if(data.get('wrench')!=None): output.wrench = yaml_loader_com_robotraconteur_geometry_Wrench(RRN,data['wrench']) return output
def yaml_loader_com_robotraconteur_geometry_NamedSpatialInertia(RRN,data): output=RRN.NewStructure("com.robotraconteur.geometry.NamedSpatialInertia") if(data.get('frame')!=None): output.frame = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['frame']) if(data.get('inertia')!=None): output.inertia = yaml_loader_com_robotraconteur_geometry_SpatialInertia(RRN,data['inertia']) return output
def yaml_loader_com_robotraconteur_signal_SignalGroupInfo(RRN,data): output=RRN.NewStructure("com.robotraconteur.signal.SignalGroupInfo") if(data.get('signal_group_identifier')!=None): output.signal_group_identifier = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['signal_group_identifier']) if(data.get('description')!=None): output.description=data['description'] else: print("No value found for description\n") return output
def yaml_loader_com_robotraconteur_eventlog_EventLogType(RRN,data): output=RRN.NewStructure("com.robotraconteur.eventlog.EventLogType") if(data.get('event_category')!=None): output.event_category = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['event_category']) if(data.get('event_type')!=None): output.event_type=data['event_type'] else: print("No value found for event_type\n") return output
def yaml_loader_com_robotraconteur_geometryi_NamedSpatialVelocity(RRN, data): output = RRN.NewStructure( "com.robotraconteur.geometryi.NamedSpatialVelocity") if (data.get('frame') != None): output.frame = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier( RRN, data['frame']) if (data.get('velocity') != None): output.velocity = yaml_loader_com_robotraconteur_geometryi_SpatialVelocity( RRN, data['velocity']) return output
def yaml_loader_com_robotraconteur_resource_ResourceIdentifier(RRN, data): output = RRN.NewStructure("com.robotraconteur.resource.ResourceIdentifier") if (data.get('bucket') != None): output.bucket = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier( RRN, data['bucket']) if (data.get('key') != None): output.key = data['key'] else: print("No value found for key\n") return output
def yaml_loader_com_robotraconteur_robotics_planning_PlanningRequest(RRN,data): output=RRN.NewStructure("com.robotraconteur.robotics.planning.PlanningRequest") if(data.get('device')!=None): output.device = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['device']) if(data.get('planner_algorithm')!=None): output.planner_algorithm = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['planner_algorithm']) if(data.get('filter_algorithm')!=None): output.filter_algorithm = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['filter_algorithm']) if(data.get('workspace_bounds')!=None): output.workspace_bounds = YAMLconverter__com_robotraconteur_geometry.yaml_loader_com_robotraconteur_geometry_Box(RRN,data['workspace_bounds']) if(data.get('collision_check')!=None): output.collision_check=data['collision_check'] else: print("No value found for collision_check\n") if(data.get('collision_safety_margin')!=None): output.collision_safety_margin=data['collision_safety_margin'] else: print("No value found for collision_safety_margin\n") return output
def yaml_loader_com_robotraconteur_device_DeviceClass(RRN, data): output = RRN.NewStructure("com.robotraconteur.device.DeviceClass") if (data.get('class_identifier') != None): output.class_identifier = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier( RRN, data['class_identifier']) if (data.get('subclasses') != None): mylist = [] for i in range(len(data['subclasses'])): mylist.append(data['subclasses'][i]) output.subclasses = mylist return output
def yaml_loader_com_robotraconteur_device_DeviceOption(RRN, data): output = RRN.NewStructure("com.robotraconteur.device.DeviceOption") if (data.get('option_identifier') != None): output.option_identifier = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier( RRN, data['option_identifier']) if (data.get('suboptions') != None): mylist = [] for i in range(len(data['suboptions'])): mylist.append( yaml_loader_com_robotraconteur_device_DeviceSubOption( RRN, data['suboptions'][i])) output.suboptions = mylist return output
def yaml_loader_com_robotraconteur_eventlog_EventLogInfo(RRN,data): output=RRN.NewStructure("com.robotraconteur.eventlog.EventLogInfo") if(data.get('logged_device')!=None): output.logged_device = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['logged_device']) if(data.get('min_message_number')!=None): output.min_message_number=data['min_message_number'] else: print("No value found for min_message_number\n") if(data.get('max_message_number')!=None): output.max_message_number=data['max_message_number'] else: print("No value found for max_message_number\n") return output
def yaml_loader_com_robotraconteur_robotics_joints_JointInfo(RRN,data): output=RRN.NewStructure("com.robotraconteur.robotics.joints.JointInfo") if(data.get('joint_identifier')!=None): output.joint_identifier = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['joint_identifier']) if(data.get('joint_type')!=None): output.joint_type=python_enums.string_to_enum_JointType if(data.get('joint_limits')!=None): output.joint_limits = yaml_loader_com_robotraconteur_robotics_joints_JointLimits(RRN,data['joint_limits']) if(data.get('default_units')!=None): output.default_units=python_enums.string_to_enum_JointPositionUnits if(data.get('default_effort_units')!=None): output.default_effort_units=python_enums.string_to_enum_JointEffortUnits if(data.get('passive')!=None): output.passive=data['passive'] else: print("No value found for passive\n") return output
def yaml_loader_com_robotraconteur_resource_BucketInfo(RRN, data): output = RRN.NewStructure("com.robotraconteur.resource.BucketInfo") if (data.get('identifier') != None): output.identifier = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier( RRN, data['identifier']) if (data.get('keys') != None): mylist = [] for i in range(len(data['keys'])): mylist.append(data['keys'][i]) output.keys = mylist if (data.get('description') != None): output.description = data['description'] else: print("No value found for description\n") return output
def yaml_loader_com_robotraconteur_param_ParameterInfo(RRN, data): output = RRN.NewStructure("com.robotraconteur.param.ParameterInfo") if (data.get('parameter_identifier') != None): output.parameter_identifier = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier( RRN, data['parameter_identifier']) if (data.get('parameter_class') != None): output.parameter_class = YAMLconverter__com_robotraconteur_device.yaml_loader_com_robotraconteur_device_DeviceClass( RRN, data['parameter_class']) if (data.get('data_type') != None): output.data_type = YAMLconverter__com_robotraconteur_datatype.yaml_loader_com_robotraconteur_datatype_DataType( RRN, data['data_type']) if (data.get('user_description') != None): output.user_description = data['user_description'] else: print("No value found for user_description\n") return output
def yaml_loader_com_robotraconteur_eventlog_EventLogMessageHeader(RRN,data): output=RRN.NewStructure("com.robotraconteur.eventlog.EventLogMessageHeader") if(data.get('type')!=None): output.type = yaml_loader_com_robotraconteur_eventlog_EventLogType(RRN,data['type']) if(data.get('level')!=None): output.level=python_enums.string_to_enum_EventLogLevel if(data.get('source_device')!=None): output.source_device = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['source_device']) if(data.get('source_component')!=None): output.source_component=data['source_component'] else: print("No value found for source_component\n") if(data.get('source_object')!=None): output.source_object=data['source_object'] else: print("No value found for source_object\n") if(data.get('message_number')!=None): output.message_number=data['message_number'] else: print("No value found for message_number\n") return output
def yaml_loader_com_robotraconteur_robotics_trajectory_AdvancedJointTrajectoryDevice(RRN,data): output=RRN.NewStructure("com.robotraconteur.robotics.trajectory.AdvancedJointTrajectoryDevice") if(data.get('device')!=None): output.device = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['device']) if(data.get('joint_names')!=None): mylist=[] for i in range(len(data['joint_names'])): mylist.append(data['joint_names'][i]) output.joint_names=mylist if(data.get('joint_units')!=None): mylist=[] for i in range(len(data['joint_units'])): mylist.append(YAMLconverter__com_robotraconteur_robotics_joints.yaml_loader_com_robotraconteur_robotics_joints_JointPositionUnits(RRN,data['joint_units'][i])) output.joint_units=mylist if(data.get('joint_effort_units')!=None): mylist=[] for i in range(len(data['joint_effort_units'])): mylist.append(YAMLconverter__com_robotraconteur_robotics_joints.yaml_loader_com_robotraconteur_robotics_joints_JointEffortUnits(RRN,data['joint_effort_units'][i])) output.joint_effort_units=mylist if(data.get('interpolation_mode')!=None): output.interpolation_mode=python_enums.string_to_enum_InterpolationMode return output
def yaml_loader_com_robotraconteur_imaging_camerainfo_CameraCalibration( RRN, data): output = RRN.NewStructure( "com.robotraconteur.imaging.camerainfo.CameraCalibration") if (data.get('image_size') != None): output.image_size = YAMLconverter__com_robotraconteur_geometryi.yaml_loader_com_robotraconteur_geometryi_Size2D( RRN, data['image_size']) if (data.get('K') != None): array = numpy.zeros(len(data['K']), dtype=numpy.double) for i in range(len(data['K'])): array[i] = data['K'][i] array = array.reshape(3, 3) output.K = array else: print("No value found for K\n") if (data.get('parent_device') != None): output.parent_device = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier( RRN, data['parent_device']) if (data.get('camera_pose') != None): output.camera_pose = YAMLconverter__com_robotraconteur_geometry.yaml_loader_com_robotraconteur_geometry_NamedPose( RRN, data['camera_pose']) return output
def yaml_loader_com_robotraconteur_signal_SignalInfo(RRN,data): output=RRN.NewStructure("com.robotraconteur.signal.SignalInfo") if(data.get('signal_identifier')!=None): output.signal_identifier = YAMLconverter__com_robotraconteur_identifier.yaml_loader_com_robotraconteur_identifier_Identifier(RRN,data['signal_identifier']) if(data.get('signal_class')!=None): output.signal_class = YAMLconverter__com_robotraconteur_device.yaml_loader_com_robotraconteur_device_DeviceClass(RRN,data['signal_class']) if(data.get('units')!=None): mylist=[] for i in range(len(data['units'])): mylist.append(YAMLconverter__com_robotraconteur_units.yaml_loader_com_robotraconteur_units_SIUnit(RRN,data['units'][i])) output.units=mylist if(data.get('data_type')!=None): output.data_type = YAMLconverter__com_robotraconteur_datatype.yaml_loader_com_robotraconteur_datatype_DataType(RRN,data['data_type']) if(data.get('signal_type')!=None): output.signal_type=python_enums.string_to_enum_SignalType if(data.get('access_level')!=None): output.access_level=python_enums.string_to_enum_SignalAccessLevel if(data.get('address')!=None): output.address=numpy.zeros(len(data['address']),dtype=numpy.uint32) for i in range(len(data['address'])): output.address[i]=data['address'][i] if(data.get('user_description')!=None): output.user_description=data['user_description'] else: print("No value found for user_description\n") return output