laser_parameter.pb.cc 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: laser_parameter.proto
  3. #include "laser_parameter.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/io/coded_stream.h>
  6. #include <google/protobuf/extension_set.h>
  7. #include <google/protobuf/wire_format_lite.h>
  8. #include <google/protobuf/descriptor.h>
  9. #include <google/protobuf/generated_message_reflection.h>
  10. #include <google/protobuf/reflection_ops.h>
  11. #include <google/protobuf/wire_format.h>
  12. // @@protoc_insertion_point(includes)
  13. #include <google/protobuf/port_def.inc>
  14. extern PROTOBUF_INTERNAL_EXPORT_laser_5fparameter_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_laser_parameter_laser_5fparameter_2eproto;
  15. namespace Laser_proto {
  16. class laser_parameterDefaultTypeInternal {
  17. public:
  18. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<laser_parameter> _instance;
  19. } _laser_parameter_default_instance_;
  20. class Laser_parameter_allDefaultTypeInternal {
  21. public:
  22. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<Laser_parameter_all> _instance;
  23. } _Laser_parameter_all_default_instance_;
  24. } // namespace Laser_proto
  25. static void InitDefaultsscc_info_Laser_parameter_all_laser_5fparameter_2eproto() {
  26. GOOGLE_PROTOBUF_VERIFY_VERSION;
  27. {
  28. void* ptr = &::Laser_proto::_Laser_parameter_all_default_instance_;
  29. new (ptr) ::Laser_proto::Laser_parameter_all();
  30. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  31. }
  32. ::Laser_proto::Laser_parameter_all::InitAsDefaultInstance();
  33. }
  34. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_Laser_parameter_all_laser_5fparameter_2eproto =
  35. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, 0, InitDefaultsscc_info_Laser_parameter_all_laser_5fparameter_2eproto}, {
  36. &scc_info_laser_parameter_laser_5fparameter_2eproto.base,}};
  37. static void InitDefaultsscc_info_laser_parameter_laser_5fparameter_2eproto() {
  38. GOOGLE_PROTOBUF_VERIFY_VERSION;
  39. {
  40. void* ptr = &::Laser_proto::_laser_parameter_default_instance_;
  41. new (ptr) ::Laser_proto::laser_parameter();
  42. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  43. }
  44. ::Laser_proto::laser_parameter::InitAsDefaultInstance();
  45. }
  46. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_laser_parameter_laser_5fparameter_2eproto =
  47. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_laser_parameter_laser_5fparameter_2eproto}, {}};
  48. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_laser_5fparameter_2eproto[2];
  49. static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_laser_5fparameter_2eproto = nullptr;
  50. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_laser_5fparameter_2eproto = nullptr;
  51. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_laser_5fparameter_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  52. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, _has_bits_),
  53. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, _internal_metadata_),
  54. ~0u, // no _extensions_
  55. ~0u, // no _oneof_case_
  56. ~0u, // no _weak_field_map_
  57. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, laser_ip_),
  58. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, laser_port_),
  59. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, laser_port_remote_),
  60. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r00_),
  61. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r01_),
  62. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r02_),
  63. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r03_),
  64. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r10_),
  65. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r11_),
  66. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r12_),
  67. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r13_),
  68. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r20_),
  69. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r21_),
  70. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r22_),
  71. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r23_),
  72. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, axis_x_theta_),
  73. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, axis_y_theta_),
  74. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, axis_z_theta_),
  75. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, translation_x_),
  76. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, translation_y_),
  77. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, translation_z_),
  78. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, install_angle_),
  79. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, scan_direction_),
  80. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, sn_),
  81. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, frame_num_),
  82. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, type_),
  83. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, is_save_banary_),
  84. PROTOBUF_FIELD_OFFSET(::Laser_proto::laser_parameter, is_save_txt_),
  85. 0,
  86. 3,
  87. 4,
  88. 15,
  89. 16,
  90. 17,
  91. 18,
  92. 19,
  93. 20,
  94. 21,
  95. 22,
  96. 23,
  97. 24,
  98. 25,
  99. 26,
  100. 5,
  101. 6,
  102. 7,
  103. 8,
  104. 9,
  105. 10,
  106. 11,
  107. 13,
  108. 1,
  109. 27,
  110. 2,
  111. 12,
  112. 14,
  113. ~0u, // no _has_bits_
  114. PROTOBUF_FIELD_OFFSET(::Laser_proto::Laser_parameter_all, _internal_metadata_),
  115. ~0u, // no _extensions_
  116. ~0u, // no _oneof_case_
  117. ~0u, // no _weak_field_map_
  118. PROTOBUF_FIELD_OFFSET(::Laser_proto::Laser_parameter_all, laser_parameters_),
  119. };
  120. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  121. { 0, 33, sizeof(::Laser_proto::laser_parameter)},
  122. { 61, -1, sizeof(::Laser_proto::Laser_parameter_all)},
  123. };
  124. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  125. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Laser_proto::_laser_parameter_default_instance_),
  126. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::Laser_proto::_Laser_parameter_all_default_instance_),
  127. };
  128. const char descriptor_table_protodef_laser_5fparameter_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  129. "\n\025laser_parameter.proto\022\013Laser_proto\"\360\004\n"
  130. "\017laser_parameter\022\020\n\010laser_ip\030\001 \001(\t\022\022\n\nla"
  131. "ser_port\030\002 \001(\003\022\031\n\021laser_port_remote\030\003 \001("
  132. "\003\022\022\n\007mat_r00\030\004 \001(\001:\0011\022\022\n\007mat_r01\030\005 \001(\001:\001"
  133. "1\022\022\n\007mat_r02\030\006 \001(\001:\0011\022\022\n\007mat_r03\030\007 \001(\001:\001"
  134. "1\022\022\n\007mat_r10\030\010 \001(\001:\0011\022\022\n\007mat_r11\030\t \001(\001:\001"
  135. "1\022\022\n\007mat_r12\030\n \001(\001:\0011\022\022\n\007mat_r13\030\013 \001(\001:\001"
  136. "1\022\022\n\007mat_r20\030\014 \001(\001:\0011\022\022\n\007mat_r21\030\r \001(\001:\001"
  137. "1\022\022\n\007mat_r22\030\016 \001(\001:\0011\022\022\n\007mat_r23\030\017 \001(\001:\001"
  138. "1\022\024\n\014axis_x_theta\030\020 \001(\001\022\024\n\014axis_y_theta\030"
  139. "\021 \001(\001\022\024\n\014axis_z_theta\030\022 \001(\001\022\025\n\rtranslati"
  140. "on_x\030\023 \001(\001\022\025\n\rtranslation_y\030\024 \001(\001\022\025\n\rtra"
  141. "nslation_z\030\025 \001(\001\022\030\n\rinstall_angle\030\026 \001(\001:"
  142. "\0010\022\034\n\016scan_direction\030\027 \001(\010:\004true\022\n\n\002sn\030\030"
  143. " \001(\t\022\027\n\tframe_num\030\031 \001(\003:\0043000\022\016\n\004type\030\032 "
  144. "\001(\t:\000\022\035\n\016is_save_banary\030\033 \001(\010:\005false\022\031\n\013"
  145. "is_save_txt\030\034 \001(\010:\004true\"M\n\023Laser_paramet"
  146. "er_all\0226\n\020laser_parameters\030\001 \003(\0132\034.Laser"
  147. "_proto.laser_parameter"
  148. ;
  149. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_laser_5fparameter_2eproto_deps[1] = {
  150. };
  151. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_laser_5fparameter_2eproto_sccs[2] = {
  152. &scc_info_Laser_parameter_all_laser_5fparameter_2eproto.base,
  153. &scc_info_laser_parameter_laser_5fparameter_2eproto.base,
  154. };
  155. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_laser_5fparameter_2eproto_once;
  156. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_laser_5fparameter_2eproto = {
  157. false, false, descriptor_table_protodef_laser_5fparameter_2eproto, "laser_parameter.proto", 742,
  158. &descriptor_table_laser_5fparameter_2eproto_once, descriptor_table_laser_5fparameter_2eproto_sccs, descriptor_table_laser_5fparameter_2eproto_deps, 2, 0,
  159. schemas, file_default_instances, TableStruct_laser_5fparameter_2eproto::offsets,
  160. file_level_metadata_laser_5fparameter_2eproto, 2, file_level_enum_descriptors_laser_5fparameter_2eproto, file_level_service_descriptors_laser_5fparameter_2eproto,
  161. };
  162. // Force running AddDescriptors() at dynamic initialization time.
  163. static bool dynamic_init_dummy_laser_5fparameter_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_laser_5fparameter_2eproto)), true);
  164. namespace Laser_proto {
  165. // ===================================================================
  166. void laser_parameter::InitAsDefaultInstance() {
  167. }
  168. class laser_parameter::_Internal {
  169. public:
  170. using HasBits = decltype(std::declval<laser_parameter>()._has_bits_);
  171. static void set_has_laser_ip(HasBits* has_bits) {
  172. (*has_bits)[0] |= 1u;
  173. }
  174. static void set_has_laser_port(HasBits* has_bits) {
  175. (*has_bits)[0] |= 8u;
  176. }
  177. static void set_has_laser_port_remote(HasBits* has_bits) {
  178. (*has_bits)[0] |= 16u;
  179. }
  180. static void set_has_mat_r00(HasBits* has_bits) {
  181. (*has_bits)[0] |= 32768u;
  182. }
  183. static void set_has_mat_r01(HasBits* has_bits) {
  184. (*has_bits)[0] |= 65536u;
  185. }
  186. static void set_has_mat_r02(HasBits* has_bits) {
  187. (*has_bits)[0] |= 131072u;
  188. }
  189. static void set_has_mat_r03(HasBits* has_bits) {
  190. (*has_bits)[0] |= 262144u;
  191. }
  192. static void set_has_mat_r10(HasBits* has_bits) {
  193. (*has_bits)[0] |= 524288u;
  194. }
  195. static void set_has_mat_r11(HasBits* has_bits) {
  196. (*has_bits)[0] |= 1048576u;
  197. }
  198. static void set_has_mat_r12(HasBits* has_bits) {
  199. (*has_bits)[0] |= 2097152u;
  200. }
  201. static void set_has_mat_r13(HasBits* has_bits) {
  202. (*has_bits)[0] |= 4194304u;
  203. }
  204. static void set_has_mat_r20(HasBits* has_bits) {
  205. (*has_bits)[0] |= 8388608u;
  206. }
  207. static void set_has_mat_r21(HasBits* has_bits) {
  208. (*has_bits)[0] |= 16777216u;
  209. }
  210. static void set_has_mat_r22(HasBits* has_bits) {
  211. (*has_bits)[0] |= 33554432u;
  212. }
  213. static void set_has_mat_r23(HasBits* has_bits) {
  214. (*has_bits)[0] |= 67108864u;
  215. }
  216. static void set_has_axis_x_theta(HasBits* has_bits) {
  217. (*has_bits)[0] |= 32u;
  218. }
  219. static void set_has_axis_y_theta(HasBits* has_bits) {
  220. (*has_bits)[0] |= 64u;
  221. }
  222. static void set_has_axis_z_theta(HasBits* has_bits) {
  223. (*has_bits)[0] |= 128u;
  224. }
  225. static void set_has_translation_x(HasBits* has_bits) {
  226. (*has_bits)[0] |= 256u;
  227. }
  228. static void set_has_translation_y(HasBits* has_bits) {
  229. (*has_bits)[0] |= 512u;
  230. }
  231. static void set_has_translation_z(HasBits* has_bits) {
  232. (*has_bits)[0] |= 1024u;
  233. }
  234. static void set_has_install_angle(HasBits* has_bits) {
  235. (*has_bits)[0] |= 2048u;
  236. }
  237. static void set_has_scan_direction(HasBits* has_bits) {
  238. (*has_bits)[0] |= 8192u;
  239. }
  240. static void set_has_sn(HasBits* has_bits) {
  241. (*has_bits)[0] |= 2u;
  242. }
  243. static void set_has_frame_num(HasBits* has_bits) {
  244. (*has_bits)[0] |= 134217728u;
  245. }
  246. static void set_has_type(HasBits* has_bits) {
  247. (*has_bits)[0] |= 4u;
  248. }
  249. static void set_has_is_save_banary(HasBits* has_bits) {
  250. (*has_bits)[0] |= 4096u;
  251. }
  252. static void set_has_is_save_txt(HasBits* has_bits) {
  253. (*has_bits)[0] |= 16384u;
  254. }
  255. };
  256. laser_parameter::laser_parameter(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  257. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  258. SharedCtor();
  259. RegisterArenaDtor(arena);
  260. // @@protoc_insertion_point(arena_constructor:Laser_proto.laser_parameter)
  261. }
  262. laser_parameter::laser_parameter(const laser_parameter& from)
  263. : ::PROTOBUF_NAMESPACE_ID::Message(),
  264. _has_bits_(from._has_bits_) {
  265. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  266. laser_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  267. if (from._internal_has_laser_ip()) {
  268. laser_ip_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_laser_ip(),
  269. GetArena());
  270. }
  271. sn_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  272. if (from._internal_has_sn()) {
  273. sn_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_sn(),
  274. GetArena());
  275. }
  276. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  277. if (from._internal_has_type()) {
  278. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_type(),
  279. GetArena());
  280. }
  281. ::memcpy(&laser_port_, &from.laser_port_,
  282. static_cast<size_t>(reinterpret_cast<char*>(&frame_num_) -
  283. reinterpret_cast<char*>(&laser_port_)) + sizeof(frame_num_));
  284. // @@protoc_insertion_point(copy_constructor:Laser_proto.laser_parameter)
  285. }
  286. void laser_parameter::SharedCtor() {
  287. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_laser_parameter_laser_5fparameter_2eproto.base);
  288. laser_ip_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  289. sn_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  290. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  291. ::memset(&laser_port_, 0, static_cast<size_t>(
  292. reinterpret_cast<char*>(&is_save_banary_) -
  293. reinterpret_cast<char*>(&laser_port_)) + sizeof(is_save_banary_));
  294. scan_direction_ = true;
  295. is_save_txt_ = true;
  296. mat_r00_ = 1;
  297. mat_r01_ = 1;
  298. mat_r02_ = 1;
  299. mat_r03_ = 1;
  300. mat_r10_ = 1;
  301. mat_r11_ = 1;
  302. mat_r12_ = 1;
  303. mat_r13_ = 1;
  304. mat_r20_ = 1;
  305. mat_r21_ = 1;
  306. mat_r22_ = 1;
  307. mat_r23_ = 1;
  308. frame_num_ = PROTOBUF_LONGLONG(3000);
  309. }
  310. laser_parameter::~laser_parameter() {
  311. // @@protoc_insertion_point(destructor:Laser_proto.laser_parameter)
  312. SharedDtor();
  313. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  314. }
  315. void laser_parameter::SharedDtor() {
  316. GOOGLE_DCHECK(GetArena() == nullptr);
  317. laser_ip_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  318. sn_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  319. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  320. }
  321. void laser_parameter::ArenaDtor(void* object) {
  322. laser_parameter* _this = reinterpret_cast< laser_parameter* >(object);
  323. (void)_this;
  324. }
  325. void laser_parameter::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  326. }
  327. void laser_parameter::SetCachedSize(int size) const {
  328. _cached_size_.Set(size);
  329. }
  330. const laser_parameter& laser_parameter::default_instance() {
  331. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_laser_parameter_laser_5fparameter_2eproto.base);
  332. return *internal_default_instance();
  333. }
  334. void laser_parameter::Clear() {
  335. // @@protoc_insertion_point(message_clear_start:Laser_proto.laser_parameter)
  336. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  337. // Prevent compiler warnings about cached_has_bits being unused
  338. (void) cached_has_bits;
  339. cached_has_bits = _has_bits_[0];
  340. if (cached_has_bits & 0x00000007u) {
  341. if (cached_has_bits & 0x00000001u) {
  342. laser_ip_.ClearNonDefaultToEmpty();
  343. }
  344. if (cached_has_bits & 0x00000002u) {
  345. sn_.ClearNonDefaultToEmpty();
  346. }
  347. if (cached_has_bits & 0x00000004u) {
  348. type_.ClearNonDefaultToEmpty();
  349. }
  350. }
  351. if (cached_has_bits & 0x000000f8u) {
  352. ::memset(&laser_port_, 0, static_cast<size_t>(
  353. reinterpret_cast<char*>(&axis_z_theta_) -
  354. reinterpret_cast<char*>(&laser_port_)) + sizeof(axis_z_theta_));
  355. }
  356. if (cached_has_bits & 0x0000ff00u) {
  357. ::memset(&translation_x_, 0, static_cast<size_t>(
  358. reinterpret_cast<char*>(&is_save_banary_) -
  359. reinterpret_cast<char*>(&translation_x_)) + sizeof(is_save_banary_));
  360. scan_direction_ = true;
  361. is_save_txt_ = true;
  362. mat_r00_ = 1;
  363. }
  364. if (cached_has_bits & 0x00ff0000u) {
  365. mat_r01_ = 1;
  366. mat_r02_ = 1;
  367. mat_r03_ = 1;
  368. mat_r10_ = 1;
  369. mat_r11_ = 1;
  370. mat_r12_ = 1;
  371. mat_r13_ = 1;
  372. mat_r20_ = 1;
  373. }
  374. if (cached_has_bits & 0x0f000000u) {
  375. mat_r21_ = 1;
  376. mat_r22_ = 1;
  377. mat_r23_ = 1;
  378. frame_num_ = PROTOBUF_LONGLONG(3000);
  379. }
  380. _has_bits_.Clear();
  381. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  382. }
  383. const char* laser_parameter::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  384. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  385. _Internal::HasBits has_bits{};
  386. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  387. while (!ctx->Done(&ptr)) {
  388. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  389. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  390. CHK_(ptr);
  391. switch (tag >> 3) {
  392. // optional string laser_ip = 1;
  393. case 1:
  394. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  395. auto str = _internal_mutable_laser_ip();
  396. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  397. #ifndef NDEBUG
  398. ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Laser_proto.laser_parameter.laser_ip");
  399. #endif // !NDEBUG
  400. CHK_(ptr);
  401. } else goto handle_unusual;
  402. continue;
  403. // optional int64 laser_port = 2;
  404. case 2:
  405. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
  406. _Internal::set_has_laser_port(&has_bits);
  407. laser_port_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  408. CHK_(ptr);
  409. } else goto handle_unusual;
  410. continue;
  411. // optional int64 laser_port_remote = 3;
  412. case 3:
  413. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
  414. _Internal::set_has_laser_port_remote(&has_bits);
  415. laser_port_remote_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  416. CHK_(ptr);
  417. } else goto handle_unusual;
  418. continue;
  419. // optional double mat_r00 = 4 [default = 1];
  420. case 4:
  421. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 33)) {
  422. _Internal::set_has_mat_r00(&has_bits);
  423. mat_r00_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  424. ptr += sizeof(double);
  425. } else goto handle_unusual;
  426. continue;
  427. // optional double mat_r01 = 5 [default = 1];
  428. case 5:
  429. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 41)) {
  430. _Internal::set_has_mat_r01(&has_bits);
  431. mat_r01_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  432. ptr += sizeof(double);
  433. } else goto handle_unusual;
  434. continue;
  435. // optional double mat_r02 = 6 [default = 1];
  436. case 6:
  437. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 49)) {
  438. _Internal::set_has_mat_r02(&has_bits);
  439. mat_r02_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  440. ptr += sizeof(double);
  441. } else goto handle_unusual;
  442. continue;
  443. // optional double mat_r03 = 7 [default = 1];
  444. case 7:
  445. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 57)) {
  446. _Internal::set_has_mat_r03(&has_bits);
  447. mat_r03_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  448. ptr += sizeof(double);
  449. } else goto handle_unusual;
  450. continue;
  451. // optional double mat_r10 = 8 [default = 1];
  452. case 8:
  453. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 65)) {
  454. _Internal::set_has_mat_r10(&has_bits);
  455. mat_r10_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  456. ptr += sizeof(double);
  457. } else goto handle_unusual;
  458. continue;
  459. // optional double mat_r11 = 9 [default = 1];
  460. case 9:
  461. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 73)) {
  462. _Internal::set_has_mat_r11(&has_bits);
  463. mat_r11_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  464. ptr += sizeof(double);
  465. } else goto handle_unusual;
  466. continue;
  467. // optional double mat_r12 = 10 [default = 1];
  468. case 10:
  469. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 81)) {
  470. _Internal::set_has_mat_r12(&has_bits);
  471. mat_r12_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  472. ptr += sizeof(double);
  473. } else goto handle_unusual;
  474. continue;
  475. // optional double mat_r13 = 11 [default = 1];
  476. case 11:
  477. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 89)) {
  478. _Internal::set_has_mat_r13(&has_bits);
  479. mat_r13_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  480. ptr += sizeof(double);
  481. } else goto handle_unusual;
  482. continue;
  483. // optional double mat_r20 = 12 [default = 1];
  484. case 12:
  485. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 97)) {
  486. _Internal::set_has_mat_r20(&has_bits);
  487. mat_r20_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  488. ptr += sizeof(double);
  489. } else goto handle_unusual;
  490. continue;
  491. // optional double mat_r21 = 13 [default = 1];
  492. case 13:
  493. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 105)) {
  494. _Internal::set_has_mat_r21(&has_bits);
  495. mat_r21_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  496. ptr += sizeof(double);
  497. } else goto handle_unusual;
  498. continue;
  499. // optional double mat_r22 = 14 [default = 1];
  500. case 14:
  501. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 113)) {
  502. _Internal::set_has_mat_r22(&has_bits);
  503. mat_r22_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  504. ptr += sizeof(double);
  505. } else goto handle_unusual;
  506. continue;
  507. // optional double mat_r23 = 15 [default = 1];
  508. case 15:
  509. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 121)) {
  510. _Internal::set_has_mat_r23(&has_bits);
  511. mat_r23_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  512. ptr += sizeof(double);
  513. } else goto handle_unusual;
  514. continue;
  515. // optional double axis_x_theta = 16;
  516. case 16:
  517. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 129)) {
  518. _Internal::set_has_axis_x_theta(&has_bits);
  519. axis_x_theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  520. ptr += sizeof(double);
  521. } else goto handle_unusual;
  522. continue;
  523. // optional double axis_y_theta = 17;
  524. case 17:
  525. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 137)) {
  526. _Internal::set_has_axis_y_theta(&has_bits);
  527. axis_y_theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  528. ptr += sizeof(double);
  529. } else goto handle_unusual;
  530. continue;
  531. // optional double axis_z_theta = 18;
  532. case 18:
  533. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 145)) {
  534. _Internal::set_has_axis_z_theta(&has_bits);
  535. axis_z_theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  536. ptr += sizeof(double);
  537. } else goto handle_unusual;
  538. continue;
  539. // optional double translation_x = 19;
  540. case 19:
  541. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 153)) {
  542. _Internal::set_has_translation_x(&has_bits);
  543. translation_x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  544. ptr += sizeof(double);
  545. } else goto handle_unusual;
  546. continue;
  547. // optional double translation_y = 20;
  548. case 20:
  549. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 161)) {
  550. _Internal::set_has_translation_y(&has_bits);
  551. translation_y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  552. ptr += sizeof(double);
  553. } else goto handle_unusual;
  554. continue;
  555. // optional double translation_z = 21;
  556. case 21:
  557. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 169)) {
  558. _Internal::set_has_translation_z(&has_bits);
  559. translation_z_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  560. ptr += sizeof(double);
  561. } else goto handle_unusual;
  562. continue;
  563. // optional double install_angle = 22 [default = 0];
  564. case 22:
  565. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 177)) {
  566. _Internal::set_has_install_angle(&has_bits);
  567. install_angle_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
  568. ptr += sizeof(double);
  569. } else goto handle_unusual;
  570. continue;
  571. // optional bool scan_direction = 23 [default = true];
  572. case 23:
  573. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 184)) {
  574. _Internal::set_has_scan_direction(&has_bits);
  575. scan_direction_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  576. CHK_(ptr);
  577. } else goto handle_unusual;
  578. continue;
  579. // optional string sn = 24;
  580. case 24:
  581. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 194)) {
  582. auto str = _internal_mutable_sn();
  583. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  584. #ifndef NDEBUG
  585. ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Laser_proto.laser_parameter.sn");
  586. #endif // !NDEBUG
  587. CHK_(ptr);
  588. } else goto handle_unusual;
  589. continue;
  590. // optional int64 frame_num = 25 [default = 3000];
  591. case 25:
  592. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 200)) {
  593. _Internal::set_has_frame_num(&has_bits);
  594. frame_num_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  595. CHK_(ptr);
  596. } else goto handle_unusual;
  597. continue;
  598. // optional string type = 26 [default = ""];
  599. case 26:
  600. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 210)) {
  601. auto str = _internal_mutable_type();
  602. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  603. #ifndef NDEBUG
  604. ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "Laser_proto.laser_parameter.type");
  605. #endif // !NDEBUG
  606. CHK_(ptr);
  607. } else goto handle_unusual;
  608. continue;
  609. // optional bool is_save_banary = 27 [default = false];
  610. case 27:
  611. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 216)) {
  612. _Internal::set_has_is_save_banary(&has_bits);
  613. is_save_banary_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  614. CHK_(ptr);
  615. } else goto handle_unusual;
  616. continue;
  617. // optional bool is_save_txt = 28 [default = true];
  618. case 28:
  619. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 224)) {
  620. _Internal::set_has_is_save_txt(&has_bits);
  621. is_save_txt_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  622. CHK_(ptr);
  623. } else goto handle_unusual;
  624. continue;
  625. default: {
  626. handle_unusual:
  627. if ((tag & 7) == 4 || tag == 0) {
  628. ctx->SetLastTag(tag);
  629. goto success;
  630. }
  631. ptr = UnknownFieldParse(tag,
  632. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  633. ptr, ctx);
  634. CHK_(ptr != nullptr);
  635. continue;
  636. }
  637. } // switch
  638. } // while
  639. success:
  640. _has_bits_.Or(has_bits);
  641. return ptr;
  642. failure:
  643. ptr = nullptr;
  644. goto success;
  645. #undef CHK_
  646. }
  647. ::PROTOBUF_NAMESPACE_ID::uint8* laser_parameter::_InternalSerialize(
  648. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  649. // @@protoc_insertion_point(serialize_to_array_start:Laser_proto.laser_parameter)
  650. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  651. (void) cached_has_bits;
  652. cached_has_bits = _has_bits_[0];
  653. // optional string laser_ip = 1;
  654. if (cached_has_bits & 0x00000001u) {
  655. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  656. this->_internal_laser_ip().data(), static_cast<int>(this->_internal_laser_ip().length()),
  657. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  658. "Laser_proto.laser_parameter.laser_ip");
  659. target = stream->WriteStringMaybeAliased(
  660. 1, this->_internal_laser_ip(), target);
  661. }
  662. // optional int64 laser_port = 2;
  663. if (cached_has_bits & 0x00000008u) {
  664. target = stream->EnsureSpace(target);
  665. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(2, this->_internal_laser_port(), target);
  666. }
  667. // optional int64 laser_port_remote = 3;
  668. if (cached_has_bits & 0x00000010u) {
  669. target = stream->EnsureSpace(target);
  670. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->_internal_laser_port_remote(), target);
  671. }
  672. // optional double mat_r00 = 4 [default = 1];
  673. if (cached_has_bits & 0x00008000u) {
  674. target = stream->EnsureSpace(target);
  675. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(4, this->_internal_mat_r00(), target);
  676. }
  677. // optional double mat_r01 = 5 [default = 1];
  678. if (cached_has_bits & 0x00010000u) {
  679. target = stream->EnsureSpace(target);
  680. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(5, this->_internal_mat_r01(), target);
  681. }
  682. // optional double mat_r02 = 6 [default = 1];
  683. if (cached_has_bits & 0x00020000u) {
  684. target = stream->EnsureSpace(target);
  685. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(6, this->_internal_mat_r02(), target);
  686. }
  687. // optional double mat_r03 = 7 [default = 1];
  688. if (cached_has_bits & 0x00040000u) {
  689. target = stream->EnsureSpace(target);
  690. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(7, this->_internal_mat_r03(), target);
  691. }
  692. // optional double mat_r10 = 8 [default = 1];
  693. if (cached_has_bits & 0x00080000u) {
  694. target = stream->EnsureSpace(target);
  695. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(8, this->_internal_mat_r10(), target);
  696. }
  697. // optional double mat_r11 = 9 [default = 1];
  698. if (cached_has_bits & 0x00100000u) {
  699. target = stream->EnsureSpace(target);
  700. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(9, this->_internal_mat_r11(), target);
  701. }
  702. // optional double mat_r12 = 10 [default = 1];
  703. if (cached_has_bits & 0x00200000u) {
  704. target = stream->EnsureSpace(target);
  705. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(10, this->_internal_mat_r12(), target);
  706. }
  707. // optional double mat_r13 = 11 [default = 1];
  708. if (cached_has_bits & 0x00400000u) {
  709. target = stream->EnsureSpace(target);
  710. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(11, this->_internal_mat_r13(), target);
  711. }
  712. // optional double mat_r20 = 12 [default = 1];
  713. if (cached_has_bits & 0x00800000u) {
  714. target = stream->EnsureSpace(target);
  715. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(12, this->_internal_mat_r20(), target);
  716. }
  717. // optional double mat_r21 = 13 [default = 1];
  718. if (cached_has_bits & 0x01000000u) {
  719. target = stream->EnsureSpace(target);
  720. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(13, this->_internal_mat_r21(), target);
  721. }
  722. // optional double mat_r22 = 14 [default = 1];
  723. if (cached_has_bits & 0x02000000u) {
  724. target = stream->EnsureSpace(target);
  725. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(14, this->_internal_mat_r22(), target);
  726. }
  727. // optional double mat_r23 = 15 [default = 1];
  728. if (cached_has_bits & 0x04000000u) {
  729. target = stream->EnsureSpace(target);
  730. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(15, this->_internal_mat_r23(), target);
  731. }
  732. // optional double axis_x_theta = 16;
  733. if (cached_has_bits & 0x00000020u) {
  734. target = stream->EnsureSpace(target);
  735. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(16, this->_internal_axis_x_theta(), target);
  736. }
  737. // optional double axis_y_theta = 17;
  738. if (cached_has_bits & 0x00000040u) {
  739. target = stream->EnsureSpace(target);
  740. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(17, this->_internal_axis_y_theta(), target);
  741. }
  742. // optional double axis_z_theta = 18;
  743. if (cached_has_bits & 0x00000080u) {
  744. target = stream->EnsureSpace(target);
  745. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(18, this->_internal_axis_z_theta(), target);
  746. }
  747. // optional double translation_x = 19;
  748. if (cached_has_bits & 0x00000100u) {
  749. target = stream->EnsureSpace(target);
  750. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(19, this->_internal_translation_x(), target);
  751. }
  752. // optional double translation_y = 20;
  753. if (cached_has_bits & 0x00000200u) {
  754. target = stream->EnsureSpace(target);
  755. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(20, this->_internal_translation_y(), target);
  756. }
  757. // optional double translation_z = 21;
  758. if (cached_has_bits & 0x00000400u) {
  759. target = stream->EnsureSpace(target);
  760. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(21, this->_internal_translation_z(), target);
  761. }
  762. // optional double install_angle = 22 [default = 0];
  763. if (cached_has_bits & 0x00000800u) {
  764. target = stream->EnsureSpace(target);
  765. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteDoubleToArray(22, this->_internal_install_angle(), target);
  766. }
  767. // optional bool scan_direction = 23 [default = true];
  768. if (cached_has_bits & 0x00002000u) {
  769. target = stream->EnsureSpace(target);
  770. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(23, this->_internal_scan_direction(), target);
  771. }
  772. // optional string sn = 24;
  773. if (cached_has_bits & 0x00000002u) {
  774. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  775. this->_internal_sn().data(), static_cast<int>(this->_internal_sn().length()),
  776. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  777. "Laser_proto.laser_parameter.sn");
  778. target = stream->WriteStringMaybeAliased(
  779. 24, this->_internal_sn(), target);
  780. }
  781. // optional int64 frame_num = 25 [default = 3000];
  782. if (cached_has_bits & 0x08000000u) {
  783. target = stream->EnsureSpace(target);
  784. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(25, this->_internal_frame_num(), target);
  785. }
  786. // optional string type = 26 [default = ""];
  787. if (cached_has_bits & 0x00000004u) {
  788. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
  789. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  790. ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
  791. "Laser_proto.laser_parameter.type");
  792. target = stream->WriteStringMaybeAliased(
  793. 26, this->_internal_type(), target);
  794. }
  795. // optional bool is_save_banary = 27 [default = false];
  796. if (cached_has_bits & 0x00001000u) {
  797. target = stream->EnsureSpace(target);
  798. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(27, this->_internal_is_save_banary(), target);
  799. }
  800. // optional bool is_save_txt = 28 [default = true];
  801. if (cached_has_bits & 0x00004000u) {
  802. target = stream->EnsureSpace(target);
  803. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(28, this->_internal_is_save_txt(), target);
  804. }
  805. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  806. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  807. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  808. }
  809. // @@protoc_insertion_point(serialize_to_array_end:Laser_proto.laser_parameter)
  810. return target;
  811. }
  812. size_t laser_parameter::ByteSizeLong() const {
  813. // @@protoc_insertion_point(message_byte_size_start:Laser_proto.laser_parameter)
  814. size_t total_size = 0;
  815. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  816. // Prevent compiler warnings about cached_has_bits being unused
  817. (void) cached_has_bits;
  818. cached_has_bits = _has_bits_[0];
  819. if (cached_has_bits & 0x000000ffu) {
  820. // optional string laser_ip = 1;
  821. if (cached_has_bits & 0x00000001u) {
  822. total_size += 1 +
  823. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  824. this->_internal_laser_ip());
  825. }
  826. // optional string sn = 24;
  827. if (cached_has_bits & 0x00000002u) {
  828. total_size += 2 +
  829. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  830. this->_internal_sn());
  831. }
  832. // optional string type = 26 [default = ""];
  833. if (cached_has_bits & 0x00000004u) {
  834. total_size += 2 +
  835. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  836. this->_internal_type());
  837. }
  838. // optional int64 laser_port = 2;
  839. if (cached_has_bits & 0x00000008u) {
  840. total_size += 1 +
  841. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
  842. this->_internal_laser_port());
  843. }
  844. // optional int64 laser_port_remote = 3;
  845. if (cached_has_bits & 0x00000010u) {
  846. total_size += 1 +
  847. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
  848. this->_internal_laser_port_remote());
  849. }
  850. // optional double axis_x_theta = 16;
  851. if (cached_has_bits & 0x00000020u) {
  852. total_size += 2 + 8;
  853. }
  854. // optional double axis_y_theta = 17;
  855. if (cached_has_bits & 0x00000040u) {
  856. total_size += 2 + 8;
  857. }
  858. // optional double axis_z_theta = 18;
  859. if (cached_has_bits & 0x00000080u) {
  860. total_size += 2 + 8;
  861. }
  862. }
  863. if (cached_has_bits & 0x0000ff00u) {
  864. // optional double translation_x = 19;
  865. if (cached_has_bits & 0x00000100u) {
  866. total_size += 2 + 8;
  867. }
  868. // optional double translation_y = 20;
  869. if (cached_has_bits & 0x00000200u) {
  870. total_size += 2 + 8;
  871. }
  872. // optional double translation_z = 21;
  873. if (cached_has_bits & 0x00000400u) {
  874. total_size += 2 + 8;
  875. }
  876. // optional double install_angle = 22 [default = 0];
  877. if (cached_has_bits & 0x00000800u) {
  878. total_size += 2 + 8;
  879. }
  880. // optional bool is_save_banary = 27 [default = false];
  881. if (cached_has_bits & 0x00001000u) {
  882. total_size += 2 + 1;
  883. }
  884. // optional bool scan_direction = 23 [default = true];
  885. if (cached_has_bits & 0x00002000u) {
  886. total_size += 2 + 1;
  887. }
  888. // optional bool is_save_txt = 28 [default = true];
  889. if (cached_has_bits & 0x00004000u) {
  890. total_size += 2 + 1;
  891. }
  892. // optional double mat_r00 = 4 [default = 1];
  893. if (cached_has_bits & 0x00008000u) {
  894. total_size += 1 + 8;
  895. }
  896. }
  897. if (cached_has_bits & 0x00ff0000u) {
  898. // optional double mat_r01 = 5 [default = 1];
  899. if (cached_has_bits & 0x00010000u) {
  900. total_size += 1 + 8;
  901. }
  902. // optional double mat_r02 = 6 [default = 1];
  903. if (cached_has_bits & 0x00020000u) {
  904. total_size += 1 + 8;
  905. }
  906. // optional double mat_r03 = 7 [default = 1];
  907. if (cached_has_bits & 0x00040000u) {
  908. total_size += 1 + 8;
  909. }
  910. // optional double mat_r10 = 8 [default = 1];
  911. if (cached_has_bits & 0x00080000u) {
  912. total_size += 1 + 8;
  913. }
  914. // optional double mat_r11 = 9 [default = 1];
  915. if (cached_has_bits & 0x00100000u) {
  916. total_size += 1 + 8;
  917. }
  918. // optional double mat_r12 = 10 [default = 1];
  919. if (cached_has_bits & 0x00200000u) {
  920. total_size += 1 + 8;
  921. }
  922. // optional double mat_r13 = 11 [default = 1];
  923. if (cached_has_bits & 0x00400000u) {
  924. total_size += 1 + 8;
  925. }
  926. // optional double mat_r20 = 12 [default = 1];
  927. if (cached_has_bits & 0x00800000u) {
  928. total_size += 1 + 8;
  929. }
  930. }
  931. if (cached_has_bits & 0x0f000000u) {
  932. // optional double mat_r21 = 13 [default = 1];
  933. if (cached_has_bits & 0x01000000u) {
  934. total_size += 1 + 8;
  935. }
  936. // optional double mat_r22 = 14 [default = 1];
  937. if (cached_has_bits & 0x02000000u) {
  938. total_size += 1 + 8;
  939. }
  940. // optional double mat_r23 = 15 [default = 1];
  941. if (cached_has_bits & 0x04000000u) {
  942. total_size += 1 + 8;
  943. }
  944. // optional int64 frame_num = 25 [default = 3000];
  945. if (cached_has_bits & 0x08000000u) {
  946. total_size += 2 +
  947. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size(
  948. this->_internal_frame_num());
  949. }
  950. }
  951. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  952. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  953. _internal_metadata_, total_size, &_cached_size_);
  954. }
  955. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  956. SetCachedSize(cached_size);
  957. return total_size;
  958. }
  959. void laser_parameter::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  960. // @@protoc_insertion_point(generalized_merge_from_start:Laser_proto.laser_parameter)
  961. GOOGLE_DCHECK_NE(&from, this);
  962. const laser_parameter* source =
  963. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<laser_parameter>(
  964. &from);
  965. if (source == nullptr) {
  966. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Laser_proto.laser_parameter)
  967. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  968. } else {
  969. // @@protoc_insertion_point(generalized_merge_from_cast_success:Laser_proto.laser_parameter)
  970. MergeFrom(*source);
  971. }
  972. }
  973. void laser_parameter::MergeFrom(const laser_parameter& from) {
  974. // @@protoc_insertion_point(class_specific_merge_from_start:Laser_proto.laser_parameter)
  975. GOOGLE_DCHECK_NE(&from, this);
  976. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  977. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  978. (void) cached_has_bits;
  979. cached_has_bits = from._has_bits_[0];
  980. if (cached_has_bits & 0x000000ffu) {
  981. if (cached_has_bits & 0x00000001u) {
  982. _internal_set_laser_ip(from._internal_laser_ip());
  983. }
  984. if (cached_has_bits & 0x00000002u) {
  985. _internal_set_sn(from._internal_sn());
  986. }
  987. if (cached_has_bits & 0x00000004u) {
  988. _internal_set_type(from._internal_type());
  989. }
  990. if (cached_has_bits & 0x00000008u) {
  991. laser_port_ = from.laser_port_;
  992. }
  993. if (cached_has_bits & 0x00000010u) {
  994. laser_port_remote_ = from.laser_port_remote_;
  995. }
  996. if (cached_has_bits & 0x00000020u) {
  997. axis_x_theta_ = from.axis_x_theta_;
  998. }
  999. if (cached_has_bits & 0x00000040u) {
  1000. axis_y_theta_ = from.axis_y_theta_;
  1001. }
  1002. if (cached_has_bits & 0x00000080u) {
  1003. axis_z_theta_ = from.axis_z_theta_;
  1004. }
  1005. _has_bits_[0] |= cached_has_bits;
  1006. }
  1007. if (cached_has_bits & 0x0000ff00u) {
  1008. if (cached_has_bits & 0x00000100u) {
  1009. translation_x_ = from.translation_x_;
  1010. }
  1011. if (cached_has_bits & 0x00000200u) {
  1012. translation_y_ = from.translation_y_;
  1013. }
  1014. if (cached_has_bits & 0x00000400u) {
  1015. translation_z_ = from.translation_z_;
  1016. }
  1017. if (cached_has_bits & 0x00000800u) {
  1018. install_angle_ = from.install_angle_;
  1019. }
  1020. if (cached_has_bits & 0x00001000u) {
  1021. is_save_banary_ = from.is_save_banary_;
  1022. }
  1023. if (cached_has_bits & 0x00002000u) {
  1024. scan_direction_ = from.scan_direction_;
  1025. }
  1026. if (cached_has_bits & 0x00004000u) {
  1027. is_save_txt_ = from.is_save_txt_;
  1028. }
  1029. if (cached_has_bits & 0x00008000u) {
  1030. mat_r00_ = from.mat_r00_;
  1031. }
  1032. _has_bits_[0] |= cached_has_bits;
  1033. }
  1034. if (cached_has_bits & 0x00ff0000u) {
  1035. if (cached_has_bits & 0x00010000u) {
  1036. mat_r01_ = from.mat_r01_;
  1037. }
  1038. if (cached_has_bits & 0x00020000u) {
  1039. mat_r02_ = from.mat_r02_;
  1040. }
  1041. if (cached_has_bits & 0x00040000u) {
  1042. mat_r03_ = from.mat_r03_;
  1043. }
  1044. if (cached_has_bits & 0x00080000u) {
  1045. mat_r10_ = from.mat_r10_;
  1046. }
  1047. if (cached_has_bits & 0x00100000u) {
  1048. mat_r11_ = from.mat_r11_;
  1049. }
  1050. if (cached_has_bits & 0x00200000u) {
  1051. mat_r12_ = from.mat_r12_;
  1052. }
  1053. if (cached_has_bits & 0x00400000u) {
  1054. mat_r13_ = from.mat_r13_;
  1055. }
  1056. if (cached_has_bits & 0x00800000u) {
  1057. mat_r20_ = from.mat_r20_;
  1058. }
  1059. _has_bits_[0] |= cached_has_bits;
  1060. }
  1061. if (cached_has_bits & 0x0f000000u) {
  1062. if (cached_has_bits & 0x01000000u) {
  1063. mat_r21_ = from.mat_r21_;
  1064. }
  1065. if (cached_has_bits & 0x02000000u) {
  1066. mat_r22_ = from.mat_r22_;
  1067. }
  1068. if (cached_has_bits & 0x04000000u) {
  1069. mat_r23_ = from.mat_r23_;
  1070. }
  1071. if (cached_has_bits & 0x08000000u) {
  1072. frame_num_ = from.frame_num_;
  1073. }
  1074. _has_bits_[0] |= cached_has_bits;
  1075. }
  1076. }
  1077. void laser_parameter::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1078. // @@protoc_insertion_point(generalized_copy_from_start:Laser_proto.laser_parameter)
  1079. if (&from == this) return;
  1080. Clear();
  1081. MergeFrom(from);
  1082. }
  1083. void laser_parameter::CopyFrom(const laser_parameter& from) {
  1084. // @@protoc_insertion_point(class_specific_copy_from_start:Laser_proto.laser_parameter)
  1085. if (&from == this) return;
  1086. Clear();
  1087. MergeFrom(from);
  1088. }
  1089. bool laser_parameter::IsInitialized() const {
  1090. return true;
  1091. }
  1092. void laser_parameter::InternalSwap(laser_parameter* other) {
  1093. using std::swap;
  1094. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  1095. swap(_has_bits_[0], other->_has_bits_[0]);
  1096. laser_ip_.Swap(&other->laser_ip_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1097. sn_.Swap(&other->sn_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1098. type_.Swap(&other->type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1099. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1100. PROTOBUF_FIELD_OFFSET(laser_parameter, is_save_banary_)
  1101. + sizeof(laser_parameter::is_save_banary_)
  1102. - PROTOBUF_FIELD_OFFSET(laser_parameter, laser_port_)>(
  1103. reinterpret_cast<char*>(&laser_port_),
  1104. reinterpret_cast<char*>(&other->laser_port_));
  1105. swap(scan_direction_, other->scan_direction_);
  1106. swap(is_save_txt_, other->is_save_txt_);
  1107. swap(mat_r00_, other->mat_r00_);
  1108. swap(mat_r01_, other->mat_r01_);
  1109. swap(mat_r02_, other->mat_r02_);
  1110. swap(mat_r03_, other->mat_r03_);
  1111. swap(mat_r10_, other->mat_r10_);
  1112. swap(mat_r11_, other->mat_r11_);
  1113. swap(mat_r12_, other->mat_r12_);
  1114. swap(mat_r13_, other->mat_r13_);
  1115. swap(mat_r20_, other->mat_r20_);
  1116. swap(mat_r21_, other->mat_r21_);
  1117. swap(mat_r22_, other->mat_r22_);
  1118. swap(mat_r23_, other->mat_r23_);
  1119. swap(frame_num_, other->frame_num_);
  1120. }
  1121. ::PROTOBUF_NAMESPACE_ID::Metadata laser_parameter::GetMetadata() const {
  1122. return GetMetadataStatic();
  1123. }
  1124. // ===================================================================
  1125. void Laser_parameter_all::InitAsDefaultInstance() {
  1126. }
  1127. class Laser_parameter_all::_Internal {
  1128. public:
  1129. };
  1130. Laser_parameter_all::Laser_parameter_all(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1131. : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  1132. laser_parameters_(arena) {
  1133. SharedCtor();
  1134. RegisterArenaDtor(arena);
  1135. // @@protoc_insertion_point(arena_constructor:Laser_proto.Laser_parameter_all)
  1136. }
  1137. Laser_parameter_all::Laser_parameter_all(const Laser_parameter_all& from)
  1138. : ::PROTOBUF_NAMESPACE_ID::Message(),
  1139. laser_parameters_(from.laser_parameters_) {
  1140. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1141. // @@protoc_insertion_point(copy_constructor:Laser_proto.Laser_parameter_all)
  1142. }
  1143. void Laser_parameter_all::SharedCtor() {
  1144. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_Laser_parameter_all_laser_5fparameter_2eproto.base);
  1145. }
  1146. Laser_parameter_all::~Laser_parameter_all() {
  1147. // @@protoc_insertion_point(destructor:Laser_proto.Laser_parameter_all)
  1148. SharedDtor();
  1149. _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1150. }
  1151. void Laser_parameter_all::SharedDtor() {
  1152. GOOGLE_DCHECK(GetArena() == nullptr);
  1153. }
  1154. void Laser_parameter_all::ArenaDtor(void* object) {
  1155. Laser_parameter_all* _this = reinterpret_cast< Laser_parameter_all* >(object);
  1156. (void)_this;
  1157. }
  1158. void Laser_parameter_all::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  1159. }
  1160. void Laser_parameter_all::SetCachedSize(int size) const {
  1161. _cached_size_.Set(size);
  1162. }
  1163. const Laser_parameter_all& Laser_parameter_all::default_instance() {
  1164. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_Laser_parameter_all_laser_5fparameter_2eproto.base);
  1165. return *internal_default_instance();
  1166. }
  1167. void Laser_parameter_all::Clear() {
  1168. // @@protoc_insertion_point(message_clear_start:Laser_proto.Laser_parameter_all)
  1169. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1170. // Prevent compiler warnings about cached_has_bits being unused
  1171. (void) cached_has_bits;
  1172. laser_parameters_.Clear();
  1173. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1174. }
  1175. const char* Laser_parameter_all::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  1176. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1177. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  1178. while (!ctx->Done(&ptr)) {
  1179. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  1180. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  1181. CHK_(ptr);
  1182. switch (tag >> 3) {
  1183. // repeated .Laser_proto.laser_parameter laser_parameters = 1;
  1184. case 1:
  1185. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  1186. ptr -= 1;
  1187. do {
  1188. ptr += 1;
  1189. ptr = ctx->ParseMessage(_internal_add_laser_parameters(), ptr);
  1190. CHK_(ptr);
  1191. if (!ctx->DataAvailable(ptr)) break;
  1192. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  1193. } else goto handle_unusual;
  1194. continue;
  1195. default: {
  1196. handle_unusual:
  1197. if ((tag & 7) == 4 || tag == 0) {
  1198. ctx->SetLastTag(tag);
  1199. goto success;
  1200. }
  1201. ptr = UnknownFieldParse(tag,
  1202. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1203. ptr, ctx);
  1204. CHK_(ptr != nullptr);
  1205. continue;
  1206. }
  1207. } // switch
  1208. } // while
  1209. success:
  1210. return ptr;
  1211. failure:
  1212. ptr = nullptr;
  1213. goto success;
  1214. #undef CHK_
  1215. }
  1216. ::PROTOBUF_NAMESPACE_ID::uint8* Laser_parameter_all::_InternalSerialize(
  1217. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1218. // @@protoc_insertion_point(serialize_to_array_start:Laser_proto.Laser_parameter_all)
  1219. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1220. (void) cached_has_bits;
  1221. // repeated .Laser_proto.laser_parameter laser_parameters = 1;
  1222. for (unsigned int i = 0,
  1223. n = static_cast<unsigned int>(this->_internal_laser_parameters_size()); i < n; i++) {
  1224. target = stream->EnsureSpace(target);
  1225. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  1226. InternalWriteMessage(1, this->_internal_laser_parameters(i), target, stream);
  1227. }
  1228. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1229. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  1230. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1231. }
  1232. // @@protoc_insertion_point(serialize_to_array_end:Laser_proto.Laser_parameter_all)
  1233. return target;
  1234. }
  1235. size_t Laser_parameter_all::ByteSizeLong() const {
  1236. // @@protoc_insertion_point(message_byte_size_start:Laser_proto.Laser_parameter_all)
  1237. size_t total_size = 0;
  1238. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1239. // Prevent compiler warnings about cached_has_bits being unused
  1240. (void) cached_has_bits;
  1241. // repeated .Laser_proto.laser_parameter laser_parameters = 1;
  1242. total_size += 1UL * this->_internal_laser_parameters_size();
  1243. for (const auto& msg : this->laser_parameters_) {
  1244. total_size +=
  1245. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  1246. }
  1247. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1248. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  1249. _internal_metadata_, total_size, &_cached_size_);
  1250. }
  1251. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  1252. SetCachedSize(cached_size);
  1253. return total_size;
  1254. }
  1255. void Laser_parameter_all::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1256. // @@protoc_insertion_point(generalized_merge_from_start:Laser_proto.Laser_parameter_all)
  1257. GOOGLE_DCHECK_NE(&from, this);
  1258. const Laser_parameter_all* source =
  1259. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<Laser_parameter_all>(
  1260. &from);
  1261. if (source == nullptr) {
  1262. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Laser_proto.Laser_parameter_all)
  1263. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  1264. } else {
  1265. // @@protoc_insertion_point(generalized_merge_from_cast_success:Laser_proto.Laser_parameter_all)
  1266. MergeFrom(*source);
  1267. }
  1268. }
  1269. void Laser_parameter_all::MergeFrom(const Laser_parameter_all& from) {
  1270. // @@protoc_insertion_point(class_specific_merge_from_start:Laser_proto.Laser_parameter_all)
  1271. GOOGLE_DCHECK_NE(&from, this);
  1272. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1273. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  1274. (void) cached_has_bits;
  1275. laser_parameters_.MergeFrom(from.laser_parameters_);
  1276. }
  1277. void Laser_parameter_all::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  1278. // @@protoc_insertion_point(generalized_copy_from_start:Laser_proto.Laser_parameter_all)
  1279. if (&from == this) return;
  1280. Clear();
  1281. MergeFrom(from);
  1282. }
  1283. void Laser_parameter_all::CopyFrom(const Laser_parameter_all& from) {
  1284. // @@protoc_insertion_point(class_specific_copy_from_start:Laser_proto.Laser_parameter_all)
  1285. if (&from == this) return;
  1286. Clear();
  1287. MergeFrom(from);
  1288. }
  1289. bool Laser_parameter_all::IsInitialized() const {
  1290. return true;
  1291. }
  1292. void Laser_parameter_all::InternalSwap(Laser_parameter_all* other) {
  1293. using std::swap;
  1294. _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  1295. laser_parameters_.InternalSwap(&other->laser_parameters_);
  1296. }
  1297. ::PROTOBUF_NAMESPACE_ID::Metadata Laser_parameter_all::GetMetadata() const {
  1298. return GetMetadataStatic();
  1299. }
  1300. // @@protoc_insertion_point(namespace_scope)
  1301. } // namespace Laser_proto
  1302. PROTOBUF_NAMESPACE_OPEN
  1303. template<> PROTOBUF_NOINLINE ::Laser_proto::laser_parameter* Arena::CreateMaybeMessage< ::Laser_proto::laser_parameter >(Arena* arena) {
  1304. return Arena::CreateMessageInternal< ::Laser_proto::laser_parameter >(arena);
  1305. }
  1306. template<> PROTOBUF_NOINLINE ::Laser_proto::Laser_parameter_all* Arena::CreateMaybeMessage< ::Laser_proto::Laser_parameter_all >(Arena* arena) {
  1307. return Arena::CreateMessageInternal< ::Laser_proto::Laser_parameter_all >(arena);
  1308. }
  1309. PROTOBUF_NAMESPACE_CLOSE
  1310. // @@protoc_insertion_point(global_scope)
  1311. #include <google/protobuf/port_undef.inc>