laser_parameter.pb.cc 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707
  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/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/stubs/once.h>
  8. #include <google/protobuf/io/coded_stream.h>
  9. #include <google/protobuf/wire_format_lite_inl.h>
  10. #include <google/protobuf/descriptor.h>
  11. #include <google/protobuf/generated_message_reflection.h>
  12. #include <google/protobuf/reflection_ops.h>
  13. #include <google/protobuf/wire_format.h>
  14. // This is a temporary google only hack
  15. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  16. #include "third_party/protobuf/version.h"
  17. #endif
  18. // @@protoc_insertion_point(includes)
  19. namespace Laser_proto {
  20. class laser_parameterDefaultTypeInternal {
  21. public:
  22. ::google::protobuf::internal::ExplicitlyConstructed<laser_parameter>
  23. _instance;
  24. } _laser_parameter_default_instance_;
  25. class Laser_parameter_allDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<Laser_parameter_all>
  28. _instance;
  29. } _Laser_parameter_all_default_instance_;
  30. } // namespace Laser_proto
  31. namespace protobuf_laser_5fparameter_2eproto {
  32. void InitDefaultslaser_parameterImpl() {
  33. GOOGLE_PROTOBUF_VERIFY_VERSION;
  34. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  35. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  36. #else
  37. ::google::protobuf::internal::InitProtobufDefaults();
  38. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  39. {
  40. void* ptr = &::Laser_proto::_laser_parameter_default_instance_;
  41. new (ptr) ::Laser_proto::laser_parameter();
  42. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  43. }
  44. ::Laser_proto::laser_parameter::InitAsDefaultInstance();
  45. }
  46. void InitDefaultslaser_parameter() {
  47. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  48. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultslaser_parameterImpl);
  49. }
  50. void InitDefaultsLaser_parameter_allImpl() {
  51. GOOGLE_PROTOBUF_VERIFY_VERSION;
  52. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  53. ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
  54. #else
  55. ::google::protobuf::internal::InitProtobufDefaults();
  56. #endif // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  57. protobuf_laser_5fparameter_2eproto::InitDefaultslaser_parameter();
  58. {
  59. void* ptr = &::Laser_proto::_Laser_parameter_all_default_instance_;
  60. new (ptr) ::Laser_proto::Laser_parameter_all();
  61. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  62. }
  63. ::Laser_proto::Laser_parameter_all::InitAsDefaultInstance();
  64. }
  65. void InitDefaultsLaser_parameter_all() {
  66. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  67. ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsLaser_parameter_allImpl);
  68. }
  69. ::google::protobuf::Metadata file_level_metadata[2];
  70. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  71. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, _has_bits_),
  72. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, _internal_metadata_),
  73. ~0u, // no _extensions_
  74. ~0u, // no _oneof_case_
  75. ~0u, // no _weak_field_map_
  76. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, laser_ip_),
  77. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, laser_port_),
  78. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, laser_port_remote_),
  79. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r00_),
  80. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r01_),
  81. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r02_),
  82. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r03_),
  83. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r10_),
  84. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r11_),
  85. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r12_),
  86. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r13_),
  87. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r20_),
  88. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r21_),
  89. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r22_),
  90. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, mat_r23_),
  91. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, axis_x_theta_),
  92. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, axis_y_theta_),
  93. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, axis_z_theta_),
  94. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, translation_x_),
  95. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, translation_y_),
  96. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, translation_z_),
  97. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, install_angle_),
  98. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, scan_direction_),
  99. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, sn_),
  100. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, frame_num_),
  101. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::laser_parameter, type_),
  102. 0,
  103. 3,
  104. 4,
  105. 13,
  106. 14,
  107. 15,
  108. 16,
  109. 17,
  110. 18,
  111. 19,
  112. 20,
  113. 21,
  114. 22,
  115. 23,
  116. 24,
  117. 5,
  118. 6,
  119. 7,
  120. 8,
  121. 9,
  122. 10,
  123. 11,
  124. 12,
  125. 1,
  126. 25,
  127. 2,
  128. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::Laser_parameter_all, _has_bits_),
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::Laser_parameter_all, _internal_metadata_),
  130. ~0u, // no _extensions_
  131. ~0u, // no _oneof_case_
  132. ~0u, // no _weak_field_map_
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::Laser_proto::Laser_parameter_all, laser_parameters_),
  134. ~0u,
  135. };
  136. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  137. { 0, 31, sizeof(::Laser_proto::laser_parameter)},
  138. { 57, 63, sizeof(::Laser_proto::Laser_parameter_all)},
  139. };
  140. static ::google::protobuf::Message const * const file_default_instances[] = {
  141. reinterpret_cast<const ::google::protobuf::Message*>(&::Laser_proto::_laser_parameter_default_instance_),
  142. reinterpret_cast<const ::google::protobuf::Message*>(&::Laser_proto::_Laser_parameter_all_default_instance_),
  143. };
  144. void protobuf_AssignDescriptors() {
  145. AddDescriptors();
  146. ::google::protobuf::MessageFactory* factory = NULL;
  147. AssignDescriptors(
  148. "laser_parameter.proto", schemas, file_default_instances, TableStruct::offsets, factory,
  149. file_level_metadata, NULL, NULL);
  150. }
  151. void protobuf_AssignDescriptorsOnce() {
  152. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  153. ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors);
  154. }
  155. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  156. void protobuf_RegisterTypes(const ::std::string&) {
  157. protobuf_AssignDescriptorsOnce();
  158. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 2);
  159. }
  160. void AddDescriptorsImpl() {
  161. InitDefaults();
  162. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  163. "\n\025laser_parameter.proto\022\013Laser_proto\"\266\004\n"
  164. "\017laser_parameter\022\020\n\010laser_ip\030\001 \001(\t\022\022\n\nla"
  165. "ser_port\030\002 \001(\003\022\031\n\021laser_port_remote\030\003 \001("
  166. "\003\022\022\n\007mat_r00\030\004 \001(\001:\0011\022\022\n\007mat_r01\030\005 \001(\001:\001"
  167. "1\022\022\n\007mat_r02\030\006 \001(\001:\0011\022\022\n\007mat_r03\030\007 \001(\001:\001"
  168. "1\022\022\n\007mat_r10\030\010 \001(\001:\0011\022\022\n\007mat_r11\030\t \001(\001:\001"
  169. "1\022\022\n\007mat_r12\030\n \001(\001:\0011\022\022\n\007mat_r13\030\013 \001(\001:\001"
  170. "1\022\022\n\007mat_r20\030\014 \001(\001:\0011\022\022\n\007mat_r21\030\r \001(\001:\001"
  171. "1\022\022\n\007mat_r22\030\016 \001(\001:\0011\022\022\n\007mat_r23\030\017 \001(\001:\001"
  172. "1\022\024\n\014axis_x_theta\030\020 \001(\001\022\024\n\014axis_y_theta\030"
  173. "\021 \001(\001\022\024\n\014axis_z_theta\030\022 \001(\001\022\025\n\rtranslati"
  174. "on_x\030\023 \001(\001\022\025\n\rtranslation_y\030\024 \001(\001\022\025\n\rtra"
  175. "nslation_z\030\025 \001(\001\022\030\n\rinstall_angle\030\026 \001(\001:"
  176. "\0010\022\034\n\016scan_direction\030\027 \001(\010:\004true\022\n\n\002sn\030\030"
  177. " \001(\t\022\027\n\tframe_num\030\031 \001(\003:\0043000\022\016\n\004type\030\032 "
  178. "\001(\t:\000\"M\n\023Laser_parameter_all\0226\n\020laser_pa"
  179. "rameters\030\001 \003(\0132\034.Laser_proto.laser_param"
  180. "eter"
  181. };
  182. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  183. descriptor, 684);
  184. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  185. "laser_parameter.proto", &protobuf_RegisterTypes);
  186. }
  187. void AddDescriptors() {
  188. static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  189. ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
  190. }
  191. // Force AddDescriptors() to be called at dynamic initialization time.
  192. struct StaticDescriptorInitializer {
  193. StaticDescriptorInitializer() {
  194. AddDescriptors();
  195. }
  196. } static_descriptor_initializer;
  197. } // namespace protobuf_laser_5fparameter_2eproto
  198. namespace Laser_proto {
  199. // ===================================================================
  200. void laser_parameter::InitAsDefaultInstance() {
  201. }
  202. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  203. const int laser_parameter::kLaserIpFieldNumber;
  204. const int laser_parameter::kLaserPortFieldNumber;
  205. const int laser_parameter::kLaserPortRemoteFieldNumber;
  206. const int laser_parameter::kMatR00FieldNumber;
  207. const int laser_parameter::kMatR01FieldNumber;
  208. const int laser_parameter::kMatR02FieldNumber;
  209. const int laser_parameter::kMatR03FieldNumber;
  210. const int laser_parameter::kMatR10FieldNumber;
  211. const int laser_parameter::kMatR11FieldNumber;
  212. const int laser_parameter::kMatR12FieldNumber;
  213. const int laser_parameter::kMatR13FieldNumber;
  214. const int laser_parameter::kMatR20FieldNumber;
  215. const int laser_parameter::kMatR21FieldNumber;
  216. const int laser_parameter::kMatR22FieldNumber;
  217. const int laser_parameter::kMatR23FieldNumber;
  218. const int laser_parameter::kAxisXThetaFieldNumber;
  219. const int laser_parameter::kAxisYThetaFieldNumber;
  220. const int laser_parameter::kAxisZThetaFieldNumber;
  221. const int laser_parameter::kTranslationXFieldNumber;
  222. const int laser_parameter::kTranslationYFieldNumber;
  223. const int laser_parameter::kTranslationZFieldNumber;
  224. const int laser_parameter::kInstallAngleFieldNumber;
  225. const int laser_parameter::kScanDirectionFieldNumber;
  226. const int laser_parameter::kSnFieldNumber;
  227. const int laser_parameter::kFrameNumFieldNumber;
  228. const int laser_parameter::kTypeFieldNumber;
  229. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  230. laser_parameter::laser_parameter()
  231. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  232. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  233. ::protobuf_laser_5fparameter_2eproto::InitDefaultslaser_parameter();
  234. }
  235. SharedCtor();
  236. // @@protoc_insertion_point(constructor:Laser_proto.laser_parameter)
  237. }
  238. laser_parameter::laser_parameter(const laser_parameter& from)
  239. : ::google::protobuf::Message(),
  240. _internal_metadata_(NULL),
  241. _has_bits_(from._has_bits_),
  242. _cached_size_(0) {
  243. _internal_metadata_.MergeFrom(from._internal_metadata_);
  244. laser_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  245. if (from.has_laser_ip()) {
  246. laser_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.laser_ip_);
  247. }
  248. sn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  249. if (from.has_sn()) {
  250. sn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sn_);
  251. }
  252. type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  253. if (from.has_type()) {
  254. type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
  255. }
  256. ::memcpy(&laser_port_, &from.laser_port_,
  257. static_cast<size_t>(reinterpret_cast<char*>(&frame_num_) -
  258. reinterpret_cast<char*>(&laser_port_)) + sizeof(frame_num_));
  259. // @@protoc_insertion_point(copy_constructor:Laser_proto.laser_parameter)
  260. }
  261. void laser_parameter::SharedCtor() {
  262. _cached_size_ = 0;
  263. laser_ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  264. sn_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  265. type_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  266. ::memset(&laser_port_, 0, static_cast<size_t>(
  267. reinterpret_cast<char*>(&install_angle_) -
  268. reinterpret_cast<char*>(&laser_port_)) + sizeof(install_angle_));
  269. scan_direction_ = true;
  270. mat_r00_ = 1;
  271. mat_r01_ = 1;
  272. mat_r02_ = 1;
  273. mat_r03_ = 1;
  274. mat_r10_ = 1;
  275. mat_r11_ = 1;
  276. mat_r12_ = 1;
  277. mat_r13_ = 1;
  278. mat_r20_ = 1;
  279. mat_r21_ = 1;
  280. mat_r22_ = 1;
  281. mat_r23_ = 1;
  282. frame_num_ = GOOGLE_LONGLONG(3000);
  283. }
  284. laser_parameter::~laser_parameter() {
  285. // @@protoc_insertion_point(destructor:Laser_proto.laser_parameter)
  286. SharedDtor();
  287. }
  288. void laser_parameter::SharedDtor() {
  289. laser_ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  290. sn_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  291. type_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  292. }
  293. void laser_parameter::SetCachedSize(int size) const {
  294. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  295. _cached_size_ = size;
  296. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  297. }
  298. const ::google::protobuf::Descriptor* laser_parameter::descriptor() {
  299. ::protobuf_laser_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  300. return ::protobuf_laser_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  301. }
  302. const laser_parameter& laser_parameter::default_instance() {
  303. ::protobuf_laser_5fparameter_2eproto::InitDefaultslaser_parameter();
  304. return *internal_default_instance();
  305. }
  306. laser_parameter* laser_parameter::New(::google::protobuf::Arena* arena) const {
  307. laser_parameter* n = new laser_parameter;
  308. if (arena != NULL) {
  309. arena->Own(n);
  310. }
  311. return n;
  312. }
  313. void laser_parameter::Clear() {
  314. // @@protoc_insertion_point(message_clear_start:Laser_proto.laser_parameter)
  315. ::google::protobuf::uint32 cached_has_bits = 0;
  316. // Prevent compiler warnings about cached_has_bits being unused
  317. (void) cached_has_bits;
  318. cached_has_bits = _has_bits_[0];
  319. if (cached_has_bits & 7u) {
  320. if (cached_has_bits & 0x00000001u) {
  321. GOOGLE_DCHECK(!laser_ip_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  322. (*laser_ip_.UnsafeRawStringPointer())->clear();
  323. }
  324. if (cached_has_bits & 0x00000002u) {
  325. GOOGLE_DCHECK(!sn_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  326. (*sn_.UnsafeRawStringPointer())->clear();
  327. }
  328. if (cached_has_bits & 0x00000004u) {
  329. GOOGLE_DCHECK(!type_.IsDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()));
  330. (*type_.UnsafeRawStringPointer())->clear();
  331. }
  332. }
  333. if (cached_has_bits & 248u) {
  334. ::memset(&laser_port_, 0, static_cast<size_t>(
  335. reinterpret_cast<char*>(&axis_z_theta_) -
  336. reinterpret_cast<char*>(&laser_port_)) + sizeof(axis_z_theta_));
  337. }
  338. if (cached_has_bits & 65280u) {
  339. ::memset(&translation_x_, 0, static_cast<size_t>(
  340. reinterpret_cast<char*>(&install_angle_) -
  341. reinterpret_cast<char*>(&translation_x_)) + sizeof(install_angle_));
  342. scan_direction_ = true;
  343. mat_r00_ = 1;
  344. mat_r01_ = 1;
  345. mat_r02_ = 1;
  346. }
  347. if (cached_has_bits & 16711680u) {
  348. mat_r03_ = 1;
  349. mat_r10_ = 1;
  350. mat_r11_ = 1;
  351. mat_r12_ = 1;
  352. mat_r13_ = 1;
  353. mat_r20_ = 1;
  354. mat_r21_ = 1;
  355. mat_r22_ = 1;
  356. }
  357. if (cached_has_bits & 50331648u) {
  358. mat_r23_ = 1;
  359. frame_num_ = GOOGLE_LONGLONG(3000);
  360. }
  361. _has_bits_.Clear();
  362. _internal_metadata_.Clear();
  363. }
  364. bool laser_parameter::MergePartialFromCodedStream(
  365. ::google::protobuf::io::CodedInputStream* input) {
  366. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  367. ::google::protobuf::uint32 tag;
  368. // @@protoc_insertion_point(parse_start:Laser_proto.laser_parameter)
  369. for (;;) {
  370. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  371. tag = p.first;
  372. if (!p.second) goto handle_unusual;
  373. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  374. // optional string laser_ip = 1;
  375. case 1: {
  376. if (static_cast< ::google::protobuf::uint8>(tag) ==
  377. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  378. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  379. input, this->mutable_laser_ip()));
  380. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  381. this->laser_ip().data(), static_cast<int>(this->laser_ip().length()),
  382. ::google::protobuf::internal::WireFormat::PARSE,
  383. "Laser_proto.laser_parameter.laser_ip");
  384. } else {
  385. goto handle_unusual;
  386. }
  387. break;
  388. }
  389. // optional int64 laser_port = 2;
  390. case 2: {
  391. if (static_cast< ::google::protobuf::uint8>(tag) ==
  392. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  393. set_has_laser_port();
  394. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  395. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  396. input, &laser_port_)));
  397. } else {
  398. goto handle_unusual;
  399. }
  400. break;
  401. }
  402. // optional int64 laser_port_remote = 3;
  403. case 3: {
  404. if (static_cast< ::google::protobuf::uint8>(tag) ==
  405. static_cast< ::google::protobuf::uint8>(24u /* 24 & 0xFF */)) {
  406. set_has_laser_port_remote();
  407. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  408. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  409. input, &laser_port_remote_)));
  410. } else {
  411. goto handle_unusual;
  412. }
  413. break;
  414. }
  415. // optional double mat_r00 = 4 [default = 1];
  416. case 4: {
  417. if (static_cast< ::google::protobuf::uint8>(tag) ==
  418. static_cast< ::google::protobuf::uint8>(33u /* 33 & 0xFF */)) {
  419. set_has_mat_r00();
  420. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  421. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  422. input, &mat_r00_)));
  423. } else {
  424. goto handle_unusual;
  425. }
  426. break;
  427. }
  428. // optional double mat_r01 = 5 [default = 1];
  429. case 5: {
  430. if (static_cast< ::google::protobuf::uint8>(tag) ==
  431. static_cast< ::google::protobuf::uint8>(41u /* 41 & 0xFF */)) {
  432. set_has_mat_r01();
  433. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  434. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  435. input, &mat_r01_)));
  436. } else {
  437. goto handle_unusual;
  438. }
  439. break;
  440. }
  441. // optional double mat_r02 = 6 [default = 1];
  442. case 6: {
  443. if (static_cast< ::google::protobuf::uint8>(tag) ==
  444. static_cast< ::google::protobuf::uint8>(49u /* 49 & 0xFF */)) {
  445. set_has_mat_r02();
  446. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  447. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  448. input, &mat_r02_)));
  449. } else {
  450. goto handle_unusual;
  451. }
  452. break;
  453. }
  454. // optional double mat_r03 = 7 [default = 1];
  455. case 7: {
  456. if (static_cast< ::google::protobuf::uint8>(tag) ==
  457. static_cast< ::google::protobuf::uint8>(57u /* 57 & 0xFF */)) {
  458. set_has_mat_r03();
  459. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  460. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  461. input, &mat_r03_)));
  462. } else {
  463. goto handle_unusual;
  464. }
  465. break;
  466. }
  467. // optional double mat_r10 = 8 [default = 1];
  468. case 8: {
  469. if (static_cast< ::google::protobuf::uint8>(tag) ==
  470. static_cast< ::google::protobuf::uint8>(65u /* 65 & 0xFF */)) {
  471. set_has_mat_r10();
  472. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  473. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  474. input, &mat_r10_)));
  475. } else {
  476. goto handle_unusual;
  477. }
  478. break;
  479. }
  480. // optional double mat_r11 = 9 [default = 1];
  481. case 9: {
  482. if (static_cast< ::google::protobuf::uint8>(tag) ==
  483. static_cast< ::google::protobuf::uint8>(73u /* 73 & 0xFF */)) {
  484. set_has_mat_r11();
  485. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  486. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  487. input, &mat_r11_)));
  488. } else {
  489. goto handle_unusual;
  490. }
  491. break;
  492. }
  493. // optional double mat_r12 = 10 [default = 1];
  494. case 10: {
  495. if (static_cast< ::google::protobuf::uint8>(tag) ==
  496. static_cast< ::google::protobuf::uint8>(81u /* 81 & 0xFF */)) {
  497. set_has_mat_r12();
  498. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  499. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  500. input, &mat_r12_)));
  501. } else {
  502. goto handle_unusual;
  503. }
  504. break;
  505. }
  506. // optional double mat_r13 = 11 [default = 1];
  507. case 11: {
  508. if (static_cast< ::google::protobuf::uint8>(tag) ==
  509. static_cast< ::google::protobuf::uint8>(89u /* 89 & 0xFF */)) {
  510. set_has_mat_r13();
  511. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  512. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  513. input, &mat_r13_)));
  514. } else {
  515. goto handle_unusual;
  516. }
  517. break;
  518. }
  519. // optional double mat_r20 = 12 [default = 1];
  520. case 12: {
  521. if (static_cast< ::google::protobuf::uint8>(tag) ==
  522. static_cast< ::google::protobuf::uint8>(97u /* 97 & 0xFF */)) {
  523. set_has_mat_r20();
  524. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  525. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  526. input, &mat_r20_)));
  527. } else {
  528. goto handle_unusual;
  529. }
  530. break;
  531. }
  532. // optional double mat_r21 = 13 [default = 1];
  533. case 13: {
  534. if (static_cast< ::google::protobuf::uint8>(tag) ==
  535. static_cast< ::google::protobuf::uint8>(105u /* 105 & 0xFF */)) {
  536. set_has_mat_r21();
  537. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  538. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  539. input, &mat_r21_)));
  540. } else {
  541. goto handle_unusual;
  542. }
  543. break;
  544. }
  545. // optional double mat_r22 = 14 [default = 1];
  546. case 14: {
  547. if (static_cast< ::google::protobuf::uint8>(tag) ==
  548. static_cast< ::google::protobuf::uint8>(113u /* 113 & 0xFF */)) {
  549. set_has_mat_r22();
  550. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  551. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  552. input, &mat_r22_)));
  553. } else {
  554. goto handle_unusual;
  555. }
  556. break;
  557. }
  558. // optional double mat_r23 = 15 [default = 1];
  559. case 15: {
  560. if (static_cast< ::google::protobuf::uint8>(tag) ==
  561. static_cast< ::google::protobuf::uint8>(121u /* 121 & 0xFF */)) {
  562. set_has_mat_r23();
  563. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  564. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  565. input, &mat_r23_)));
  566. } else {
  567. goto handle_unusual;
  568. }
  569. break;
  570. }
  571. // optional double axis_x_theta = 16;
  572. case 16: {
  573. if (static_cast< ::google::protobuf::uint8>(tag) ==
  574. static_cast< ::google::protobuf::uint8>(129u /* 129 & 0xFF */)) {
  575. set_has_axis_x_theta();
  576. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  577. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  578. input, &axis_x_theta_)));
  579. } else {
  580. goto handle_unusual;
  581. }
  582. break;
  583. }
  584. // optional double axis_y_theta = 17;
  585. case 17: {
  586. if (static_cast< ::google::protobuf::uint8>(tag) ==
  587. static_cast< ::google::protobuf::uint8>(137u /* 137 & 0xFF */)) {
  588. set_has_axis_y_theta();
  589. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  590. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  591. input, &axis_y_theta_)));
  592. } else {
  593. goto handle_unusual;
  594. }
  595. break;
  596. }
  597. // optional double axis_z_theta = 18;
  598. case 18: {
  599. if (static_cast< ::google::protobuf::uint8>(tag) ==
  600. static_cast< ::google::protobuf::uint8>(145u /* 145 & 0xFF */)) {
  601. set_has_axis_z_theta();
  602. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  603. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  604. input, &axis_z_theta_)));
  605. } else {
  606. goto handle_unusual;
  607. }
  608. break;
  609. }
  610. // optional double translation_x = 19;
  611. case 19: {
  612. if (static_cast< ::google::protobuf::uint8>(tag) ==
  613. static_cast< ::google::protobuf::uint8>(153u /* 153 & 0xFF */)) {
  614. set_has_translation_x();
  615. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  616. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  617. input, &translation_x_)));
  618. } else {
  619. goto handle_unusual;
  620. }
  621. break;
  622. }
  623. // optional double translation_y = 20;
  624. case 20: {
  625. if (static_cast< ::google::protobuf::uint8>(tag) ==
  626. static_cast< ::google::protobuf::uint8>(161u /* 161 & 0xFF */)) {
  627. set_has_translation_y();
  628. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  629. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  630. input, &translation_y_)));
  631. } else {
  632. goto handle_unusual;
  633. }
  634. break;
  635. }
  636. // optional double translation_z = 21;
  637. case 21: {
  638. if (static_cast< ::google::protobuf::uint8>(tag) ==
  639. static_cast< ::google::protobuf::uint8>(169u /* 169 & 0xFF */)) {
  640. set_has_translation_z();
  641. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  642. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  643. input, &translation_z_)));
  644. } else {
  645. goto handle_unusual;
  646. }
  647. break;
  648. }
  649. // optional double install_angle = 22 [default = 0];
  650. case 22: {
  651. if (static_cast< ::google::protobuf::uint8>(tag) ==
  652. static_cast< ::google::protobuf::uint8>(177u /* 177 & 0xFF */)) {
  653. set_has_install_angle();
  654. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  655. double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
  656. input, &install_angle_)));
  657. } else {
  658. goto handle_unusual;
  659. }
  660. break;
  661. }
  662. // optional bool scan_direction = 23 [default = true];
  663. case 23: {
  664. if (static_cast< ::google::protobuf::uint8>(tag) ==
  665. static_cast< ::google::protobuf::uint8>(184u /* 184 & 0xFF */)) {
  666. set_has_scan_direction();
  667. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  668. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  669. input, &scan_direction_)));
  670. } else {
  671. goto handle_unusual;
  672. }
  673. break;
  674. }
  675. // optional string sn = 24;
  676. case 24: {
  677. if (static_cast< ::google::protobuf::uint8>(tag) ==
  678. static_cast< ::google::protobuf::uint8>(194u /* 194 & 0xFF */)) {
  679. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  680. input, this->mutable_sn()));
  681. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  682. this->sn().data(), static_cast<int>(this->sn().length()),
  683. ::google::protobuf::internal::WireFormat::PARSE,
  684. "Laser_proto.laser_parameter.sn");
  685. } else {
  686. goto handle_unusual;
  687. }
  688. break;
  689. }
  690. // optional int64 frame_num = 25 [default = 3000];
  691. case 25: {
  692. if (static_cast< ::google::protobuf::uint8>(tag) ==
  693. static_cast< ::google::protobuf::uint8>(200u /* 200 & 0xFF */)) {
  694. set_has_frame_num();
  695. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  696. ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>(
  697. input, &frame_num_)));
  698. } else {
  699. goto handle_unusual;
  700. }
  701. break;
  702. }
  703. // optional string type = 26 [default = ""];
  704. case 26: {
  705. if (static_cast< ::google::protobuf::uint8>(tag) ==
  706. static_cast< ::google::protobuf::uint8>(210u /* 210 & 0xFF */)) {
  707. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  708. input, this->mutable_type()));
  709. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  710. this->type().data(), static_cast<int>(this->type().length()),
  711. ::google::protobuf::internal::WireFormat::PARSE,
  712. "Laser_proto.laser_parameter.type");
  713. } else {
  714. goto handle_unusual;
  715. }
  716. break;
  717. }
  718. default: {
  719. handle_unusual:
  720. if (tag == 0) {
  721. goto success;
  722. }
  723. DO_(::google::protobuf::internal::WireFormat::SkipField(
  724. input, tag, _internal_metadata_.mutable_unknown_fields()));
  725. break;
  726. }
  727. }
  728. }
  729. success:
  730. // @@protoc_insertion_point(parse_success:Laser_proto.laser_parameter)
  731. return true;
  732. failure:
  733. // @@protoc_insertion_point(parse_failure:Laser_proto.laser_parameter)
  734. return false;
  735. #undef DO_
  736. }
  737. void laser_parameter::SerializeWithCachedSizes(
  738. ::google::protobuf::io::CodedOutputStream* output) const {
  739. // @@protoc_insertion_point(serialize_start:Laser_proto.laser_parameter)
  740. ::google::protobuf::uint32 cached_has_bits = 0;
  741. (void) cached_has_bits;
  742. cached_has_bits = _has_bits_[0];
  743. // optional string laser_ip = 1;
  744. if (cached_has_bits & 0x00000001u) {
  745. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  746. this->laser_ip().data(), static_cast<int>(this->laser_ip().length()),
  747. ::google::protobuf::internal::WireFormat::SERIALIZE,
  748. "Laser_proto.laser_parameter.laser_ip");
  749. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  750. 1, this->laser_ip(), output);
  751. }
  752. // optional int64 laser_port = 2;
  753. if (cached_has_bits & 0x00000008u) {
  754. ::google::protobuf::internal::WireFormatLite::WriteInt64(2, this->laser_port(), output);
  755. }
  756. // optional int64 laser_port_remote = 3;
  757. if (cached_has_bits & 0x00000010u) {
  758. ::google::protobuf::internal::WireFormatLite::WriteInt64(3, this->laser_port_remote(), output);
  759. }
  760. // optional double mat_r00 = 4 [default = 1];
  761. if (cached_has_bits & 0x00002000u) {
  762. ::google::protobuf::internal::WireFormatLite::WriteDouble(4, this->mat_r00(), output);
  763. }
  764. // optional double mat_r01 = 5 [default = 1];
  765. if (cached_has_bits & 0x00004000u) {
  766. ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->mat_r01(), output);
  767. }
  768. // optional double mat_r02 = 6 [default = 1];
  769. if (cached_has_bits & 0x00008000u) {
  770. ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->mat_r02(), output);
  771. }
  772. // optional double mat_r03 = 7 [default = 1];
  773. if (cached_has_bits & 0x00010000u) {
  774. ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->mat_r03(), output);
  775. }
  776. // optional double mat_r10 = 8 [default = 1];
  777. if (cached_has_bits & 0x00020000u) {
  778. ::google::protobuf::internal::WireFormatLite::WriteDouble(8, this->mat_r10(), output);
  779. }
  780. // optional double mat_r11 = 9 [default = 1];
  781. if (cached_has_bits & 0x00040000u) {
  782. ::google::protobuf::internal::WireFormatLite::WriteDouble(9, this->mat_r11(), output);
  783. }
  784. // optional double mat_r12 = 10 [default = 1];
  785. if (cached_has_bits & 0x00080000u) {
  786. ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->mat_r12(), output);
  787. }
  788. // optional double mat_r13 = 11 [default = 1];
  789. if (cached_has_bits & 0x00100000u) {
  790. ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->mat_r13(), output);
  791. }
  792. // optional double mat_r20 = 12 [default = 1];
  793. if (cached_has_bits & 0x00200000u) {
  794. ::google::protobuf::internal::WireFormatLite::WriteDouble(12, this->mat_r20(), output);
  795. }
  796. // optional double mat_r21 = 13 [default = 1];
  797. if (cached_has_bits & 0x00400000u) {
  798. ::google::protobuf::internal::WireFormatLite::WriteDouble(13, this->mat_r21(), output);
  799. }
  800. // optional double mat_r22 = 14 [default = 1];
  801. if (cached_has_bits & 0x00800000u) {
  802. ::google::protobuf::internal::WireFormatLite::WriteDouble(14, this->mat_r22(), output);
  803. }
  804. // optional double mat_r23 = 15 [default = 1];
  805. if (cached_has_bits & 0x01000000u) {
  806. ::google::protobuf::internal::WireFormatLite::WriteDouble(15, this->mat_r23(), output);
  807. }
  808. // optional double axis_x_theta = 16;
  809. if (cached_has_bits & 0x00000020u) {
  810. ::google::protobuf::internal::WireFormatLite::WriteDouble(16, this->axis_x_theta(), output);
  811. }
  812. // optional double axis_y_theta = 17;
  813. if (cached_has_bits & 0x00000040u) {
  814. ::google::protobuf::internal::WireFormatLite::WriteDouble(17, this->axis_y_theta(), output);
  815. }
  816. // optional double axis_z_theta = 18;
  817. if (cached_has_bits & 0x00000080u) {
  818. ::google::protobuf::internal::WireFormatLite::WriteDouble(18, this->axis_z_theta(), output);
  819. }
  820. // optional double translation_x = 19;
  821. if (cached_has_bits & 0x00000100u) {
  822. ::google::protobuf::internal::WireFormatLite::WriteDouble(19, this->translation_x(), output);
  823. }
  824. // optional double translation_y = 20;
  825. if (cached_has_bits & 0x00000200u) {
  826. ::google::protobuf::internal::WireFormatLite::WriteDouble(20, this->translation_y(), output);
  827. }
  828. // optional double translation_z = 21;
  829. if (cached_has_bits & 0x00000400u) {
  830. ::google::protobuf::internal::WireFormatLite::WriteDouble(21, this->translation_z(), output);
  831. }
  832. // optional double install_angle = 22 [default = 0];
  833. if (cached_has_bits & 0x00000800u) {
  834. ::google::protobuf::internal::WireFormatLite::WriteDouble(22, this->install_angle(), output);
  835. }
  836. // optional bool scan_direction = 23 [default = true];
  837. if (cached_has_bits & 0x00001000u) {
  838. ::google::protobuf::internal::WireFormatLite::WriteBool(23, this->scan_direction(), output);
  839. }
  840. // optional string sn = 24;
  841. if (cached_has_bits & 0x00000002u) {
  842. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  843. this->sn().data(), static_cast<int>(this->sn().length()),
  844. ::google::protobuf::internal::WireFormat::SERIALIZE,
  845. "Laser_proto.laser_parameter.sn");
  846. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  847. 24, this->sn(), output);
  848. }
  849. // optional int64 frame_num = 25 [default = 3000];
  850. if (cached_has_bits & 0x02000000u) {
  851. ::google::protobuf::internal::WireFormatLite::WriteInt64(25, this->frame_num(), output);
  852. }
  853. // optional string type = 26 [default = ""];
  854. if (cached_has_bits & 0x00000004u) {
  855. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  856. this->type().data(), static_cast<int>(this->type().length()),
  857. ::google::protobuf::internal::WireFormat::SERIALIZE,
  858. "Laser_proto.laser_parameter.type");
  859. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  860. 26, this->type(), output);
  861. }
  862. if (_internal_metadata_.have_unknown_fields()) {
  863. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  864. _internal_metadata_.unknown_fields(), output);
  865. }
  866. // @@protoc_insertion_point(serialize_end:Laser_proto.laser_parameter)
  867. }
  868. ::google::protobuf::uint8* laser_parameter::InternalSerializeWithCachedSizesToArray(
  869. bool deterministic, ::google::protobuf::uint8* target) const {
  870. (void)deterministic; // Unused
  871. // @@protoc_insertion_point(serialize_to_array_start:Laser_proto.laser_parameter)
  872. ::google::protobuf::uint32 cached_has_bits = 0;
  873. (void) cached_has_bits;
  874. cached_has_bits = _has_bits_[0];
  875. // optional string laser_ip = 1;
  876. if (cached_has_bits & 0x00000001u) {
  877. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  878. this->laser_ip().data(), static_cast<int>(this->laser_ip().length()),
  879. ::google::protobuf::internal::WireFormat::SERIALIZE,
  880. "Laser_proto.laser_parameter.laser_ip");
  881. target =
  882. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  883. 1, this->laser_ip(), target);
  884. }
  885. // optional int64 laser_port = 2;
  886. if (cached_has_bits & 0x00000008u) {
  887. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(2, this->laser_port(), target);
  888. }
  889. // optional int64 laser_port_remote = 3;
  890. if (cached_has_bits & 0x00000010u) {
  891. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(3, this->laser_port_remote(), target);
  892. }
  893. // optional double mat_r00 = 4 [default = 1];
  894. if (cached_has_bits & 0x00002000u) {
  895. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(4, this->mat_r00(), target);
  896. }
  897. // optional double mat_r01 = 5 [default = 1];
  898. if (cached_has_bits & 0x00004000u) {
  899. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->mat_r01(), target);
  900. }
  901. // optional double mat_r02 = 6 [default = 1];
  902. if (cached_has_bits & 0x00008000u) {
  903. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->mat_r02(), target);
  904. }
  905. // optional double mat_r03 = 7 [default = 1];
  906. if (cached_has_bits & 0x00010000u) {
  907. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->mat_r03(), target);
  908. }
  909. // optional double mat_r10 = 8 [default = 1];
  910. if (cached_has_bits & 0x00020000u) {
  911. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(8, this->mat_r10(), target);
  912. }
  913. // optional double mat_r11 = 9 [default = 1];
  914. if (cached_has_bits & 0x00040000u) {
  915. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(9, this->mat_r11(), target);
  916. }
  917. // optional double mat_r12 = 10 [default = 1];
  918. if (cached_has_bits & 0x00080000u) {
  919. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->mat_r12(), target);
  920. }
  921. // optional double mat_r13 = 11 [default = 1];
  922. if (cached_has_bits & 0x00100000u) {
  923. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->mat_r13(), target);
  924. }
  925. // optional double mat_r20 = 12 [default = 1];
  926. if (cached_has_bits & 0x00200000u) {
  927. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(12, this->mat_r20(), target);
  928. }
  929. // optional double mat_r21 = 13 [default = 1];
  930. if (cached_has_bits & 0x00400000u) {
  931. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(13, this->mat_r21(), target);
  932. }
  933. // optional double mat_r22 = 14 [default = 1];
  934. if (cached_has_bits & 0x00800000u) {
  935. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(14, this->mat_r22(), target);
  936. }
  937. // optional double mat_r23 = 15 [default = 1];
  938. if (cached_has_bits & 0x01000000u) {
  939. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(15, this->mat_r23(), target);
  940. }
  941. // optional double axis_x_theta = 16;
  942. if (cached_has_bits & 0x00000020u) {
  943. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(16, this->axis_x_theta(), target);
  944. }
  945. // optional double axis_y_theta = 17;
  946. if (cached_has_bits & 0x00000040u) {
  947. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(17, this->axis_y_theta(), target);
  948. }
  949. // optional double axis_z_theta = 18;
  950. if (cached_has_bits & 0x00000080u) {
  951. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(18, this->axis_z_theta(), target);
  952. }
  953. // optional double translation_x = 19;
  954. if (cached_has_bits & 0x00000100u) {
  955. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(19, this->translation_x(), target);
  956. }
  957. // optional double translation_y = 20;
  958. if (cached_has_bits & 0x00000200u) {
  959. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(20, this->translation_y(), target);
  960. }
  961. // optional double translation_z = 21;
  962. if (cached_has_bits & 0x00000400u) {
  963. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(21, this->translation_z(), target);
  964. }
  965. // optional double install_angle = 22 [default = 0];
  966. if (cached_has_bits & 0x00000800u) {
  967. target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(22, this->install_angle(), target);
  968. }
  969. // optional bool scan_direction = 23 [default = true];
  970. if (cached_has_bits & 0x00001000u) {
  971. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(23, this->scan_direction(), target);
  972. }
  973. // optional string sn = 24;
  974. if (cached_has_bits & 0x00000002u) {
  975. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  976. this->sn().data(), static_cast<int>(this->sn().length()),
  977. ::google::protobuf::internal::WireFormat::SERIALIZE,
  978. "Laser_proto.laser_parameter.sn");
  979. target =
  980. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  981. 24, this->sn(), target);
  982. }
  983. // optional int64 frame_num = 25 [default = 3000];
  984. if (cached_has_bits & 0x02000000u) {
  985. target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(25, this->frame_num(), target);
  986. }
  987. // optional string type = 26 [default = ""];
  988. if (cached_has_bits & 0x00000004u) {
  989. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  990. this->type().data(), static_cast<int>(this->type().length()),
  991. ::google::protobuf::internal::WireFormat::SERIALIZE,
  992. "Laser_proto.laser_parameter.type");
  993. target =
  994. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  995. 26, this->type(), target);
  996. }
  997. if (_internal_metadata_.have_unknown_fields()) {
  998. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  999. _internal_metadata_.unknown_fields(), target);
  1000. }
  1001. // @@protoc_insertion_point(serialize_to_array_end:Laser_proto.laser_parameter)
  1002. return target;
  1003. }
  1004. size_t laser_parameter::ByteSizeLong() const {
  1005. // @@protoc_insertion_point(message_byte_size_start:Laser_proto.laser_parameter)
  1006. size_t total_size = 0;
  1007. if (_internal_metadata_.have_unknown_fields()) {
  1008. total_size +=
  1009. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1010. _internal_metadata_.unknown_fields());
  1011. }
  1012. if (_has_bits_[0 / 32] & 255u) {
  1013. // optional string laser_ip = 1;
  1014. if (has_laser_ip()) {
  1015. total_size += 1 +
  1016. ::google::protobuf::internal::WireFormatLite::StringSize(
  1017. this->laser_ip());
  1018. }
  1019. // optional string sn = 24;
  1020. if (has_sn()) {
  1021. total_size += 2 +
  1022. ::google::protobuf::internal::WireFormatLite::StringSize(
  1023. this->sn());
  1024. }
  1025. // optional string type = 26 [default = ""];
  1026. if (has_type()) {
  1027. total_size += 2 +
  1028. ::google::protobuf::internal::WireFormatLite::StringSize(
  1029. this->type());
  1030. }
  1031. // optional int64 laser_port = 2;
  1032. if (has_laser_port()) {
  1033. total_size += 1 +
  1034. ::google::protobuf::internal::WireFormatLite::Int64Size(
  1035. this->laser_port());
  1036. }
  1037. // optional int64 laser_port_remote = 3;
  1038. if (has_laser_port_remote()) {
  1039. total_size += 1 +
  1040. ::google::protobuf::internal::WireFormatLite::Int64Size(
  1041. this->laser_port_remote());
  1042. }
  1043. // optional double axis_x_theta = 16;
  1044. if (has_axis_x_theta()) {
  1045. total_size += 2 + 8;
  1046. }
  1047. // optional double axis_y_theta = 17;
  1048. if (has_axis_y_theta()) {
  1049. total_size += 2 + 8;
  1050. }
  1051. // optional double axis_z_theta = 18;
  1052. if (has_axis_z_theta()) {
  1053. total_size += 2 + 8;
  1054. }
  1055. }
  1056. if (_has_bits_[8 / 32] & 65280u) {
  1057. // optional double translation_x = 19;
  1058. if (has_translation_x()) {
  1059. total_size += 2 + 8;
  1060. }
  1061. // optional double translation_y = 20;
  1062. if (has_translation_y()) {
  1063. total_size += 2 + 8;
  1064. }
  1065. // optional double translation_z = 21;
  1066. if (has_translation_z()) {
  1067. total_size += 2 + 8;
  1068. }
  1069. // optional double install_angle = 22 [default = 0];
  1070. if (has_install_angle()) {
  1071. total_size += 2 + 8;
  1072. }
  1073. // optional bool scan_direction = 23 [default = true];
  1074. if (has_scan_direction()) {
  1075. total_size += 2 + 1;
  1076. }
  1077. // optional double mat_r00 = 4 [default = 1];
  1078. if (has_mat_r00()) {
  1079. total_size += 1 + 8;
  1080. }
  1081. // optional double mat_r01 = 5 [default = 1];
  1082. if (has_mat_r01()) {
  1083. total_size += 1 + 8;
  1084. }
  1085. // optional double mat_r02 = 6 [default = 1];
  1086. if (has_mat_r02()) {
  1087. total_size += 1 + 8;
  1088. }
  1089. }
  1090. if (_has_bits_[16 / 32] & 16711680u) {
  1091. // optional double mat_r03 = 7 [default = 1];
  1092. if (has_mat_r03()) {
  1093. total_size += 1 + 8;
  1094. }
  1095. // optional double mat_r10 = 8 [default = 1];
  1096. if (has_mat_r10()) {
  1097. total_size += 1 + 8;
  1098. }
  1099. // optional double mat_r11 = 9 [default = 1];
  1100. if (has_mat_r11()) {
  1101. total_size += 1 + 8;
  1102. }
  1103. // optional double mat_r12 = 10 [default = 1];
  1104. if (has_mat_r12()) {
  1105. total_size += 1 + 8;
  1106. }
  1107. // optional double mat_r13 = 11 [default = 1];
  1108. if (has_mat_r13()) {
  1109. total_size += 1 + 8;
  1110. }
  1111. // optional double mat_r20 = 12 [default = 1];
  1112. if (has_mat_r20()) {
  1113. total_size += 1 + 8;
  1114. }
  1115. // optional double mat_r21 = 13 [default = 1];
  1116. if (has_mat_r21()) {
  1117. total_size += 1 + 8;
  1118. }
  1119. // optional double mat_r22 = 14 [default = 1];
  1120. if (has_mat_r22()) {
  1121. total_size += 1 + 8;
  1122. }
  1123. }
  1124. if (_has_bits_[24 / 32] & 50331648u) {
  1125. // optional double mat_r23 = 15 [default = 1];
  1126. if (has_mat_r23()) {
  1127. total_size += 1 + 8;
  1128. }
  1129. // optional int64 frame_num = 25 [default = 3000];
  1130. if (has_frame_num()) {
  1131. total_size += 2 +
  1132. ::google::protobuf::internal::WireFormatLite::Int64Size(
  1133. this->frame_num());
  1134. }
  1135. }
  1136. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1137. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1138. _cached_size_ = cached_size;
  1139. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1140. return total_size;
  1141. }
  1142. void laser_parameter::MergeFrom(const ::google::protobuf::Message& from) {
  1143. // @@protoc_insertion_point(generalized_merge_from_start:Laser_proto.laser_parameter)
  1144. GOOGLE_DCHECK_NE(&from, this);
  1145. const laser_parameter* source =
  1146. ::google::protobuf::internal::DynamicCastToGenerated<const laser_parameter>(
  1147. &from);
  1148. if (source == NULL) {
  1149. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Laser_proto.laser_parameter)
  1150. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1151. } else {
  1152. // @@protoc_insertion_point(generalized_merge_from_cast_success:Laser_proto.laser_parameter)
  1153. MergeFrom(*source);
  1154. }
  1155. }
  1156. void laser_parameter::MergeFrom(const laser_parameter& from) {
  1157. // @@protoc_insertion_point(class_specific_merge_from_start:Laser_proto.laser_parameter)
  1158. GOOGLE_DCHECK_NE(&from, this);
  1159. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1160. ::google::protobuf::uint32 cached_has_bits = 0;
  1161. (void) cached_has_bits;
  1162. cached_has_bits = from._has_bits_[0];
  1163. if (cached_has_bits & 255u) {
  1164. if (cached_has_bits & 0x00000001u) {
  1165. set_has_laser_ip();
  1166. laser_ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.laser_ip_);
  1167. }
  1168. if (cached_has_bits & 0x00000002u) {
  1169. set_has_sn();
  1170. sn_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.sn_);
  1171. }
  1172. if (cached_has_bits & 0x00000004u) {
  1173. set_has_type();
  1174. type_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.type_);
  1175. }
  1176. if (cached_has_bits & 0x00000008u) {
  1177. laser_port_ = from.laser_port_;
  1178. }
  1179. if (cached_has_bits & 0x00000010u) {
  1180. laser_port_remote_ = from.laser_port_remote_;
  1181. }
  1182. if (cached_has_bits & 0x00000020u) {
  1183. axis_x_theta_ = from.axis_x_theta_;
  1184. }
  1185. if (cached_has_bits & 0x00000040u) {
  1186. axis_y_theta_ = from.axis_y_theta_;
  1187. }
  1188. if (cached_has_bits & 0x00000080u) {
  1189. axis_z_theta_ = from.axis_z_theta_;
  1190. }
  1191. _has_bits_[0] |= cached_has_bits;
  1192. }
  1193. if (cached_has_bits & 65280u) {
  1194. if (cached_has_bits & 0x00000100u) {
  1195. translation_x_ = from.translation_x_;
  1196. }
  1197. if (cached_has_bits & 0x00000200u) {
  1198. translation_y_ = from.translation_y_;
  1199. }
  1200. if (cached_has_bits & 0x00000400u) {
  1201. translation_z_ = from.translation_z_;
  1202. }
  1203. if (cached_has_bits & 0x00000800u) {
  1204. install_angle_ = from.install_angle_;
  1205. }
  1206. if (cached_has_bits & 0x00001000u) {
  1207. scan_direction_ = from.scan_direction_;
  1208. }
  1209. if (cached_has_bits & 0x00002000u) {
  1210. mat_r00_ = from.mat_r00_;
  1211. }
  1212. if (cached_has_bits & 0x00004000u) {
  1213. mat_r01_ = from.mat_r01_;
  1214. }
  1215. if (cached_has_bits & 0x00008000u) {
  1216. mat_r02_ = from.mat_r02_;
  1217. }
  1218. _has_bits_[0] |= cached_has_bits;
  1219. }
  1220. if (cached_has_bits & 16711680u) {
  1221. if (cached_has_bits & 0x00010000u) {
  1222. mat_r03_ = from.mat_r03_;
  1223. }
  1224. if (cached_has_bits & 0x00020000u) {
  1225. mat_r10_ = from.mat_r10_;
  1226. }
  1227. if (cached_has_bits & 0x00040000u) {
  1228. mat_r11_ = from.mat_r11_;
  1229. }
  1230. if (cached_has_bits & 0x00080000u) {
  1231. mat_r12_ = from.mat_r12_;
  1232. }
  1233. if (cached_has_bits & 0x00100000u) {
  1234. mat_r13_ = from.mat_r13_;
  1235. }
  1236. if (cached_has_bits & 0x00200000u) {
  1237. mat_r20_ = from.mat_r20_;
  1238. }
  1239. if (cached_has_bits & 0x00400000u) {
  1240. mat_r21_ = from.mat_r21_;
  1241. }
  1242. if (cached_has_bits & 0x00800000u) {
  1243. mat_r22_ = from.mat_r22_;
  1244. }
  1245. _has_bits_[0] |= cached_has_bits;
  1246. }
  1247. if (cached_has_bits & 50331648u) {
  1248. if (cached_has_bits & 0x01000000u) {
  1249. mat_r23_ = from.mat_r23_;
  1250. }
  1251. if (cached_has_bits & 0x02000000u) {
  1252. frame_num_ = from.frame_num_;
  1253. }
  1254. _has_bits_[0] |= cached_has_bits;
  1255. }
  1256. }
  1257. void laser_parameter::CopyFrom(const ::google::protobuf::Message& from) {
  1258. // @@protoc_insertion_point(generalized_copy_from_start:Laser_proto.laser_parameter)
  1259. if (&from == this) return;
  1260. Clear();
  1261. MergeFrom(from);
  1262. }
  1263. void laser_parameter::CopyFrom(const laser_parameter& from) {
  1264. // @@protoc_insertion_point(class_specific_copy_from_start:Laser_proto.laser_parameter)
  1265. if (&from == this) return;
  1266. Clear();
  1267. MergeFrom(from);
  1268. }
  1269. bool laser_parameter::IsInitialized() const {
  1270. return true;
  1271. }
  1272. void laser_parameter::Swap(laser_parameter* other) {
  1273. if (other == this) return;
  1274. InternalSwap(other);
  1275. }
  1276. void laser_parameter::InternalSwap(laser_parameter* other) {
  1277. using std::swap;
  1278. laser_ip_.Swap(&other->laser_ip_);
  1279. sn_.Swap(&other->sn_);
  1280. type_.Swap(&other->type_);
  1281. swap(laser_port_, other->laser_port_);
  1282. swap(laser_port_remote_, other->laser_port_remote_);
  1283. swap(axis_x_theta_, other->axis_x_theta_);
  1284. swap(axis_y_theta_, other->axis_y_theta_);
  1285. swap(axis_z_theta_, other->axis_z_theta_);
  1286. swap(translation_x_, other->translation_x_);
  1287. swap(translation_y_, other->translation_y_);
  1288. swap(translation_z_, other->translation_z_);
  1289. swap(install_angle_, other->install_angle_);
  1290. swap(scan_direction_, other->scan_direction_);
  1291. swap(mat_r00_, other->mat_r00_);
  1292. swap(mat_r01_, other->mat_r01_);
  1293. swap(mat_r02_, other->mat_r02_);
  1294. swap(mat_r03_, other->mat_r03_);
  1295. swap(mat_r10_, other->mat_r10_);
  1296. swap(mat_r11_, other->mat_r11_);
  1297. swap(mat_r12_, other->mat_r12_);
  1298. swap(mat_r13_, other->mat_r13_);
  1299. swap(mat_r20_, other->mat_r20_);
  1300. swap(mat_r21_, other->mat_r21_);
  1301. swap(mat_r22_, other->mat_r22_);
  1302. swap(mat_r23_, other->mat_r23_);
  1303. swap(frame_num_, other->frame_num_);
  1304. swap(_has_bits_[0], other->_has_bits_[0]);
  1305. _internal_metadata_.Swap(&other->_internal_metadata_);
  1306. swap(_cached_size_, other->_cached_size_);
  1307. }
  1308. ::google::protobuf::Metadata laser_parameter::GetMetadata() const {
  1309. protobuf_laser_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  1310. return ::protobuf_laser_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
  1311. }
  1312. // ===================================================================
  1313. void Laser_parameter_all::InitAsDefaultInstance() {
  1314. }
  1315. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1316. const int Laser_parameter_all::kLaserParametersFieldNumber;
  1317. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1318. Laser_parameter_all::Laser_parameter_all()
  1319. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1320. if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
  1321. ::protobuf_laser_5fparameter_2eproto::InitDefaultsLaser_parameter_all();
  1322. }
  1323. SharedCtor();
  1324. // @@protoc_insertion_point(constructor:Laser_proto.Laser_parameter_all)
  1325. }
  1326. Laser_parameter_all::Laser_parameter_all(const Laser_parameter_all& from)
  1327. : ::google::protobuf::Message(),
  1328. _internal_metadata_(NULL),
  1329. _has_bits_(from._has_bits_),
  1330. _cached_size_(0),
  1331. laser_parameters_(from.laser_parameters_) {
  1332. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1333. // @@protoc_insertion_point(copy_constructor:Laser_proto.Laser_parameter_all)
  1334. }
  1335. void Laser_parameter_all::SharedCtor() {
  1336. _cached_size_ = 0;
  1337. }
  1338. Laser_parameter_all::~Laser_parameter_all() {
  1339. // @@protoc_insertion_point(destructor:Laser_proto.Laser_parameter_all)
  1340. SharedDtor();
  1341. }
  1342. void Laser_parameter_all::SharedDtor() {
  1343. }
  1344. void Laser_parameter_all::SetCachedSize(int size) const {
  1345. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1346. _cached_size_ = size;
  1347. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1348. }
  1349. const ::google::protobuf::Descriptor* Laser_parameter_all::descriptor() {
  1350. ::protobuf_laser_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  1351. return ::protobuf_laser_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1352. }
  1353. const Laser_parameter_all& Laser_parameter_all::default_instance() {
  1354. ::protobuf_laser_5fparameter_2eproto::InitDefaultsLaser_parameter_all();
  1355. return *internal_default_instance();
  1356. }
  1357. Laser_parameter_all* Laser_parameter_all::New(::google::protobuf::Arena* arena) const {
  1358. Laser_parameter_all* n = new Laser_parameter_all;
  1359. if (arena != NULL) {
  1360. arena->Own(n);
  1361. }
  1362. return n;
  1363. }
  1364. void Laser_parameter_all::Clear() {
  1365. // @@protoc_insertion_point(message_clear_start:Laser_proto.Laser_parameter_all)
  1366. ::google::protobuf::uint32 cached_has_bits = 0;
  1367. // Prevent compiler warnings about cached_has_bits being unused
  1368. (void) cached_has_bits;
  1369. laser_parameters_.Clear();
  1370. _has_bits_.Clear();
  1371. _internal_metadata_.Clear();
  1372. }
  1373. bool Laser_parameter_all::MergePartialFromCodedStream(
  1374. ::google::protobuf::io::CodedInputStream* input) {
  1375. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1376. ::google::protobuf::uint32 tag;
  1377. // @@protoc_insertion_point(parse_start:Laser_proto.Laser_parameter_all)
  1378. for (;;) {
  1379. ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1380. tag = p.first;
  1381. if (!p.second) goto handle_unusual;
  1382. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1383. // repeated .Laser_proto.laser_parameter laser_parameters = 1;
  1384. case 1: {
  1385. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1386. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1387. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_laser_parameters()));
  1388. } else {
  1389. goto handle_unusual;
  1390. }
  1391. break;
  1392. }
  1393. default: {
  1394. handle_unusual:
  1395. if (tag == 0) {
  1396. goto success;
  1397. }
  1398. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1399. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1400. break;
  1401. }
  1402. }
  1403. }
  1404. success:
  1405. // @@protoc_insertion_point(parse_success:Laser_proto.Laser_parameter_all)
  1406. return true;
  1407. failure:
  1408. // @@protoc_insertion_point(parse_failure:Laser_proto.Laser_parameter_all)
  1409. return false;
  1410. #undef DO_
  1411. }
  1412. void Laser_parameter_all::SerializeWithCachedSizes(
  1413. ::google::protobuf::io::CodedOutputStream* output) const {
  1414. // @@protoc_insertion_point(serialize_start:Laser_proto.Laser_parameter_all)
  1415. ::google::protobuf::uint32 cached_has_bits = 0;
  1416. (void) cached_has_bits;
  1417. // repeated .Laser_proto.laser_parameter laser_parameters = 1;
  1418. for (unsigned int i = 0,
  1419. n = static_cast<unsigned int>(this->laser_parameters_size()); i < n; i++) {
  1420. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1421. 1, this->laser_parameters(static_cast<int>(i)), output);
  1422. }
  1423. if (_internal_metadata_.have_unknown_fields()) {
  1424. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1425. _internal_metadata_.unknown_fields(), output);
  1426. }
  1427. // @@protoc_insertion_point(serialize_end:Laser_proto.Laser_parameter_all)
  1428. }
  1429. ::google::protobuf::uint8* Laser_parameter_all::InternalSerializeWithCachedSizesToArray(
  1430. bool deterministic, ::google::protobuf::uint8* target) const {
  1431. (void)deterministic; // Unused
  1432. // @@protoc_insertion_point(serialize_to_array_start:Laser_proto.Laser_parameter_all)
  1433. ::google::protobuf::uint32 cached_has_bits = 0;
  1434. (void) cached_has_bits;
  1435. // repeated .Laser_proto.laser_parameter laser_parameters = 1;
  1436. for (unsigned int i = 0,
  1437. n = static_cast<unsigned int>(this->laser_parameters_size()); i < n; i++) {
  1438. target = ::google::protobuf::internal::WireFormatLite::
  1439. InternalWriteMessageToArray(
  1440. 1, this->laser_parameters(static_cast<int>(i)), deterministic, target);
  1441. }
  1442. if (_internal_metadata_.have_unknown_fields()) {
  1443. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1444. _internal_metadata_.unknown_fields(), target);
  1445. }
  1446. // @@protoc_insertion_point(serialize_to_array_end:Laser_proto.Laser_parameter_all)
  1447. return target;
  1448. }
  1449. size_t Laser_parameter_all::ByteSizeLong() const {
  1450. // @@protoc_insertion_point(message_byte_size_start:Laser_proto.Laser_parameter_all)
  1451. size_t total_size = 0;
  1452. if (_internal_metadata_.have_unknown_fields()) {
  1453. total_size +=
  1454. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1455. _internal_metadata_.unknown_fields());
  1456. }
  1457. // repeated .Laser_proto.laser_parameter laser_parameters = 1;
  1458. {
  1459. unsigned int count = static_cast<unsigned int>(this->laser_parameters_size());
  1460. total_size += 1UL * count;
  1461. for (unsigned int i = 0; i < count; i++) {
  1462. total_size +=
  1463. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1464. this->laser_parameters(static_cast<int>(i)));
  1465. }
  1466. }
  1467. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1468. GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  1469. _cached_size_ = cached_size;
  1470. GOOGLE_SAFE_CONCURRENT_WRITES_END();
  1471. return total_size;
  1472. }
  1473. void Laser_parameter_all::MergeFrom(const ::google::protobuf::Message& from) {
  1474. // @@protoc_insertion_point(generalized_merge_from_start:Laser_proto.Laser_parameter_all)
  1475. GOOGLE_DCHECK_NE(&from, this);
  1476. const Laser_parameter_all* source =
  1477. ::google::protobuf::internal::DynamicCastToGenerated<const Laser_parameter_all>(
  1478. &from);
  1479. if (source == NULL) {
  1480. // @@protoc_insertion_point(generalized_merge_from_cast_fail:Laser_proto.Laser_parameter_all)
  1481. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1482. } else {
  1483. // @@protoc_insertion_point(generalized_merge_from_cast_success:Laser_proto.Laser_parameter_all)
  1484. MergeFrom(*source);
  1485. }
  1486. }
  1487. void Laser_parameter_all::MergeFrom(const Laser_parameter_all& from) {
  1488. // @@protoc_insertion_point(class_specific_merge_from_start:Laser_proto.Laser_parameter_all)
  1489. GOOGLE_DCHECK_NE(&from, this);
  1490. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1491. ::google::protobuf::uint32 cached_has_bits = 0;
  1492. (void) cached_has_bits;
  1493. laser_parameters_.MergeFrom(from.laser_parameters_);
  1494. }
  1495. void Laser_parameter_all::CopyFrom(const ::google::protobuf::Message& from) {
  1496. // @@protoc_insertion_point(generalized_copy_from_start:Laser_proto.Laser_parameter_all)
  1497. if (&from == this) return;
  1498. Clear();
  1499. MergeFrom(from);
  1500. }
  1501. void Laser_parameter_all::CopyFrom(const Laser_parameter_all& from) {
  1502. // @@protoc_insertion_point(class_specific_copy_from_start:Laser_proto.Laser_parameter_all)
  1503. if (&from == this) return;
  1504. Clear();
  1505. MergeFrom(from);
  1506. }
  1507. bool Laser_parameter_all::IsInitialized() const {
  1508. return true;
  1509. }
  1510. void Laser_parameter_all::Swap(Laser_parameter_all* other) {
  1511. if (other == this) return;
  1512. InternalSwap(other);
  1513. }
  1514. void Laser_parameter_all::InternalSwap(Laser_parameter_all* other) {
  1515. using std::swap;
  1516. laser_parameters_.InternalSwap(&other->laser_parameters_);
  1517. swap(_has_bits_[0], other->_has_bits_[0]);
  1518. _internal_metadata_.Swap(&other->_internal_metadata_);
  1519. swap(_cached_size_, other->_cached_size_);
  1520. }
  1521. ::google::protobuf::Metadata Laser_parameter_all::GetMetadata() const {
  1522. protobuf_laser_5fparameter_2eproto::protobuf_AssignDescriptorsOnce();
  1523. return ::protobuf_laser_5fparameter_2eproto::file_level_metadata[kIndexInFileMessages];
  1524. }
  1525. // @@protoc_insertion_point(namespace_scope)
  1526. } // namespace Laser_proto
  1527. // @@protoc_insertion_point(global_scope)