public static void write(geometry.Vector data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_d(data.frame); cdr.write_type_6(data.x); cdr.write_type_6(data.y); cdr.write_type_6(data.z); if (data.bla == null) { cdr.write_type_2(0); } else { int bla_length = data.bla.Count; cdr.write_type_2(bla_length); for (int i0 = 0; i0 < bla_length; i0++) { cdr.write_type_6(data.bla[i0]); } } for (int i0 = 0; i0 < 3; ++i0) { cdr.write_type_6(data.waa[i0]); } }
public static void write(halodi_msgs.msg.MotorStatus data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_9(data.status_level); if (data.joints == null) { cdr.write_type_2(0); } else { int joints_length = data.joints.Count; cdr.write_type_2(joints_length); for (int i0 = 0; i0 < joints_length; i0++) { halodi_msgs.msg.JointNamePubSubType.write(data.joints[i0], cdr); } } cdr.write_type_9(data.motor_id); cdr.write_type_7(data.sto_enabled); cdr.write_type_7(data.over_temperature); cdr.write_type_4(data.motor_serial_number); cdr.write_type_4(data.driver_serial_number); cdr.write_type_7(data.motor_initialized); cdr.write_type_6(data.motor_temperature); cdr.write_type_6(data.driver_temperature); cdr.write_type_9(data.motor_error); }
public static void write(sensor_msgs.msg.Imu data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); geometry_msgs.msg.QuaternionPubSubType.write(data.orientation, cdr); for (int i0 = 0; i0 < 9; ++i0) { cdr.write_type_6(data.orientation_covariance[i0]); } geometry_msgs.msg.Vector3PubSubType.write(data.angular_velocity, cdr); for (int i0 = 0; i0 < 9; ++i0) { cdr.write_type_6(data.angular_velocity_covariance[i0]); } geometry_msgs.msg.Vector3PubSubType.write(data.linear_acceleration, cdr); for (int i0 = 0; i0 < 9; ++i0) { cdr.write_type_6(data.linear_acceleration_covariance[i0]); } }
public static void write(rcl_interfaces.msg.FloatingPointRange data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_6(data.from_value); cdr.write_type_6(data.to_value); cdr.write_type_6(data.step); }
public static void write(sensor_msgs.msg.Temperature data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); cdr.write_type_6(data.temperature); cdr.write_type_6(data.variance); }
public static void write(sensor_msgs.msg.RelativeHumidity data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); cdr.write_type_6(data.relative_humidity); cdr.write_type_6(data.variance); }
public static void write(geometry_msgs.msg.Vector3 data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_6(data.x); cdr.write_type_6(data.y); cdr.write_type_6(data.z); }
public static void write(sensor_msgs.msg.FluidPressure data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); cdr.write_type_6(data.fluid_pressure); cdr.write_type_6(data.variance); }
public static void write(geometry_msgs.msg.Pose2D data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_6(data.x); cdr.write_type_6(data.y); cdr.write_type_6(data.theta); }
public static void write(halodi_msgs.msg.HandCommand data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_6(data.closure); cdr.write_type_6(data.speed); cdr.write_type_6(data.force); }
public static void write(halodi_msgs.msg.DrivingCommand data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_7(data.filter_driving_command); cdr.write_type_6(data.linear_velocity); cdr.write_type_6(data.angular_velocity); }
public static void write(halodi_msgs.msg.JointCalibration data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_d(data.joint_name); cdr.write_type_6(data.measurement_multiplier); cdr.write_type_6(data.measurement_bias); }
public static void write(sensor_msgs.msg.JointState data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); if (data.name == null) { cdr.write_type_2(0); } else { int name_length = data.name.Count; cdr.write_type_2(name_length); for (int i0 = 0; i0 < name_length; i0++) { cdr.write_type_d(data.name[i0]); } } if (data.position == null) { cdr.write_type_2(0); } else { int position_length = data.position.Count; cdr.write_type_2(position_length); for (int i0 = 0; i0 < position_length; i0++) { cdr.write_type_6(data.position[i0]); } } if (data.velocity == null) { cdr.write_type_2(0); } else { int velocity_length = data.velocity.Count; cdr.write_type_2(velocity_length); for (int i0 = 0; i0 < velocity_length; i0++) { cdr.write_type_6(data.velocity[i0]); } } if (data.effort == null) { cdr.write_type_2(0); } else { int effort_length = data.effort.Count; cdr.write_type_2(effort_length); for (int i0 = 0; i0 < effort_length; i0++) { cdr.write_type_6(data.effort[i0]); } } }
public static void write(trajectory_msgs.msg.JointTrajectoryPoint data, Halodi.CDR.CDRSerializer cdr) { if (data.positions == null) { cdr.write_type_2(0); } else { int positions_length = data.positions.Count; cdr.write_type_2(positions_length); for (int i0 = 0; i0 < positions_length; i0++) { cdr.write_type_6(data.positions[i0]); } } if (data.velocities == null) { cdr.write_type_2(0); } else { int velocities_length = data.velocities.Count; cdr.write_type_2(velocities_length); for (int i0 = 0; i0 < velocities_length; i0++) { cdr.write_type_6(data.velocities[i0]); } } if (data.accelerations == null) { cdr.write_type_2(0); } else { int accelerations_length = data.accelerations.Count; cdr.write_type_2(accelerations_length); for (int i0 = 0; i0 < accelerations_length; i0++) { cdr.write_type_6(data.accelerations[i0]); } } if (data.effort == null) { cdr.write_type_2(0); } else { int effort_length = data.effort.Count; cdr.write_type_2(effort_length); for (int i0 = 0; i0 < effort_length; i0++) { cdr.write_type_6(data.effort[i0]); } } builtin_interfaces.msg.DurationPubSubType.write(data.time_from_start, cdr); }
public static void write(geometry_msgs.msg.Quaternion data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_6(data.x); cdr.write_type_6(data.y); cdr.write_type_6(data.z); cdr.write_type_6(data.w); }
public static void write(halodi_msgs.msg.BatteryStatus data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_9(data.battery_status_level); cdr.write_type_6(data.battery_voltage); cdr.write_type_6(data.low_battery_voltage); cdr.write_type_6(data.shutdown_battery_voltage); }
public static void write(test.FooAppearanceDefinitionMessage data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_6(data.r); cdr.write_type_6(data.g); cdr.write_type_6(data.b); cdr.write_type_6(data.transparency); }
public static void write(geometry.Box data, Halodi.CDR.CDRSerializer cdr) { geometry.VectorPubSubType.write(data.center, cdr); cdr.write_type_6(data.w); cdr.write_type_6(data.l); cdr.write_type_6(data.h); }
public static void write(halodi_msgs.msg.PassivityData data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_6(data.energy_packet); cdr.write_type_6(data.energy_tank_level); cdr.write_type_6(data.virtual_mass); cdr.write_type_6(data.virtual_inertia); }
public static void write(halodi_msgs.msg.DrivingTrajectoryPoint data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_6(data.x); cdr.write_type_6(data.y); cdr.write_type_6(data.yaw); cdr.write_type_6(data.desired_linear_velocity); cdr.write_type_6(data.desired_angular_velocity); }
public static void write(halodi_msgs.msg.JointMeasurement data, Halodi.CDR.CDRSerializer cdr) { halodi_msgs.msg.JointNamePubSubType.write(data.joint, cdr); cdr.write_type_6(data.position); cdr.write_type_6(data.velocity); cdr.write_type_6(data.measuredEffort); cdr.write_type_6(data.desiredEffort); }
public static void write(shape_msgs.msg.Plane data, Halodi.CDR.CDRSerializer cdr) { for (int i0 = 0; i0 < 4; ++i0) { cdr.write_type_6(data.coef[i0]); } }
public static void write(halodi_msgs.msg.RobotPoseEstimateConfiguration data, Halodi.CDR.CDRSerializer cdr) { halodi_msgs.msg.ReferenceFrameNamePubSubType.write(data.parent_frame, cdr); geometry_msgs.msg.TransformPubSubType.write(data.static_transform, cdr); cdr.write_type_6(data.alpha); }
public static void write(geometry_msgs.msg.PoseWithCovariance data, Halodi.CDR.CDRSerializer cdr) { geometry_msgs.msg.PosePubSubType.write(data.pose, cdr); for (int i0 = 0; i0 < 36; ++i0) { cdr.write_type_6(data.covariance[i0]); } }
public static void write(sensor_msgs.msg.CameraInfo data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); cdr.write_type_4(data.height); cdr.write_type_4(data.width); cdr.write_type_d(data.distortion_model); if (data.d == null) { cdr.write_type_2(0); } else { int d_length = data.d.Count; cdr.write_type_2(d_length); for (int i0 = 0; i0 < d_length; i0++) { cdr.write_type_6(data.d[i0]); } } for (int i0 = 0; i0 < 9; ++i0) { cdr.write_type_6(data.k[i0]); } for (int i0 = 0; i0 < 9; ++i0) { cdr.write_type_6(data.r[i0]); } for (int i0 = 0; i0 < 12; ++i0) { cdr.write_type_6(data.p[i0]); } cdr.write_type_4(data.binning_x); cdr.write_type_4(data.binning_y); sensor_msgs.msg.RegionOfInterestPubSubType.write(data.roi, cdr); }
public static void write(sensor_msgs.msg.NavSatFix data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); sensor_msgs.msg.NavSatStatusPubSubType.write(data.status, cdr); cdr.write_type_6(data.latitude); cdr.write_type_6(data.longitude); cdr.write_type_6(data.altitude); for (int i0 = 0; i0 < 9; ++i0) { cdr.write_type_6(data.position_covariance[i0]); } cdr.write_type_9(data.position_covariance_type); }
public static void write(halodi_msgs.msg.DrivingTrajectory data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_6(data.look_ahead_distance); cdr.write_type_6(data.K); if (data.trajectory_points == null) { cdr.write_type_2(0); } else { int trajectory_points_length = data.trajectory_points.Count; cdr.write_type_2(trajectory_points_length); for (int i0 = 0; i0 < trajectory_points_length; i0++) { halodi_msgs.msg.DrivingTrajectoryPointPubSubType.write(data.trajectory_points[i0], cdr); } } }
public static void write(sensor_msgs.msg.MagneticField data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); geometry_msgs.msg.Vector3PubSubType.write(data.magnetic_field, cdr); for (int i0 = 0; i0 < 9; ++i0) { cdr.write_type_6(data.magnetic_field_covariance[i0]); } }
public static void write(test.FooYoVariableDefinition data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_d(data.name); cdr.write_type_d(data.description); cdr.write_type_c((int)data.type); cdr.write_type_3(data.registry); cdr.write_type_3(data.enumType); cdr.write_type_7(data.allowNullValues); cdr.write_type_7(data.isParameter); cdr.write_type_6(data.min); cdr.write_type_6(data.max); cdr.write_type_c((int)data.loadStatus); }
public static void write(halodi_msgs.msg.WholeBodyTrajectory data, Halodi.CDR.CDRSerializer cdr) { unique_identifier_msgs.msg.UUIDPubSubType.write(data.trajectory_id, cdr); if (data.start_time == null) { cdr.write_type_2(0); } else { int start_time_length = data.start_time.Count; cdr.write_type_2(start_time_length); for (int i0 = 0; i0 < start_time_length; i0++) { builtin_interfaces.msg.TimePubSubType.write(data.start_time[i0], cdr); } } if (data.balance_mode == null) { cdr.write_type_2(0); } else { int balance_mode_length = data.balance_mode.Count; cdr.write_type_2(balance_mode_length); for (int i0 = 0; i0 < balance_mode_length; i0++) { halodi_msgs.msg.BalanceModePubSubType.write(data.balance_mode[i0], cdr); } } cdr.write_type_7(data.append_trajectory); halodi_msgs.msg.TrajectoryInterpolationPubSubType.write(data.interpolation_mode, cdr); cdr.write_type_6(data.low_pass_filter_break_frequency); if (data.trajectory_points == null) { cdr.write_type_2(0); } else { int trajectory_points_length = data.trajectory_points.Count; cdr.write_type_2(trajectory_points_length); for (int i0 = 0; i0 < trajectory_points_length; i0++) { halodi_msgs.msg.WholeBodyTrajectoryPointPubSubType.write(data.trajectory_points[i0], cdr); } } }