public static void write(rcl_interfaces.msg.IntegerRange data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_11(data.from_value); cdr.write_type_11(data.to_value); cdr.write_type_12(data.step); }
public static void write(lifecycle_msgs.msg.TransitionEvent data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_12(data.timestamp); lifecycle_msgs.msg.TransitionPubSubType.write(data.transition, cdr); lifecycle_msgs.msg.StatePubSubType.write(data.start_state, cdr); lifecycle_msgs.msg.StatePubSubType.write(data.goal_state, cdr); }
public static void write(visualization_msgs.msg.InteractiveMarkerUpdate data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_d(data.server_id); cdr.write_type_12(data.seq_num); cdr.write_type_9(data.type); 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.InteractiveMarkerPubSubType.write(data.markers[i0], 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++) { visualization_msgs.msg.InteractiveMarkerPosePubSubType.write(data.poses[i0], cdr); } } if (data.erases == null) { cdr.write_type_2(0); } else { int erases_length = data.erases.Count; cdr.write_type_2(erases_length); for (int i0 = 0; i0 < erases_length; i0++) { cdr.write_type_d(data.erases[i0]); } } }
public static void write(std_msgs.msg.UInt64MultiArray 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_12(data.data[i0]); } } }
public static void write(std_msgs.msg.UInt64 data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_12(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]); } } }
public static void write(rcl_interfaces.msg.IntraProcessMessage data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_12(data.publisher_id); cdr.write_type_12(data.message_sequence); }
public static void write(test.StatusMessage data, Halodi.CDR.CDRSerializer cdr) { cdr.write_type_12(data.sequence_id); cdr.write_type_7(data.pause); }