public static void read(rcl_interfaces.msg.ParameterValue data, Halodi.CDR.CDRDeserializer cdr) { data.type = cdr.read_type_9(); data.bool_value = cdr.read_type_7(); data.integer_value = cdr.read_type_11(); data.double_value = cdr.read_type_6(); data.string_value = cdr.read_type_d(); int byte_array_value_length = cdr.read_type_2(); data.byte_array_value = new System.Collections.Generic.List <byte>(byte_array_value_length); for (int i = 0; i < byte_array_value_length; i++) { data.byte_array_value.Add(cdr.read_type_9()); } int bool_array_value_length = cdr.read_type_2(); data.bool_array_value = new System.Collections.Generic.List <bool>(bool_array_value_length); for (int i = 0; i < bool_array_value_length; i++) { data.bool_array_value.Add(cdr.read_type_7()); } int integer_array_value_length = cdr.read_type_2(); data.integer_array_value = new System.Collections.Generic.List <long>(integer_array_value_length); for (int i = 0; i < integer_array_value_length; i++) { data.integer_array_value.Add(cdr.read_type_11()); } int double_array_value_length = cdr.read_type_2(); data.double_array_value = new System.Collections.Generic.List <double>(double_array_value_length); for (int i = 0; i < double_array_value_length; i++) { data.double_array_value.Add(cdr.read_type_6()); } int string_array_value_length = cdr.read_type_2(); data.string_array_value = new System.Collections.Generic.List <string>(string_array_value_length); for (int i = 0; i < string_array_value_length; i++) { data.string_array_value.Add(cdr.read_type_d()); } }
public static void read(rcl_interfaces.msg.IntegerRange data, Halodi.CDR.CDRDeserializer cdr) { data.from_value = cdr.read_type_11(); data.to_value = cdr.read_type_11(); data.step = cdr.read_type_12(); }
public static void read(test.IDLSubmessage data, Halodi.CDR.CDRDeserializer cdr) { data.num = cdr.read_type_11(); data.no_default_with_doc = cdr.read_type_11(); data.no_doc_num = cdr.read_type_11(); data.hello = cdr.read_type_2(); }
public static void read(std_msgs.msg.Int64MultiArray data, Halodi.CDR.CDRDeserializer cdr) { data.layout = std_msgs.msg.MultiArrayLayoutPubSubType.Create(); std_msgs.msg.MultiArrayLayoutPubSubType.read(data.layout, cdr); int data_length = cdr.read_type_2(); data.data = new System.Collections.Generic.List <long>(data_length); for (int i = 0; i < data_length; i++) { data.data.Add(cdr.read_type_11()); } }
public static void read(std_msgs.msg.Int64 data, Halodi.CDR.CDRDeserializer cdr) { data.data = cdr.read_type_11(); }
public static void read(test.IDLElementTest data, Halodi.CDR.CDRDeserializer cdr) { data.charTest = cdr.read_type_8(); data.wcharTest = cdr.read_type_14(); data.octetTest = cdr.read_type_9(); data.shortTest = cdr.read_type_1(); data.ushortTest = cdr.read_type_3(); data.longTest = cdr.read_type_2(); data.ulongTest = cdr.read_type_4(); data.longlongTest = cdr.read_type_11(); data.ulonglongTest = cdr.read_type_12(); data.floatTest = cdr.read_type_5(); data.doubleTest = cdr.read_type_6(); data.booleanTest = cdr.read_type_7(); data.colorTest = (test.Color)cdr.read_type_c(); data.nestedElementTest = nested.NestedElementPubSubType.Create(); nested.NestedElementPubSubType.read(data.nestedElementTest, cdr); data.stringTest = cdr.read_type_d(); for (int i0 = 0; i0 < 10; ++i0) { data.longArray[i0] = cdr.read_type_2(); } for (int i0 = 0; i0 < 5; ++i0) { for (int i1 = 0; i1 < 3; ++i1) { nested.NestedElementPubSubType.read(data.nestedArray[i0, i1], cdr); } } for (int i0 = 0; i0 < 4; ++i0) { data.stringArray[i0] = cdr.read_type_d(); } for (int i0 = 0; i0 < 6; ++i0) { int ordinal = cdr.read_type_c(); if (ordinal < 0) { ordinal = 0; } data.enumArray[i0] = (test.Color)ordinal; } int charSeqTest_length = cdr.read_type_2(); data.charSeqTest = new System.Collections.Generic.List <char>(charSeqTest_length); for (int i = 0; i < charSeqTest_length; i++) { data.charSeqTest.Add(cdr.read_type_8()); } int wcharSeqTest_length = cdr.read_type_2(); data.wcharSeqTest = new System.Collections.Generic.List <char>(wcharSeqTest_length); for (int i = 0; i < wcharSeqTest_length; i++) { data.wcharSeqTest.Add(cdr.read_type_14()); } int octetSeqTest_length = cdr.read_type_2(); data.octetSeqTest = new System.Collections.Generic.List <byte>(octetSeqTest_length); for (int i = 0; i < octetSeqTest_length; i++) { data.octetSeqTest.Add(cdr.read_type_9()); } int shortSeqTest_length = cdr.read_type_2(); data.shortSeqTest = new System.Collections.Generic.List <short>(shortSeqTest_length); for (int i = 0; i < shortSeqTest_length; i++) { data.shortSeqTest.Add(cdr.read_type_1()); } int ushortSeqTest_length = cdr.read_type_2(); data.ushortSeqTest = new System.Collections.Generic.List <ushort>(ushortSeqTest_length); for (int i = 0; i < ushortSeqTest_length; i++) { data.ushortSeqTest.Add(cdr.read_type_3()); } int longSeqTest_length = cdr.read_type_2(); data.longSeqTest = new System.Collections.Generic.List <int>(longSeqTest_length); for (int i = 0; i < longSeqTest_length; i++) { data.longSeqTest.Add(cdr.read_type_2()); } int ulongSeqTest_length = cdr.read_type_2(); data.ulongSeqTest = new System.Collections.Generic.List <uint>(ulongSeqTest_length); for (int i = 0; i < ulongSeqTest_length; i++) { data.ulongSeqTest.Add(cdr.read_type_4()); } int longlongSeqtest_length = cdr.read_type_2(); data.longlongSeqtest = new System.Collections.Generic.List <long>(longlongSeqtest_length); for (int i = 0; i < longlongSeqtest_length; i++) { data.longlongSeqtest.Add(cdr.read_type_11()); } int ulonglongSeqTest_length = cdr.read_type_2(); data.ulonglongSeqTest = new System.Collections.Generic.List <ulong>(ulonglongSeqTest_length); for (int i = 0; i < ulonglongSeqTest_length; i++) { data.ulonglongSeqTest.Add(cdr.read_type_12()); } int floatSeqTest_length = cdr.read_type_2(); data.floatSeqTest = new System.Collections.Generic.List <float>(floatSeqTest_length); for (int i = 0; i < floatSeqTest_length; i++) { data.floatSeqTest.Add(cdr.read_type_5()); } int doubleSeqTest_length = cdr.read_type_2(); data.doubleSeqTest = new System.Collections.Generic.List <double>(doubleSeqTest_length); for (int i = 0; i < doubleSeqTest_length; i++) { data.doubleSeqTest.Add(cdr.read_type_6()); } int booleanSeqTest_length = cdr.read_type_2(); data.booleanSeqTest = new System.Collections.Generic.List <bool>(booleanSeqTest_length); for (int i = 0; i < booleanSeqTest_length; i++) { data.booleanSeqTest.Add(cdr.read_type_7()); } int nestedSeqTest_length = cdr.read_type_2(); data.nestedSeqTest = new System.Collections.Generic.List <nested.NestedElement>(nestedSeqTest_length); for (int i = 0; i < nestedSeqTest_length; i++) { nested.NestedElement new_nestedSeqTest = nested.NestedElementPubSubType.Create(); nested.NestedElementPubSubType.read(new_nestedSeqTest, cdr); data.nestedSeqTest.Add(new_nestedSeqTest); } int enumSeqTest_length = cdr.read_type_2(); data.enumSeqTest = new System.Collections.Generic.List <test.Color>(enumSeqTest_length); for (int i = 0; i < enumSeqTest_length; i++) { int ordinal = cdr.read_type_c(); if (ordinal < 0) { ordinal = 0; } data.enumSeqTest.Add((test.Color)ordinal); } int stringSeqTest_length = cdr.read_type_2(); data.stringSeqTest = new System.Collections.Generic.List <string>(stringSeqTest_length); for (int i = 0; i < stringSeqTest_length; i++) { data.stringSeqTest.Add(cdr.read_type_d()); } }
public static void read(test.IDLFeatureMessage data, Halodi.CDR.CDRDeserializer cdr) { data.num = cdr.read_type_11(); data.no_default_with_doc = cdr.read_type_11(); data.no_doc_num = cdr.read_type_11(); data.hello = cdr.read_type_2(); data.num1 = test.IDLSubmessagePubSubType.Create(); test.IDLSubmessagePubSubType.read(data.num1, cdr); int num2_length = cdr.read_type_2(); data.num2 = new System.Collections.Generic.List <test.IDLSubmessage>(num2_length); for (int i = 0; i < num2_length; i++) { test.IDLSubmessage new_num2 = test.IDLSubmessagePubSubType.Create(); test.IDLSubmessagePubSubType.read(new_num2, cdr); data.num2.Add(new_num2); } for (int i0 = 0; i0 < 3; ++i0) { test.IDLSubmessagePubSubType.read(data.num3[i0], cdr); } int num4_length = cdr.read_type_2(); data.num4 = new System.Collections.Generic.List <test.IDLSubmessage>(num4_length); for (int i = 0; i < num4_length; i++) { test.IDLSubmessage new_num4 = test.IDLSubmessagePubSubType.Create(); test.IDLSubmessagePubSubType.read(new_num4, cdr); data.num4.Add(new_num4); } data.str1 = cdr.read_type_d(); data.str2 = cdr.read_type_d(); int str3_length = cdr.read_type_2(); data.str3 = new System.Collections.Generic.List <string>(str3_length); for (int i = 0; i < str3_length; i++) { data.str3.Add(cdr.read_type_d()); } int str4_length = cdr.read_type_2(); data.str4 = new System.Collections.Generic.List <string>(str4_length); for (int i = 0; i < str4_length; i++) { data.str4.Add(cdr.read_type_d()); } int str5_length = cdr.read_type_2(); data.str5 = new System.Collections.Generic.List <string>(str5_length); for (int i = 0; i < str5_length; i++) { data.str5.Add(cdr.read_type_d()); } }