public static void write(ocs2_ros2_msgs.msg.ModeSchedule data, Halodi.CDR.CDRSerializer cdr) { if (data.event_times == null) { cdr.write_type_2(0); } else { int event_times_length = data.event_times.Count; cdr.write_type_2(event_times_length); for (int i0 = 0; i0 < event_times_length; i0++) { cdr.write_type_5(data.event_times[i0]); } } if (data.mode_sequence == null) { cdr.write_type_2(0); } else { int mode_sequence_length = data.mode_sequence.Count; cdr.write_type_2(mode_sequence_length); for (int i0 = 0; i0 < mode_sequence_length; i0++) { cdr.write_type_2(data.mode_sequence[i0]); } } }
public static void write(halodi_msgs.msg.TaskSpaceFeedback data, Halodi.CDR.CDRSerializer cdr) { halodi_msgs.msg.ReferenceFrameNamePubSubType.write(data.body_frame, cdr); halodi_msgs.msg.ReferenceFrameNamePubSubType.write(data.expressed_in_frame, cdr); cdr.write_type_7(data.express_in_z_up); geometry_msgs.msg.Vector3PubSubType.write(data.angular_acceleration, cdr); geometry_msgs.msg.Vector3PubSubType.write(data.linear_acceleration, cdr); if (data.passivity_output == null) { cdr.write_type_2(0); } else { int passivity_output_length = data.passivity_output.Count; cdr.write_type_2(passivity_output_length); for (int i0 = 0; i0 < passivity_output_length; i0++) { halodi_msgs.msg.PassivityDataPubSubType.write(data.passivity_output[i0], cdr); } } }
public static void write(visualization_msgs.msg.InteractiveMarkerControl data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_d(data.name); geometry_msgs.msg.QuaternionPubSubType.write(data.orientation, cdr); cdr.write_type_9(data.orientation_mode); cdr.write_type_9(data.interaction_mode); cdr.write_type_7(data.always_visible); if (data.markers == null) { cdr.write_type_2(0); } else { int markers_length = data.markers.Count; cdr.write_type_2(markers_length); for (int i0 = 0; i0 < markers_length; i0++) { visualization_msgs.msg.MarkerPubSubType.write(data.markers[i0], cdr); } } cdr.write_type_7(data.independent_marker_orientation); cdr.write_type_d(data.description); }
public static void write(sensor_msgs.msg.Joy data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); if (data.axes == null) { cdr.write_type_2(0); } else { int axes_length = data.axes.Count; cdr.write_type_2(axes_length); for (int i0 = 0; i0 < axes_length; i0++) { cdr.write_type_5(data.axes[i0]); } } if (data.buttons == null) { cdr.write_type_2(0); } else { int buttons_length = data.buttons.Count; cdr.write_type_2(buttons_length); for (int i0 = 0; i0 < buttons_length; i0++) { cdr.write_type_2(data.buttons[i0]); } } }
public static void write(trajectory_msgs.msg.MultiDOFJointTrajectory data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); if (data.joint_names == null) { cdr.write_type_2(0); } else { int joint_names_length = data.joint_names.Count; cdr.write_type_2(joint_names_length); for (int i0 = 0; i0 < joint_names_length; i0++) { cdr.write_type_d(data.joint_names[i0]); } } if (data.points == null) { cdr.write_type_2(0); } else { int points_length = data.points.Count; cdr.write_type_2(points_length); for (int i0 = 0; i0 < points_length; i0++) { trajectory_msgs.msg.MultiDOFJointTrajectoryPointPubSubType.write(data.points[i0], cdr); } } }
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(rcl_interfaces.msg.ListParametersResult data, Halodi.CDR.CDRSerializer cdr) { if (data.names == null) { cdr.write_type_2(0); } else { int names_length = data.names.Count; cdr.write_type_2(names_length); for (int i0 = 0; i0 < names_length; i0++) { cdr.write_type_d(data.names[i0]); } } if (data.prefixes == null) { cdr.write_type_2(0); } else { int prefixes_length = data.prefixes.Count; cdr.write_type_2(prefixes_length); for (int i0 = 0; i0 < prefixes_length; i0++) { cdr.write_type_d(data.prefixes[i0]); } } }
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(sensor_msgs.msg.PointCloud data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); if (data.points == null) { cdr.write_type_2(0); } else { int points_length = data.points.Count; cdr.write_type_2(points_length); for (int i0 = 0; i0 < points_length; i0++) { geometry_msgs.msg.Point32PubSubType.write(data.points[i0], cdr); } } if (data.channels == null) { cdr.write_type_2(0); } else { int channels_length = data.channels.Count; cdr.write_type_2(channels_length); for (int i0 = 0; i0 < channels_length; i0++) { sensor_msgs.msg.ChannelFloat32PubSubType.write(data.channels[i0], cdr); } } }
public static void write(sensor_msgs.msg.Image 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.encoding); cdr.write_type_9(data.is_bigendian); cdr.write_type_4(data.step); if (data.data == null) { cdr.write_type_2(0); } else { int data_length = data.data.Count; cdr.write_type_2(data_length); for (int i0 = 0; i0 < data_length; i0++) { cdr.write_type_9(data.data[i0]); } } }
public static void write(shape_msgs.msg.Mesh data, Halodi.CDR.CDRSerializer cdr) { if (data.triangles == null) { cdr.write_type_2(0); } else { int triangles_length = data.triangles.Count; cdr.write_type_2(triangles_length); for (int i0 = 0; i0 < triangles_length; i0++) { shape_msgs.msg.MeshTrianglePubSubType.write(data.triangles[i0], cdr); } } if (data.vertices == null) { cdr.write_type_2(0); } else { int vertices_length = data.vertices.Count; cdr.write_type_2(vertices_length); for (int i0 = 0; i0 < vertices_length; i0++) { geometry_msgs.msg.PointPubSubType.write(data.vertices[i0], cdr); } } }
public static void write(sensor_msgs.msg.BatteryState data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); cdr.write_type_5(data.voltage); cdr.write_type_5(data.temperature); cdr.write_type_5(data.current); cdr.write_type_5(data.charge); cdr.write_type_5(data.capacity); cdr.write_type_5(data.design_capacity); cdr.write_type_5(data.percentage); cdr.write_type_9(data.power_supply_status); cdr.write_type_9(data.power_supply_health); cdr.write_type_9(data.power_supply_technology); cdr.write_type_7(data.present); if (data.cell_voltage == null) { cdr.write_type_2(0); } else { int cell_voltage_length = data.cell_voltage.Count; cdr.write_type_2(cell_voltage_length); for (int i0 = 0; i0 < cell_voltage_length; i0++) { cdr.write_type_5(data.cell_voltage[i0]); } } if (data.cell_temperature == null) { cdr.write_type_2(0); } else { int cell_temperature_length = data.cell_temperature.Count; cdr.write_type_2(cell_temperature_length); for (int i0 = 0; i0 < cell_temperature_length; i0++) { cdr.write_type_5(data.cell_temperature[i0]); } } cdr.write_type_d(data.location); cdr.write_type_d(data.serial_number); }
public static void write(halodi_msgs.msg.RobotStatus data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); cdr.write_type_9(data.robot_status_level); halodi_msgs.msg.BatteryStatusPubSubType.write(data.battery_status, cdr); cdr.write_type_7(data.backpack_estop_enabled); cdr.write_type_7(data.wireless_estop_enabled); cdr.write_type_7(data.over_temperature); cdr.write_type_7(data.driving_disabled); if (data.joint_status == null) { cdr.write_type_2(0); } else { int joint_status_length = data.joint_status.Count; cdr.write_type_2(joint_status_length); for (int i0 = 0; i0 < joint_status_length; i0++) { halodi_msgs.msg.JointStatusPubSubType.write(data.joint_status[i0], cdr); } } if (data.motor_status == null) { cdr.write_type_2(0); } else { int motor_status_length = data.motor_status.Count; cdr.write_type_2(motor_status_length); for (int i0 = 0; i0 < motor_status_length; i0++) { halodi_msgs.msg.MotorStatusPubSubType.write(data.motor_status[i0], cdr); } } cdr.write_type_4(data.runtime_since_start); cdr.write_type_4(data.total_runtime); cdr.write_type_4(data.numberOfRuns); }
public static void write(action_msgs.msg.GoalStatusArray data, Halodi.CDR.CDRSerializer cdr) { if (data.status_list == null) { cdr.write_type_2(0); } else { int status_list_length = data.status_list.Count; cdr.write_type_2(status_list_length); for (int i0 = 0; i0 < status_list_length; i0++) { action_msgs.msg.GoalStatusPubSubType.write(data.status_list[i0], cdr); } } }
public static void write(sensor_msgs.msg.JoyFeedbackArray data, Halodi.CDR.CDRSerializer cdr) { if (data.array == null) { cdr.write_type_2(0); } else { int array_length = data.array.Count; cdr.write_type_2(array_length); for (int i0 = 0; i0 < array_length; i0++) { sensor_msgs.msg.JoyFeedbackPubSubType.write(data.array[i0], cdr); } } }
public static void write(ocs2_ros2_msgs.msg.ControllerData data, Halodi.CDR.CDRSerializer cdr) { if (data.data == null) { cdr.write_type_2(0); } else { int data_length = data.data.Count; cdr.write_type_2(data_length); for (int i0 = 0; i0 < data_length; i0++) { cdr.write_type_5(data.data[i0]); } } }
public static void write(visualization_msgs.msg.MarkerArray data, Halodi.CDR.CDRSerializer cdr) { if (data.markers == null) { cdr.write_type_2(0); } else { int markers_length = data.markers.Count; cdr.write_type_2(markers_length); for (int i0 = 0; i0 < markers_length; i0++) { visualization_msgs.msg.MarkerPubSubType.write(data.markers[i0], cdr); } } }
public static void write(sensor_msgs.msg.LaserEcho data, Halodi.CDR.CDRSerializer cdr) { if (data.echoes == null) { cdr.write_type_2(0); } else { int echoes_length = data.echoes.Count; cdr.write_type_2(echoes_length); for (int i0 = 0; i0 < echoes_length; i0++) { cdr.write_type_5(data.echoes[i0]); } } }
public static void write(geometry.Polygon data, Halodi.CDR.CDRSerializer cdr) { if (data.points == null) { cdr.write_type_2(0); } else { int points_length = data.points.Count; cdr.write_type_2(points_length); for (int i0 = 0; i0 < points_length; i0++) { geometry.VectorPubSubType.write(data.points[i0], cdr); } } }
public static void write(tf2_msgs.msg.TFMessage data, Halodi.CDR.CDRSerializer cdr) { if (data.transforms == null) { cdr.write_type_2(0); } else { int transforms_length = data.transforms.Count; cdr.write_type_2(transforms_length); for (int i0 = 0; i0 < transforms_length; i0++) { geometry_msgs.msg.TransformStampedPubSubType.write(data.transforms[i0], cdr); } } }
public static void write(ocs2_ros2_msgs.msg.MpcInput data, Halodi.CDR.CDRSerializer cdr) { if (data.value == null) { cdr.write_type_2(0); } else { int value_length = data.value.Count; cdr.write_type_2(value_length); for (int i0 = 0; i0 < value_length; i0++) { cdr.write_type_5(data.value[i0]); } } }
public static void write(sensor_msgs.msg.MultiDOFJointState data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); if (data.joint_names == null) { cdr.write_type_2(0); } else { int joint_names_length = data.joint_names.Count; cdr.write_type_2(joint_names_length); for (int i0 = 0; i0 < joint_names_length; i0++) { cdr.write_type_d(data.joint_names[i0]); } } if (data.transforms == null) { cdr.write_type_2(0); } else { int transforms_length = data.transforms.Count; cdr.write_type_2(transforms_length); for (int i0 = 0; i0 < transforms_length; i0++) { geometry_msgs.msg.TransformPubSubType.write(data.transforms[i0], cdr); } } if (data.twist == null) { cdr.write_type_2(0); } else { int twist_length = data.twist.Count; cdr.write_type_2(twist_length); for (int i0 = 0; i0 < twist_length; i0++) { geometry_msgs.msg.TwistPubSubType.write(data.twist[i0], cdr); } } if (data.wrench == null) { cdr.write_type_2(0); } else { int wrench_length = data.wrench.Count; cdr.write_type_2(wrench_length); for (int i0 = 0; i0 < wrench_length; i0++) { geometry_msgs.msg.WrenchPubSubType.write(data.wrench[i0], cdr); } } }
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(std_msgs.msg.MultiArrayLayout data, Halodi.CDR.CDRSerializer cdr) { if (data.dim == null) { cdr.write_type_2(0); } else { int dim_length = data.dim.Count; cdr.write_type_2(dim_length); for (int i0 = 0; i0 < dim_length; i0++) { std_msgs.msg.MultiArrayDimensionPubSubType.write(data.dim[i0], cdr); } } cdr.write_type_4(data.data_offset); }
public static void write(chat.ChatMessage data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_2(data.key); cdr.write_type_d(data.sender); cdr.write_type_d(data.msg); }
public static void write(sensor_msgs.msg.LaserScan data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); cdr.write_type_5(data.angle_min); cdr.write_type_5(data.angle_max); cdr.write_type_5(data.angle_increment); cdr.write_type_5(data.time_increment); cdr.write_type_5(data.scan_time); cdr.write_type_5(data.range_min); cdr.write_type_5(data.range_max); if (data.ranges == null) { cdr.write_type_2(0); } else { int ranges_length = data.ranges.Count; cdr.write_type_2(ranges_length); for (int i0 = 0; i0 < ranges_length; i0++) { cdr.write_type_5(data.ranges[i0]); } } if (data.intensities == null) { cdr.write_type_2(0); } else { int intensities_length = data.intensities.Count; cdr.write_type_2(intensities_length); for (int i0 = 0; i0 < intensities_length; i0++) { cdr.write_type_5(data.intensities[i0]); } } }
public static void write(std_msgs.msg.Int64MultiArray data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.MultiArrayLayoutPubSubType.write(data.layout, cdr); if (data.data == null) { cdr.write_type_2(0); } else { int data_length = data.data.Count; cdr.write_type_2(data_length); for (int i0 = 0; i0 < data_length; i0++) { cdr.write_type_11(data.data[i0]); } } }
public static void write(test.BigMessage data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_2(data.id); if (data.largeSequence == null) { cdr.write_type_2(0); } else { int largeSequence_length = data.largeSequence.Count; cdr.write_type_2(largeSequence_length); for (int i0 = 0; i0 < largeSequence_length; i0++) { test.IDLSubmessagePubSubType.write(data.largeSequence[i0], cdr); } } }
public static void write(geometry_msgs.msg.PoseArray data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); if (data.poses == null) { cdr.write_type_2(0); } else { int poses_length = data.poses.Count; cdr.write_type_2(poses_length); for (int i0 = 0; i0 < poses_length; i0++) { geometry_msgs.msg.PosePubSubType.write(data.poses[i0], cdr); } } }