laser_parameter.pb.cc 64 KB

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