def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,voltage,current,charge,capacity,design_capacity,percentage,power_supply_status,power_supply_health,power_supply_technology,present,cell_voltage,location,serial_number :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(BatteryState, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.voltage is None: self.voltage = 0. if self.current is None: self.current = 0. if self.charge is None: self.charge = 0. if self.capacity is None: self.capacity = 0. if self.design_capacity is None: self.design_capacity = 0. if self.percentage is None: self.percentage = 0. if self.power_supply_status is None: self.power_supply_status = 0 if self.power_supply_health is None: self.power_supply_health = 0 if self.power_supply_technology is None: self.power_supply_technology = 0 if self.present is None: self.present = False if self.cell_voltage is None: self.cell_voltage = [] if self.location is None: self.location = '' if self.serial_number is None: self.serial_number = '' else: self.header = std_msgs.Header() self.voltage = 0. self.current = 0. self.charge = 0. self.capacity = 0. self.design_capacity = 0. self.percentage = 0. self.power_supply_status = 0 self.power_supply_health = 0 self.power_supply_technology = 0 self.present = False self.cell_voltage = [] self.location = '' self.serial_number = ''
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,relative_humidity,variance :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(RelativeHumidity, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.relative_humidity is None: self.relative_humidity = 0. if self.variance is None: self.variance = 0. else: self.header = std_msgs.Header() self.relative_humidity = 0. self.variance = 0.
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,format,data :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(CompressedImage, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.format is None: self.format = '' if self.data is None: self.data = b'' else: self.header = std_msgs.Header() self.format = '' self.data = b''
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,left_lane,right_lane,additional_lanes :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(LaneModels, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.left_lane is None: self.left_lane = derived_object_msgs.msg.Lane() if self.right_lane is None: self.right_lane = derived_object_msgs.msg.Lane() if self.additional_lanes is None: self.additional_lanes = [] else: self.header = std_msgs.Header() self.left_lane = derived_object_msgs.msg.Lane() self.right_lane = derived_object_msgs.msg.Lane() self.additional_lanes = []
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,name,position,velocity,effort :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(JointState, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.name is None: self.name = [] if self.position is None: self.position = [] if self.velocity is None: self.velocity = [] if self.effort is None: self.effort = [] else: self.header = std_msgs.Header() self.name = [] self.position = [] self.velocity = [] self.effort = []
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,accel,steer,gear,parking_brake :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(ControlCommand, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.accel is None: self.accel = 0. if self.steer is None: self.steer = 0. if self.gear is None: self.gear = 0 if self.parking_brake is None: self.parking_brake = False else: self.header = std_msgs.Header() self.accel = 0. self.steer = 0. self.gear = 0 self.parking_brake = False
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,child_frame_id,transform :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(TransformStamped, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.child_frame_id is None: self.child_frame_id = '' if self.transform is None: self.transform = geometry_msgs.msg.Transform() else: self.header = std_msgs.Header() self.child_frame_id = '' self.transform = geometry_msgs.msg.Transform()
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,status,feedback :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(GetMapActionFeedback, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.status is None: self.status = actionlib_msgs.msg.GoalStatus() if self.feedback is None: self.feedback = nav_msgs.msg.GetMapFeedback() else: self.header = std_msgs.Header() self.status = actionlib_msgs.msg.GoalStatus() self.feedback = nav_msgs.msg.GetMapFeedback()
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,goal_id,goal :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(LookupTransformActionGoal, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.goal_id is None: self.goal_id = actionlib_msgs.msg.GoalID() if self.goal is None: self.goal = tf2_msgs.msg.LookupTransformGoal() else: self.header = std_msgs.Header() self.goal_id = actionlib_msgs.msg.GoalID() self.goal = tf2_msgs.msg.LookupTransformGoal()
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,velocity,acceleration,orientation,control :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(CarlaEgoVehicleStatus, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.velocity is None: self.velocity = 0. if self.acceleration is None: self.acceleration = geometry_msgs.msg.Accel() if self.orientation is None: self.orientation = geometry_msgs.msg.Quaternion() if self.control is None: self.control = carla_msgs.msg.CarlaEgoVehicleControl() else: self.header = std_msgs.Header() self.velocity = 0. self.acceleration = geometry_msgs.msg.Accel() self.orientation = geometry_msgs.msg.Quaternion() self.control = carla_msgs.msg.CarlaEgoVehicleControl()
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,joint_names,transforms,twist,wrench :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(MultiDOFJointState, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.joint_names is None: self.joint_names = [] if self.transforms is None: self.transforms = [] if self.twist is None: self.twist = [] if self.wrench is None: self.wrench = [] else: self.header = std_msgs.Header() self.joint_names = [] self.transforms = [] self.twist = [] self.wrench = []
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,other_actor_id,normal_impulse :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(CarlaCollisionEvent, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.other_actor_id is None: self.other_actor_id = 0 if self.normal_impulse is None: self.normal_impulse = geometry_msgs.msg.Vector3() else: self.header = std_msgs.Header() self.other_actor_id = 0 self.normal_impulse = geometry_msgs.msg.Vector3()
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,ns,id,type,action,position,scale,outline_color,filled,fill_color,lifetime,points,outline_colors :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(ImageMarker, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.ns is None: self.ns = '' if self.id is None: self.id = 0 if self.type is None: self.type = 0 if self.action is None: self.action = 0 if self.position is None: self.position = geometry_msgs.msg.Point() if self.scale is None: self.scale = 0. if self.outline_color is None: self.outline_color = std_msgs.ColorRGBA() if self.filled is None: self.filled = 0 if self.fill_color is None: self.fill_color = std_msgs.ColorRGBA() if self.lifetime is None: self.lifetime = genpy.Duration() if self.points is None: self.points = [] if self.outline_colors is None: self.outline_colors = [] else: self.header = std_msgs.Header() self.ns = '' self.id = 0 self.type = 0 self.action = 0 self.position = geometry_msgs.msg.Point() self.scale = 0. self.outline_color = std_msgs.ColorRGBA() self.filled = 0 self.fill_color = std_msgs.ColorRGBA() self.lifetime = genpy.Duration() self.points = [] self.outline_colors = []
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,id,detection_level,object_classified,pose,twist,accel,polygon,shape,classification,classification_certainty,classification_age :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(ObjectWithCovariance, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.id is None: self.id = 0 if self.detection_level is None: self.detection_level = 0 if self.object_classified is None: self.object_classified = False if self.pose is None: self.pose = geometry_msgs.msg.PoseWithCovariance() if self.twist is None: self.twist = geometry_msgs.msg.TwistWithCovariance() if self.accel is None: self.accel = geometry_msgs.msg.AccelWithCovariance() if self.polygon is None: self.polygon = geometry_msgs.msg.Polygon() if self.shape is None: self.shape = derived_object_msgs.msg.SolidPrimitiveWithCovariance() if self.classification is None: self.classification = 0 if self.classification_certainty is None: self.classification_certainty = 0 if self.classification_age is None: self.classification_age = 0 else: self.header = std_msgs.Header() self.id = 0 self.detection_level = 0 self.object_classified = False self.pose = geometry_msgs.msg.PoseWithCovariance() self.twist = geometry_msgs.msg.TwistWithCovariance() self.accel = geometry_msgs.msg.AccelWithCovariance() self.polygon = geometry_msgs.msg.Polygon() self.shape = derived_object_msgs.msg.SolidPrimitiveWithCovariance() self.classification = 0 self.classification_certainty = 0 self.classification_age = 0
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,height,width,distortion_model,D,K,R,P,binning_x,binning_y,roi :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(CameraInfo, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.height is None: self.height = 0 if self.width is None: self.width = 0 if self.distortion_model is None: self.distortion_model = '' if self.D is None: self.D = [] if self.K is None: self.K = [0.] * 9 if self.R is None: self.R = [0.] * 9 if self.P is None: self.P = [0.] * 12 if self.binning_x is None: self.binning_x = 0 if self.binning_y is None: self.binning_y = 0 if self.roi is None: self.roi = sensor_msgs.msg.RegionOfInterest() else: self.header = std_msgs.Header() self.height = 0 self.width = 0 self.distortion_model = '' self.D = [] self.K = [0.] * 9 self.R = [0.] * 9 self.P = [0.] * 12 self.binning_x = 0 self.binning_y = 0 self.roi = sensor_msgs.msg.RegionOfInterest()
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,angle_min,angle_max,angle_increment,time_increment,scan_time,range_min,range_max,ranges,intensities :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(MultiEchoLaserScan, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.angle_min is None: self.angle_min = 0. if self.angle_max is None: self.angle_max = 0. if self.angle_increment is None: self.angle_increment = 0. if self.time_increment is None: self.time_increment = 0. if self.scan_time is None: self.scan_time = 0. if self.range_min is None: self.range_min = 0. if self.range_max is None: self.range_max = 0. if self.ranges is None: self.ranges = [] if self.intensities is None: self.intensities = [] else: self.header = std_msgs.Header() self.angle_min = 0. self.angle_max = 0. self.angle_increment = 0. self.time_increment = 0. self.scan_time = 0. self.range_min = 0. self.range_max = 0. self.ranges = [] self.intensities = []
def deserialize_numpy(self, str, numpy): """ unpack serialized message in str into this message instance using numpy for array types :param str: byte array of serialized message, ``str`` :param numpy: numpy python module """ try: if self.header is None: self.header = std_msgs.Header() end = 0 _x = self start = end end += 12 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end]) start = end end += 4 (length,) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.header.frame_id = str[start:end].decode('utf-8') else: self.header.frame_id = str[start:end] _x = self start = end end += 5 (_x.comm_error, _x.overheat_error, _x.range_perf_error, _x.internal_error, _x.xcvr_operational,) = _get_struct_5B().unpack(str[start:end]) self.comm_error = bool(self.comm_error) self.overheat_error = bool(self.overheat_error) self.range_perf_error = bool(self.range_perf_error) self.internal_error = bool(self.internal_error) self.xcvr_operational = bool(self.xcvr_operational) return self except struct.error as e: raise genpy.DeserializationError(e) #most likely buffer underfill
def deserialize_numpy(self, str, numpy): """ unpack serialized message in str into this message instance using numpy for array types :param str: byte array of serialized message, ``str`` :param numpy: numpy python module """ try: if self.header is None: self.header = std_msgs.Header() if self.vector is None: self.vector = geometry_msgs.msg.Vector3() end = 0 _x = self start = end end += 12 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end]) start = end end += 4 (length,) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.header.frame_id = str[start:end].decode('utf-8') else: self.header.frame_id = str[start:end] _x = self start = end end += 24 (_x.vector.x, _x.vector.y, _x.vector.z,) = _get_struct_3d().unpack(str[start:end]) return self except struct.error as e: raise genpy.DeserializationError(e) #most likely buffer underfill
def deserialize(self, str): """ unpack serialized message in str into this message instance :param str: byte array of serialized message, ``str`` """ try: if self.header is None: self.header = std_msgs.Header() end = 0 _x = self start = end end += 12 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end]) start = end end += 4 (length,) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.header.frame_id = str[start:end].decode('utf-8') else: self.header.frame_id = str[start:end] start = end end += 4 (length,) = _struct_I.unpack(str[start:end]) pattern = '<%si'%length start = end end += struct.calcsize(pattern) self.cicvsed_lane_markings = struct.unpack(pattern, str[start:end]) return self except struct.error as e: raise genpy.DeserializationError(e) #most likely buffer underfill
def deserialize(self, str): """ unpack serialized message in str into this message instance :param str: byte array of serialized message, ``str`` """ try: if self.header is None: self.header = std_msgs.Header() if self.track is None: self.track = radar_msgs.msg.RadarTrack() end = 0 _x = self start = end end += 12 ( _x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs, ) = _get_struct_3I().unpack(str[start:end]) start = end end += 4 (length, ) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.header.frame_id = str[start:end].decode('utf-8') else: self.header.frame_id = str[start:end] start = end end += 2 (self.track.track_id, ) = _get_struct_H().unpack(str[start:end]) start = end end += 4 (length, ) = _struct_I.unpack(str[start:end]) self.track.track_shape.points = [] for i in range(0, length): val1 = geometry_msgs.msg.Point32() _x = val1 start = end end += 12 ( _x.x, _x.y, _x.z, ) = _get_struct_3f().unpack(str[start:end]) self.track.track_shape.points.append(val1) _x = self start = end end += 48 ( _x.track.linear_velocity.x, _x.track.linear_velocity.y, _x.track.linear_velocity.z, _x.track.linear_acceleration.x, _x.track.linear_acceleration.y, _x.track.linear_acceleration.z, ) = _get_struct_6d().unpack(str[start:end]) return self except struct.error as e: raise genpy.DeserializationError(e) #most likely buffer underfill
def deserialize_numpy(self, str, numpy): """ unpack serialized message in str into this message instance using numpy for array types :param str: byte array of serialized message, ``str`` :param numpy: numpy python module """ try: if self.header is None: self.header = std_msgs.Header() end = 0 _x = self start = end end += 12 ( _x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs, ) = _get_struct_3I().unpack(str[start:end]) start = end end += 4 (length, ) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.header.frame_id = str[start:end].decode('utf-8') else: self.header.frame_id = str[start:end] _x = self start = end end += 28 ( _x.angle_min, _x.angle_max, _x.angle_increment, _x.time_increment, _x.scan_time, _x.range_min, _x.range_max, ) = _get_struct_7f().unpack(str[start:end]) start = end end += 4 (length, ) = _struct_I.unpack(str[start:end]) pattern = '<%sf' % length start = end end += struct.calcsize(pattern) self.ranges = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length) start = end end += 4 (length, ) = _struct_I.unpack(str[start:end]) pattern = '<%sf' % length start = end end += struct.calcsize(pattern) self.intensities = numpy.frombuffer(str[start:end], dtype=numpy.float32, count=length) return self except struct.error as e: raise genpy.DeserializationError(e) #most likely buffer underfill
def deserialize_numpy(self, str, numpy): """ unpack serialized message in str into this message instance using numpy for array types :param str: byte array of serialized message, ``str`` :param numpy: numpy python module """ try: if self.header is None: self.header = std_msgs.Header() if self.poses is None: self.poses = None end = 0 _x = self start = end end += 12 ( _x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs, ) = _get_struct_3I().unpack(str[start:end]) start = end end += 4 (length, ) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.header.frame_id = str[start:end].decode('utf-8') else: self.header.frame_id = str[start:end] start = end end += 4 (length, ) = _struct_I.unpack(str[start:end]) self.poses = [] for i in range(0, length): val1 = geometry_msgs.msg.Pose() _v7 = val1.position _x = _v7 start = end end += 24 ( _x.x, _x.y, _x.z, ) = _get_struct_3d().unpack(str[start:end]) _v8 = val1.orientation _x = _v8 start = end end += 32 ( _x.x, _x.y, _x.z, _x.w, ) = _get_struct_4d().unpack(str[start:end]) self.poses.append(val1) return self except struct.error as e: raise genpy.DeserializationError(e) #most likely buffer underfill
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,client_id,marker_name,control_name,event_type,pose,menu_entry_id,mouse_point,mouse_point_valid :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(InteractiveMarkerFeedback, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.client_id is None: self.client_id = '' if self.marker_name is None: self.marker_name = '' if self.control_name is None: self.control_name = '' if self.event_type is None: self.event_type = 0 if self.pose is None: self.pose = geometry_msgs.msg.Pose() if self.menu_entry_id is None: self.menu_entry_id = 0 if self.mouse_point is None: self.mouse_point = geometry_msgs.msg.Point() if self.mouse_point_valid is None: self.mouse_point_valid = False else: self.header = std_msgs.Header() self.client_id = '' self.marker_name = '' self.control_name = '' self.event_type = 0 self.pose = geometry_msgs.msg.Pose() self.menu_entry_id = 0 self.mouse_point = geometry_msgs.msg.Point() self.mouse_point_valid = False
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,height,width,fields,is_bigendian,point_step,row_step,data,is_dense :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(PointCloud2, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.height is None: self.height = 0 if self.width is None: self.width = 0 if self.fields is None: self.fields = [] if self.is_bigendian is None: self.is_bigendian = False if self.point_step is None: self.point_step = 0 if self.row_step is None: self.row_step = 0 if self.data is None: self.data = b'' if self.is_dense is None: self.is_dense = False else: self.header = std_msgs.Header() self.height = 0 self.width = 0 self.fields = [] self.is_bigendian = False self.point_step = 0 self.row_step = 0 self.data = b'' self.is_dense = False
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,curvature,yaw_rate,vehicle_speed,max_track_targets,raw_data_mode,temperature,patial_blockage,side_lobe_blockage :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(RadarStatus, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.curvature is None: self.curvature = 0 if self.yaw_rate is None: self.yaw_rate = 0. if self.vehicle_speed is None: self.vehicle_speed = 0. if self.max_track_targets is None: self.max_track_targets = 0 if self.raw_data_mode is None: self.raw_data_mode = False if self.temperature is None: self.temperature = 0 if self.patial_blockage is None: self.patial_blockage = False if self.side_lobe_blockage is None: self.side_lobe_blockage = False else: self.header = std_msgs.Header() self.curvature = 0 self.yaw_rate = 0. self.vehicle_speed = 0. self.max_track_targets = 0 self.raw_data_mode = False self.temperature = 0 self.patial_blockage = False self.side_lobe_blockage = False
def deserialize_numpy(self, str, numpy): """ unpack serialized message in str into this message instance using numpy for array types :param str: byte array of serialized message, ``str`` :param numpy: numpy python module """ try: if self.header is None: self.header = std_msgs.Header() if self.status is None: self.status = actionlib_msgs.msg.GoalStatus() if self.feedback is None: self.feedback = tf2_msgs.msg.LookupTransformFeedback() end = 0 _x = self start = end end += 12 (_x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs,) = _get_struct_3I().unpack(str[start:end]) start = end end += 4 (length,) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.header.frame_id = str[start:end].decode('utf-8') else: self.header.frame_id = str[start:end] _x = self start = end end += 8 (_x.status.goal_id.stamp.secs, _x.status.goal_id.stamp.nsecs,) = _get_struct_2I().unpack(str[start:end]) start = end end += 4 (length,) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.status.goal_id.id = str[start:end].decode('utf-8') else: self.status.goal_id.id = str[start:end] start = end end += 1 (self.status.status,) = _get_struct_B().unpack(str[start:end]) start = end end += 4 (length,) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.status.text = str[start:end].decode('utf-8') else: self.status.text = str[start:end] return self except struct.error as e: raise genpy.DeserializationError(e) #most likely buffer underfill
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,throttle,steer,brake,hand_brake,reverse,gear,manual_gear_shift :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(CarlaEgoVehicleControl, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.throttle is None: self.throttle = 0. if self.steer is None: self.steer = 0. if self.brake is None: self.brake = 0. if self.hand_brake is None: self.hand_brake = False if self.reverse is None: self.reverse = False if self.gear is None: self.gear = 0 if self.manual_gear_shift is None: self.manual_gear_shift = False else: self.header = std_msgs.Header() self.throttle = 0. self.steer = 0. self.brake = 0. self.hand_brake = False self.reverse = False self.gear = 0 self.manual_gear_shift = False
def deserialize(self, str): """ unpack serialized message in str into this message instance :param str: byte array of serialized message, ``str`` """ try: if self.header is None: self.header = std_msgs.Header() if self.transform is None: self.transform = geometry_msgs.msg.Transform() end = 0 _x = self start = end end += 12 ( _x.header.seq, _x.header.stamp.secs, _x.header.stamp.nsecs, ) = _get_struct_3I().unpack(str[start:end]) start = end end += 4 (length, ) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.header.frame_id = str[start:end].decode('utf-8') else: self.header.frame_id = str[start:end] start = end end += 4 (length, ) = _struct_I.unpack(str[start:end]) start = end end += length if python3: self.child_frame_id = str[start:end].decode('utf-8') else: self.child_frame_id = str[start:end] _x = self start = end end += 56 ( _x.transform.translation.x, _x.transform.translation.y, _x.transform.translation.z, _x.transform.rotation.x, _x.transform.rotation.y, _x.transform.rotation.z, _x.transform.rotation.w, ) = _get_struct_7d().unpack(str[start:end]) return self except struct.error as e: raise genpy.DeserializationError(e) #most likely buffer underfill
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,orientation,orientation_covariance,angular_velocity,angular_velocity_covariance,linear_acceleration,linear_acceleration_covariance :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(Imu, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.orientation is None: self.orientation = geometry_msgs.msg.Quaternion() if self.orientation_covariance is None: self.orientation_covariance = [0.] * 9 if self.angular_velocity is None: self.angular_velocity = geometry_msgs.msg.Vector3() if self.angular_velocity_covariance is None: self.angular_velocity_covariance = [0.] * 9 if self.linear_acceleration is None: self.linear_acceleration = geometry_msgs.msg.Vector3() if self.linear_acceleration_covariance is None: self.linear_acceleration_covariance = [0.] * 9 else: self.header = std_msgs.Header() self.orientation = geometry_msgs.msg.Quaternion() self.orientation_covariance = [0.] * 9 self.angular_velocity = geometry_msgs.msg.Vector3() self.angular_velocity_covariance = [0.] * 9 self.linear_acceleration = geometry_msgs.msg.Vector3() self.linear_acceleration_covariance = [0.] * 9
def __init__(self, *args, **kwds): """ Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix in-order arguments and keyword arguments. The available fields are: header,pose,name,description,scale,menu_entries,controls :param args: complete set of field values, in .msg order :param kwds: use keyword arguments corresponding to message field names to set specific fields. """ if args or kwds: super(InteractiveMarker, self).__init__(*args, **kwds) #message fields cannot be None, assign default values for those that are if self.header is None: self.header = std_msgs.Header() if self.pose is None: self.pose = geometry_msgs.msg.Pose() if self.name is None: self.name = '' if self.description is None: self.description = '' if self.scale is None: self.scale = 0. if self.menu_entries is None: self.menu_entries = [] if self.controls is None: self.controls = [] else: self.header = std_msgs.Header() self.pose = geometry_msgs.msg.Pose() self.name = '' self.description = '' self.scale = 0. self.menu_entries = [] self.controls = []