public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); curIndex += orientation.Deserialize(serialized, curIndex); for (int i = 0; i < (int)orientation_covariance.Length; i++) { orientation_covariance[i] = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(orientation_covariance[i]).Length; } curIndex += angular_velocity.Deserialize(serialized, curIndex); for (int i = 0; i < (int)angular_velocity_covariance.Length; i++) { angular_velocity_covariance[i] = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(angular_velocity_covariance[i]).Length; } curIndex += linear_acceleration.Deserialize(serialized, curIndex); for (int i = 0; i < (int)linear_acceleration_covariance.Length; i++) { linear_acceleration_covariance[i] = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(linear_acceleration_covariance[i]).Length; } return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); System.UInt32 TopicNames_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(TopicNames_len).Length; for (int i = 0; i < (int)TopicNames_len; i++) { System.UInt32 element_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(element_len).Length; string element = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)element_len); curIndex += (int)element_len; TopicNames.Add(element); } System.UInt32 TopicTypes_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(TopicTypes_len).Length; for (int i = 0; i < (int)TopicTypes_len; i++) { System.UInt32 element_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(element_len).Length; string element = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)element_len); curIndex += (int)element_len; TopicTypes.Add(element); } return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); System.UInt32 joint_names_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(joint_names_len).Length; for (int i = 0; i < (int)joint_names_len; i++) { System.UInt32 element_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(element_len).Length; string element = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)element_len); curIndex += (int)element_len; joint_names.Add(element); } System.UInt32 points_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(points_len).Length; for (int i = 0; i < (int)points_len; i++) { trajectory_msgs.JointTrajectoryPoint element = new trajectory_msgs.JointTrajectoryPoint(); curIndex += element.Deserialize(serialized, curIndex); points.Add(element); } return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); height = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(height).Length; width = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(width).Length; System.UInt32 encoding_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(encoding_len).Length; encoding = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)encoding_len); curIndex += (int)encoding_len; is_bigendian = serialized[curIndex]; curIndex++; step = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(step).Length; System.UInt32 data_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(data_len).Length; System.Byte[] temp = new System.Byte[data_len]; Array.Copy(serialized, curIndex, temp, 0, data_len); data = temp.ToList(); curIndex += (int)data_len; return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); height = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(height).Length; width = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(width).Length; System.UInt32 fields_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(fields_len).Length; for (int i = 0; i < (int)fields_len; i++) { sensor_msgs.PointField element = new sensor_msgs.PointField(); curIndex += element.Deserialize(serialized, curIndex); fields.Add(element); } is_bigendian = Convert.ToBoolean(serialized[curIndex]); curIndex++; point_step = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(point_step).Length; row_step = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(row_step).Length; System.UInt32 data_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(data_len).Length; System.Byte[] temp = new System.Byte[data_len]; Array.Copy(serialized, curIndex, temp, 0, data_len); data = temp.ToList(); curIndex += (int)data_len; is_dense = Convert.ToBoolean(serialized[curIndex]); curIndex++; return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); curIndex += twist.Deserialize(serialized, curIndex); return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); fluid_pressure = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(fluid_pressure).Length; variance = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(variance).Length; return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); relative_humidity = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(relative_humidity).Length; variance = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(variance).Length; return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); System.UInt32 child_frame_id_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(child_frame_id_len).Length; child_frame_id = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)child_frame_id_len); curIndex += (int)child_frame_id_len; curIndex += transform.Deserialize(serialized, curIndex); return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); curIndex += time_ref.Deserialize(serialized, curIndex); System.UInt32 source_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(source_len).Length; source = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)source_len); curIndex += (int)source_len; return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); curIndex += magnetic_field.Deserialize(serialized, curIndex); for (int i = 0; i < (int)magnetic_field_covariance.Length; i++) { magnetic_field_covariance[i] = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(magnetic_field_covariance[i]).Length; } return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); System.UInt32 poses_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(poses_len).Length; for (int i = 0; i < (int)poses_len; i++) { geometry_msgs.Pose element = new geometry_msgs.Pose(); curIndex += element.Deserialize(serialized, curIndex); poses.Add(element); } return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); System.UInt32 Messages_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(Messages_len).Length; for (int i = 0; i < (int)Messages_len; i++) { teleop_msgs.SerializedMessage element = new teleop_msgs.SerializedMessage(); curIndex += element.Deserialize(serialized, curIndex); Messages.Add(element); } return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); System.UInt32 status_list_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(status_list_len).Length; for (int i = 0; i < (int)status_list_len; i++) { actionlib_msgs.GoalStatus element = new actionlib_msgs.GoalStatus(); curIndex += element.Deserialize(serialized, curIndex); status_list.Add(element); } return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); radiation_type = serialized[curIndex]; curIndex++; field_of_view = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(field_of_view).Length; min_range = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(min_range).Length; max_range = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(max_range).Length; range = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(range).Length; return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); System.UInt32 format_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(format_len).Length; format = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)format_len); curIndex += (int)format_len; System.UInt32 data_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(data_len).Length; System.Byte[] temp = new System.Byte[data_len]; Array.Copy(serialized, curIndex, temp, 0, data_len); data = temp.ToList(); curIndex += (int)data_len; return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); height = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(height).Length; width = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(width).Length; System.UInt32 distortion_model_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(distortion_model_len).Length; distortion_model = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)distortion_model_len); curIndex += (int)distortion_model_len; System.UInt32 D_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(D_len).Length; for (int i = 0; i < (int)D_len; i++) { double element = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(element).Length; D.Add(element); } for (int i = 0; i < (int)K.Length; i++) { K[i] = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(K[i]).Length; } for (int i = 0; i < (int)R.Length; i++) { R[i] = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(R[i]).Length; } for (int i = 0; i < (int)P.Length; i++) { P[i] = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(P[i]).Length; } binning_x = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(binning_x).Length; binning_y = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(binning_y).Length; curIndex += roi.Deserialize(serialized, curIndex); return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); System.UInt32 name_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(name_len).Length; for (int i = 0; i < (int)name_len; i++) { System.UInt32 element_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(element_len).Length; string element = System.Text.Encoding.UTF8.GetString(serialized, curIndex, (int)element_len); curIndex += (int)element_len; name.Add(element); } System.UInt32 position_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(position_len).Length; for (int i = 0; i < (int)position_len; i++) { double element = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(element).Length; position.Add(element); } System.UInt32 velocity_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(velocity_len).Length; for (int i = 0; i < (int)velocity_len; i++) { double element = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(element).Length; velocity.Add(element); } System.UInt32 effort_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(effort_len).Length; for (int i = 0; i < (int)effort_len; i++) { double element = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(element).Length; effort.Add(element); } return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); curIndex += status.Deserialize(serialized, curIndex); latitude = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(latitude).Length; longitude = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(longitude).Length; altitude = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(altitude).Length; for (int i = 0; i < (int)position_covariance.Length; i++) { position_covariance[i] = BitConverter.ToDouble(serialized, curIndex); curIndex += BitConverter.GetBytes(position_covariance[i]).Length; } position_covariance_type = serialized[curIndex]; curIndex++; return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); System.UInt32 axes_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(axes_len).Length; for (int i = 0; i < (int)axes_len; i++) { float element = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(element).Length; axes.Add(element); } System.UInt32 buttons_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(buttons_len).Length; for (int i = 0; i < (int)buttons_len; i++) { System.Int32 element = BitConverter.ToInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(element).Length; buttons.Add(element); } return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); System.UInt32 points_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(points_len).Length; for (int i = 0; i < (int)points_len; i++) { geometry_msgs.Point32 element = new geometry_msgs.Point32(); curIndex += element.Deserialize(serialized, curIndex); points.Add(element); } System.UInt32 channels_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(channels_len).Length; for (int i = 0; i < (int)channels_len; i++) { sensor_msgs.ChannelFloat32 element = new sensor_msgs.ChannelFloat32(); curIndex += element.Deserialize(serialized, curIndex); channels.Add(element); } return(curIndex - startIndex); }
public override int Deserialize(System.Byte[] serialized, int startIndex) { int curIndex = startIndex; curIndex += header.Deserialize(serialized, curIndex); angle_min = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(angle_min).Length; angle_max = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(angle_max).Length; angle_increment = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(angle_increment).Length; time_increment = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(time_increment).Length; scan_time = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(scan_time).Length; range_min = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(range_min).Length; range_max = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(range_max).Length; System.UInt32 ranges_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(ranges_len).Length; for (int i = 0; i < (int)ranges_len; i++) { float element = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(element).Length; ranges.Add(element); } System.UInt32 intensities_len = BitConverter.ToUInt32(serialized, curIndex); curIndex += BitConverter.GetBytes(intensities_len).Length; for (int i = 0; i < (int)intensities_len; i++) { float element = BitConverter.ToSingle(serialized, curIndex); curIndex += BitConverter.GetBytes(element).Length; intensities.Add(element); } return(curIndex - startIndex); }