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(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(std_msgs.msg.MultiArrayDimension data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_d(data.label); cdr.write_type_4(data.size); cdr.write_type_4(data.stride); }
public static void write(sensor_msgs.msg.PointField data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_d(data.name); cdr.write_type_4(data.offset); cdr.write_type_9(data.datatype); cdr.write_type_4(data.count); }
public static void write(nav_msgs.msg.MapMetaData data, Halodi.CDR.CDRSerializer cdr) { builtin_interfaces.msg.TimePubSubType.write(data.map_load_time, cdr); cdr.write_type_5(data.resolution); cdr.write_type_4(data.width); cdr.write_type_4(data.height); geometry_msgs.msg.PosePubSubType.write(data.origin, cdr); }
public static void write(visualization_msgs.msg.MenuEntry data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_4(data.id); cdr.write_type_4(data.parent_id); cdr.write_type_d(data.title); cdr.write_type_d(data.command); cdr.write_type_9(data.command_type); }
public static void write(sensor_msgs.msg.RegionOfInterest data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_4(data.x_offset); cdr.write_type_4(data.y_offset); cdr.write_type_4(data.height); cdr.write_type_4(data.width); cdr.write_type_7(data.do_rectify); }
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(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.PointCloud2 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); if (data.fields == null) { cdr.write_type_2(0); } else { int fields_length = data.fields.Count; cdr.write_type_2(fields_length); for (int i0 = 0; i0 < fields_length; i0++) { sensor_msgs.msg.PointFieldPubSubType.write(data.fields[i0], cdr); } } cdr.write_type_7(data.is_bigendian); cdr.write_type_4(data.point_step); cdr.write_type_4(data.row_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]); } } cdr.write_type_7(data.is_dense); }
public static void write(rcl_interfaces.msg.Log data, Halodi.CDR.CDRSerializer cdr) { builtin_interfaces.msg.TimePubSubType.write(data.stamp, cdr); cdr.write_type_9(data.level); cdr.write_type_d(data.name); cdr.write_type_d(data.msg); cdr.write_type_d(data.file); cdr.write_type_d(data.function); cdr.write_type_4(data.line); }
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(std_msgs.msg.UInt32MultiArray 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_4(data.data[i0]); } } }
public static void write(visualization_msgs.msg.InteractiveMarkerFeedback data, Halodi.CDR.CDRSerializer cdr) { std_msgs.msg.HeaderPubSubType.write(data.header, cdr); cdr.write_type_d(data.client_id); cdr.write_type_d(data.marker_name); cdr.write_type_d(data.control_name); cdr.write_type_9(data.event_type); geometry_msgs.msg.PosePubSubType.write(data.pose, cdr); cdr.write_type_4(data.menu_entry_id); geometry_msgs.msg.PointPubSubType.write(data.mouse_point, cdr); cdr.write_type_7(data.mouse_point_valid); }
public static void write(builtin_interfaces.msg.Duration data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_2(data.sec); cdr.write_type_4(data.nanosec); }
public static void write(std_msgs.msg.UInt32 data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_4(data.data); }
public static void write(test.IDLElementTest data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_8(data.charTest); cdr.write_type_14(data.wcharTest); cdr.write_type_9(data.octetTest); cdr.write_type_1(data.shortTest); cdr.write_type_3(data.ushortTest); cdr.write_type_2(data.longTest); cdr.write_type_4(data.ulongTest); cdr.write_type_11(data.longlongTest); cdr.write_type_12(data.ulonglongTest); cdr.write_type_5(data.floatTest); cdr.write_type_6(data.doubleTest); cdr.write_type_7(data.booleanTest); cdr.write_type_c((int)data.colorTest); nested.NestedElementPubSubType.write(data.nestedElementTest, cdr); cdr.write_type_d(data.stringTest); for (int i0 = 0; i0 < 10; ++i0) { cdr.write_type_2(data.longArray[i0]); } for (int i0 = 0; i0 < 5; ++i0) { for (int i1 = 0; i1 < 3; ++i1) { nested.NestedElementPubSubType.write(data.nestedArray[i0, i1], cdr); } } for (int i0 = 0; i0 < 4; ++i0) { cdr.write_type_d(data.stringArray[i0]); } for (int i0 = 0; i0 < 6; ++i0) { cdr.write_type_c((int)data.enumArray[i0]); } if (data.charSeqTest == null) { cdr.write_type_2(0); } else { int charSeqTest_length = data.charSeqTest.Count; cdr.write_type_2(charSeqTest_length); for (int i0 = 0; i0 < charSeqTest_length; i0++) { cdr.write_type_8(data.charSeqTest[i0]); } } if (data.wcharSeqTest == null) { cdr.write_type_2(0); } else { int wcharSeqTest_length = data.wcharSeqTest.Count; cdr.write_type_2(wcharSeqTest_length); for (int i0 = 0; i0 < wcharSeqTest_length; i0++) { cdr.write_type_14(data.wcharSeqTest[i0]); } } if (data.octetSeqTest == null) { cdr.write_type_2(0); } else { int octetSeqTest_length = data.octetSeqTest.Count; cdr.write_type_2(octetSeqTest_length); for (int i0 = 0; i0 < octetSeqTest_length; i0++) { cdr.write_type_9(data.octetSeqTest[i0]); } } if (data.shortSeqTest == null) { cdr.write_type_2(0); } else { int shortSeqTest_length = data.shortSeqTest.Count; cdr.write_type_2(shortSeqTest_length); for (int i0 = 0; i0 < shortSeqTest_length; i0++) { cdr.write_type_1(data.shortSeqTest[i0]); } } if (data.ushortSeqTest == null) { cdr.write_type_2(0); } else { int ushortSeqTest_length = data.ushortSeqTest.Count; cdr.write_type_2(ushortSeqTest_length); for (int i0 = 0; i0 < ushortSeqTest_length; i0++) { cdr.write_type_3(data.ushortSeqTest[i0]); } } if (data.longSeqTest == null) { cdr.write_type_2(0); } else { int longSeqTest_length = data.longSeqTest.Count; cdr.write_type_2(longSeqTest_length); for (int i0 = 0; i0 < longSeqTest_length; i0++) { cdr.write_type_2(data.longSeqTest[i0]); } } if (data.ulongSeqTest == null) { cdr.write_type_2(0); } else { int ulongSeqTest_length = data.ulongSeqTest.Count; cdr.write_type_2(ulongSeqTest_length); for (int i0 = 0; i0 < ulongSeqTest_length; i0++) { cdr.write_type_4(data.ulongSeqTest[i0]); } } if (data.longlongSeqtest == null) { cdr.write_type_2(0); } else { int longlongSeqtest_length = data.longlongSeqtest.Count; cdr.write_type_2(longlongSeqtest_length); for (int i0 = 0; i0 < longlongSeqtest_length; i0++) { cdr.write_type_11(data.longlongSeqtest[i0]); } } if (data.ulonglongSeqTest == null) { cdr.write_type_2(0); } else { int ulonglongSeqTest_length = data.ulonglongSeqTest.Count; cdr.write_type_2(ulonglongSeqTest_length); for (int i0 = 0; i0 < ulonglongSeqTest_length; i0++) { cdr.write_type_12(data.ulonglongSeqTest[i0]); } } if (data.floatSeqTest == null) { cdr.write_type_2(0); } else { int floatSeqTest_length = data.floatSeqTest.Count; cdr.write_type_2(floatSeqTest_length); for (int i0 = 0; i0 < floatSeqTest_length; i0++) { cdr.write_type_5(data.floatSeqTest[i0]); } } if (data.doubleSeqTest == null) { cdr.write_type_2(0); } else { int doubleSeqTest_length = data.doubleSeqTest.Count; cdr.write_type_2(doubleSeqTest_length); for (int i0 = 0; i0 < doubleSeqTest_length; i0++) { cdr.write_type_6(data.doubleSeqTest[i0]); } } if (data.booleanSeqTest == null) { cdr.write_type_2(0); } else { int booleanSeqTest_length = data.booleanSeqTest.Count; cdr.write_type_2(booleanSeqTest_length); for (int i0 = 0; i0 < booleanSeqTest_length; i0++) { cdr.write_type_7(data.booleanSeqTest[i0]); } } if (data.nestedSeqTest == null) { cdr.write_type_2(0); } else { int nestedSeqTest_length = data.nestedSeqTest.Count; cdr.write_type_2(nestedSeqTest_length); for (int i0 = 0; i0 < nestedSeqTest_length; i0++) { nested.NestedElementPubSubType.write(data.nestedSeqTest[i0], cdr); } } if (data.enumSeqTest == null) { cdr.write_type_2(0); } else { int enumSeqTest_length = data.enumSeqTest.Count; cdr.write_type_2(enumSeqTest_length); for (int i0 = 0; i0 < enumSeqTest_length; i0++) { cdr.write_type_c((int)data.enumSeqTest[i0]); } } if (data.stringSeqTest == null) { cdr.write_type_2(0); } else { int stringSeqTest_length = data.stringSeqTest.Count; cdr.write_type_2(stringSeqTest_length); for (int i0 = 0; i0 < stringSeqTest_length; i0++) { cdr.write_type_d(data.stringSeqTest[i0]); } } }