velodyne_config.pb.cc 129 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: velodyne_config.proto
  3. #include "velodyne_config.pb.h"
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_velodyne_5fconfig_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_velodyne_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CalibParameter;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_velodyne_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Region;
  21. extern PROTOBUF_INTERNAL_EXPORT_protobuf_velodyne_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_lidarExtrinsic;
  22. extern PROTOBUF_INTERNAL_EXPORT_protobuf_velodyne_5fconfig_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_velodyneLidarParams;
  23. } // namespace protobuf_velodyne_5fconfig_2eproto
  24. namespace velodyne {
  25. class velodyneManagerParamsDefaultTypeInternal {
  26. public:
  27. ::google::protobuf::internal::ExplicitlyConstructed<velodyneManagerParams>
  28. _instance;
  29. } _velodyneManagerParams_default_instance_;
  30. class velodyneLidarParamsDefaultTypeInternal {
  31. public:
  32. ::google::protobuf::internal::ExplicitlyConstructed<velodyneLidarParams>
  33. _instance;
  34. } _velodyneLidarParams_default_instance_;
  35. class CalibParameterDefaultTypeInternal {
  36. public:
  37. ::google::protobuf::internal::ExplicitlyConstructed<CalibParameter>
  38. _instance;
  39. } _CalibParameter_default_instance_;
  40. class lidarExtrinsicDefaultTypeInternal {
  41. public:
  42. ::google::protobuf::internal::ExplicitlyConstructed<lidarExtrinsic>
  43. _instance;
  44. } _lidarExtrinsic_default_instance_;
  45. class RegionDefaultTypeInternal {
  46. public:
  47. ::google::protobuf::internal::ExplicitlyConstructed<Region>
  48. _instance;
  49. } _Region_default_instance_;
  50. } // namespace velodyne
  51. namespace protobuf_velodyne_5fconfig_2eproto {
  52. static void InitDefaultsvelodyneManagerParams() {
  53. GOOGLE_PROTOBUF_VERIFY_VERSION;
  54. {
  55. void* ptr = &::velodyne::_velodyneManagerParams_default_instance_;
  56. new (ptr) ::velodyne::velodyneManagerParams();
  57. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  58. }
  59. ::velodyne::velodyneManagerParams::InitAsDefaultInstance();
  60. }
  61. ::google::protobuf::internal::SCCInfo<2> scc_info_velodyneManagerParams =
  62. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsvelodyneManagerParams}, {
  63. &protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneLidarParams.base,
  64. &protobuf_velodyne_5fconfig_2eproto::scc_info_Region.base,}};
  65. static void InitDefaultsvelodyneLidarParams() {
  66. GOOGLE_PROTOBUF_VERIFY_VERSION;
  67. ::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.DefaultConstruct();
  68. *::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get_mutable() = ::std::string("VLP16", 5);
  69. ::google::protobuf::internal::OnShutdownDestroyString(
  70. ::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get_mutable());
  71. {
  72. void* ptr = &::velodyne::_velodyneLidarParams_default_instance_;
  73. new (ptr) ::velodyne::velodyneLidarParams();
  74. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  75. }
  76. ::velodyne::velodyneLidarParams::InitAsDefaultInstance();
  77. }
  78. ::google::protobuf::internal::SCCInfo<1> scc_info_velodyneLidarParams =
  79. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsvelodyneLidarParams}, {
  80. &protobuf_velodyne_5fconfig_2eproto::scc_info_CalibParameter.base,}};
  81. static void InitDefaultsCalibParameter() {
  82. GOOGLE_PROTOBUF_VERIFY_VERSION;
  83. {
  84. void* ptr = &::velodyne::_CalibParameter_default_instance_;
  85. new (ptr) ::velodyne::CalibParameter();
  86. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  87. }
  88. ::velodyne::CalibParameter::InitAsDefaultInstance();
  89. }
  90. ::google::protobuf::internal::SCCInfo<0> scc_info_CalibParameter =
  91. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCalibParameter}, {}};
  92. static void InitDefaultslidarExtrinsic() {
  93. GOOGLE_PROTOBUF_VERIFY_VERSION;
  94. {
  95. void* ptr = &::velodyne::_lidarExtrinsic_default_instance_;
  96. new (ptr) ::velodyne::lidarExtrinsic();
  97. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  98. }
  99. ::velodyne::lidarExtrinsic::InitAsDefaultInstance();
  100. }
  101. ::google::protobuf::internal::SCCInfo<1> scc_info_lidarExtrinsic =
  102. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultslidarExtrinsic}, {
  103. &protobuf_velodyne_5fconfig_2eproto::scc_info_CalibParameter.base,}};
  104. static void InitDefaultsRegion() {
  105. GOOGLE_PROTOBUF_VERIFY_VERSION;
  106. {
  107. void* ptr = &::velodyne::_Region_default_instance_;
  108. new (ptr) ::velodyne::Region();
  109. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  110. }
  111. ::velodyne::Region::InitAsDefaultInstance();
  112. }
  113. ::google::protobuf::internal::SCCInfo<1> scc_info_Region =
  114. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRegion}, {
  115. &protobuf_velodyne_5fconfig_2eproto::scc_info_lidarExtrinsic.base,}};
  116. void InitDefaults() {
  117. ::google::protobuf::internal::InitSCC(&scc_info_velodyneManagerParams.base);
  118. ::google::protobuf::internal::InitSCC(&scc_info_velodyneLidarParams.base);
  119. ::google::protobuf::internal::InitSCC(&scc_info_CalibParameter.base);
  120. ::google::protobuf::internal::InitSCC(&scc_info_lidarExtrinsic.base);
  121. ::google::protobuf::internal::InitSCC(&scc_info_Region.base);
  122. }
  123. ::google::protobuf::Metadata file_level_metadata[5];
  124. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, _has_bits_),
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, _internal_metadata_),
  127. ~0u, // no _extensions_
  128. ~0u, // no _oneof_case_
  129. ~0u, // no _weak_field_map_
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, velodyne_lidars_),
  131. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, region_),
  132. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, fence_data_path_),
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, fence_log_path_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, left_model_path_),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, right_model_path_),
  136. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneManagerParams, distribution_mode_),
  137. ~0u,
  138. ~0u,
  139. 0,
  140. 1,
  141. 2,
  142. 3,
  143. 4,
  144. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, _has_bits_),
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, _internal_metadata_),
  146. ~0u, // no _extensions_
  147. ~0u, // no _oneof_case_
  148. ~0u, // no _weak_field_map_
  149. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, ip_),
  150. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, port_),
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, model_),
  152. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, calibrationfile_),
  153. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, lidar_id_),
  154. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, max_range_),
  155. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, min_range_),
  156. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, min_angle_),
  157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, max_angle_),
  158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, rpm_),
  159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, calib_),
  160. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::velodyneLidarParams, difop_),
  161. 0,
  162. 6,
  163. 1,
  164. 2,
  165. 4,
  166. 7,
  167. 8,
  168. 5,
  169. 9,
  170. 10,
  171. 3,
  172. 11,
  173. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, _has_bits_),
  174. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, _internal_metadata_),
  175. ~0u, // no _extensions_
  176. ~0u, // no _oneof_case_
  177. ~0u, // no _weak_field_map_
  178. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, r_),
  179. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, p_),
  180. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, y_),
  181. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, cx_),
  182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, cy_),
  183. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::CalibParameter, cz_),
  184. 0,
  185. 1,
  186. 2,
  187. 3,
  188. 4,
  189. 5,
  190. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, _has_bits_),
  191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, _internal_metadata_),
  192. ~0u, // no _extensions_
  193. ~0u, // no _oneof_case_
  194. ~0u, // no _weak_field_map_
  195. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, lidar_id_),
  196. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::lidarExtrinsic, calib_),
  197. 1,
  198. 0,
  199. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, _has_bits_),
  200. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, _internal_metadata_),
  201. ~0u, // no _extensions_
  202. ~0u, // no _oneof_case_
  203. ~0u, // no _weak_field_map_
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, minx_),
  205. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, maxx_),
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, miny_),
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, maxy_),
  208. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, minz_),
  209. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, maxz_),
  210. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, region_id_),
  211. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, lidar_exts_),
  212. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, turnplate_cx_),
  213. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, turnplate_cy_),
  214. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, border_minx_),
  215. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, border_maxx_),
  216. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, plc_offsetx_),
  217. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, plc_offsety_),
  218. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, plc_offset_degree_),
  219. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, plc_border_miny_),
  220. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, plc_border_maxy_),
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, car_min_width_),
  222. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, car_max_width_),
  223. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, car_min_wheelbase_),
  224. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, car_max_wheelbase_),
  225. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, turnplate_angle_limit_anti_clockwise_),
  226. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::velodyne::Region, turnplate_angle_limit_clockwise_),
  227. 0,
  228. 1,
  229. 2,
  230. 3,
  231. 4,
  232. 5,
  233. 6,
  234. ~0u,
  235. 7,
  236. 8,
  237. 9,
  238. 10,
  239. 11,
  240. 12,
  241. 13,
  242. 14,
  243. 15,
  244. 16,
  245. 17,
  246. 18,
  247. 19,
  248. 20,
  249. 21,
  250. };
  251. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  252. { 0, 12, sizeof(::velodyne::velodyneManagerParams)},
  253. { 19, 36, sizeof(::velodyne::velodyneLidarParams)},
  254. { 48, 59, sizeof(::velodyne::CalibParameter)},
  255. { 65, 72, sizeof(::velodyne::lidarExtrinsic)},
  256. { 74, 102, sizeof(::velodyne::Region)},
  257. };
  258. static ::google::protobuf::Message const * const file_default_instances[] = {
  259. reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_velodyneManagerParams_default_instance_),
  260. reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_velodyneLidarParams_default_instance_),
  261. reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_CalibParameter_default_instance_),
  262. reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_lidarExtrinsic_default_instance_),
  263. reinterpret_cast<const ::google::protobuf::Message*>(&::velodyne::_Region_default_instance_),
  264. };
  265. void protobuf_AssignDescriptors() {
  266. AddDescriptors();
  267. AssignDescriptors(
  268. "velodyne_config.proto", schemas, file_default_instances, TableStruct::offsets,
  269. file_level_metadata, NULL, NULL);
  270. }
  271. void protobuf_AssignDescriptorsOnce() {
  272. static ::google::protobuf::internal::once_flag once;
  273. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  274. }
  275. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  276. void protobuf_RegisterTypes(const ::std::string&) {
  277. protobuf_AssignDescriptorsOnce();
  278. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 5);
  279. }
  280. void AddDescriptorsImpl() {
  281. InitDefaults();
  282. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  283. "\n\025velodyne_config.proto\022\010velodyne\"\377\001\n\025ve"
  284. "lodyneManagerParams\0226\n\017velodyne_lidars\030\001"
  285. " \003(\0132\035.velodyne.velodyneLidarParams\022 \n\006r"
  286. "egion\030\002 \003(\0132\020.velodyne.Region\022\031\n\017fence_d"
  287. "ata_path\030\003 \001(\t:\000\022\030\n\016fence_log_path\030\004 \001(\t"
  288. ":\000\022\031\n\017left_model_path\030\005 \001(\t:\000\022\032\n\020right_m"
  289. "odel_path\030\006 \001(\t:\000\022 \n\021distribution_mode\030\007"
  290. " \002(\010:\005false\"\253\002\n\023velodyneLidarParams\022\014\n\002i"
  291. "p\030\001 \002(\t:\000\022\022\n\004port\030\002 \002(\005:\0042368\022\024\n\005model\030\003"
  292. " \002(\t:\005VLP16\022\031\n\017calibrationFile\030\004 \002(\t:\000\022\023"
  293. "\n\010lidar_id\030\005 \002(\005:\0010\022\025\n\tmax_range\030\006 \001(\002:\002"
  294. "10\022\027\n\tmin_range\030\007 \001(\002:\0040.15\022\024\n\tmin_angle"
  295. "\030\010 \001(\005:\0010\022\026\n\tmax_angle\030\t \001(\005:\003360\022\020\n\003rpm"
  296. "\030\n \001(\005:\003600\022\'\n\005calib\030\013 \001(\0132\030.velodyne.Ca"
  297. "libParameter\022\023\n\005difop\030\014 \001(\005:\0047788\"g\n\016Cal"
  298. "ibParameter\022\014\n\001r\030\001 \001(\002:\0010\022\014\n\001p\030\002 \001(\002:\0010\022"
  299. "\014\n\001y\030\003 \001(\002:\0010\022\r\n\002cx\030\004 \001(\002:\0010\022\r\n\002cy\030\005 \001(\002"
  300. ":\0010\022\r\n\002cz\030\006 \001(\002:\0010\"K\n\016lidarExtrinsic\022\020\n\010"
  301. "lidar_id\030\001 \002(\005\022\'\n\005calib\030\002 \001(\0132\030.velodyne"
  302. ".CalibParameter\"\245\004\n\006Region\022\014\n\004minx\030\001 \002(\002"
  303. "\022\014\n\004maxx\030\002 \002(\002\022\014\n\004miny\030\003 \002(\002\022\014\n\004maxy\030\004 \002"
  304. "(\002\022\014\n\004minz\030\005 \002(\002\022\014\n\004maxz\030\006 \002(\002\022\021\n\tregion"
  305. "_id\030\007 \002(\005\022,\n\nlidar_exts\030\010 \003(\0132\030.velodyne"
  306. ".lidarExtrinsic\022\024\n\014turnplate_cx\030\t \002(\002\022\024\n"
  307. "\014turnplate_cy\030\n \002(\002\022\023\n\013border_minx\030\013 \002(\002"
  308. "\022\023\n\013border_maxx\030\014 \002(\002\022\023\n\013plc_offsetx\030\r \002"
  309. "(\002\022\023\n\013plc_offsety\030\016 \002(\002\022\031\n\021plc_offset_de"
  310. "gree\030\017 \002(\002\022\027\n\017plc_border_miny\030\020 \002(\002\022\027\n\017p"
  311. "lc_border_maxy\030\021 \002(\002\022\025\n\rcar_min_width\030\022 "
  312. "\002(\002\022\025\n\rcar_max_width\030\023 \002(\002\022\031\n\021car_min_wh"
  313. "eelbase\030\024 \002(\002\022\031\n\021car_max_wheelbase\030\025 \002(\002"
  314. "\022,\n$turnplate_angle_limit_anti_clockwise"
  315. "\030\026 \002(\002\022\'\n\037turnplate_angle_limit_clockwis"
  316. "e\030\027 \002(\002"
  317. };
  318. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  319. descriptor, 1327);
  320. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  321. "velodyne_config.proto", &protobuf_RegisterTypes);
  322. }
  323. void AddDescriptors() {
  324. static ::google::protobuf::internal::once_flag once;
  325. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  326. }
  327. // Force AddDescriptors() to be called at dynamic initialization time.
  328. struct StaticDescriptorInitializer {
  329. StaticDescriptorInitializer() {
  330. AddDescriptors();
  331. }
  332. } static_descriptor_initializer;
  333. } // namespace protobuf_velodyne_5fconfig_2eproto
  334. namespace velodyne {
  335. // ===================================================================
  336. void velodyneManagerParams::InitAsDefaultInstance() {
  337. }
  338. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  339. const int velodyneManagerParams::kVelodyneLidarsFieldNumber;
  340. const int velodyneManagerParams::kRegionFieldNumber;
  341. const int velodyneManagerParams::kFenceDataPathFieldNumber;
  342. const int velodyneManagerParams::kFenceLogPathFieldNumber;
  343. const int velodyneManagerParams::kLeftModelPathFieldNumber;
  344. const int velodyneManagerParams::kRightModelPathFieldNumber;
  345. const int velodyneManagerParams::kDistributionModeFieldNumber;
  346. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  347. velodyneManagerParams::velodyneManagerParams()
  348. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  349. ::google::protobuf::internal::InitSCC(
  350. &protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneManagerParams.base);
  351. SharedCtor();
  352. // @@protoc_insertion_point(constructor:velodyne.velodyneManagerParams)
  353. }
  354. velodyneManagerParams::velodyneManagerParams(const velodyneManagerParams& from)
  355. : ::google::protobuf::Message(),
  356. _internal_metadata_(NULL),
  357. _has_bits_(from._has_bits_),
  358. velodyne_lidars_(from.velodyne_lidars_),
  359. region_(from.region_) {
  360. _internal_metadata_.MergeFrom(from._internal_metadata_);
  361. fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  362. if (from.has_fence_data_path()) {
  363. fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
  364. }
  365. fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  366. if (from.has_fence_log_path()) {
  367. fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
  368. }
  369. left_model_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  370. if (from.has_left_model_path()) {
  371. left_model_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.left_model_path_);
  372. }
  373. right_model_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  374. if (from.has_right_model_path()) {
  375. right_model_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.right_model_path_);
  376. }
  377. distribution_mode_ = from.distribution_mode_;
  378. // @@protoc_insertion_point(copy_constructor:velodyne.velodyneManagerParams)
  379. }
  380. void velodyneManagerParams::SharedCtor() {
  381. fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  382. fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  383. left_model_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  384. right_model_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  385. distribution_mode_ = false;
  386. }
  387. velodyneManagerParams::~velodyneManagerParams() {
  388. // @@protoc_insertion_point(destructor:velodyne.velodyneManagerParams)
  389. SharedDtor();
  390. }
  391. void velodyneManagerParams::SharedDtor() {
  392. fence_data_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  393. fence_log_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  394. left_model_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  395. right_model_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  396. }
  397. void velodyneManagerParams::SetCachedSize(int size) const {
  398. _cached_size_.Set(size);
  399. }
  400. const ::google::protobuf::Descriptor* velodyneManagerParams::descriptor() {
  401. ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  402. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  403. }
  404. const velodyneManagerParams& velodyneManagerParams::default_instance() {
  405. ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneManagerParams.base);
  406. return *internal_default_instance();
  407. }
  408. void velodyneManagerParams::Clear() {
  409. // @@protoc_insertion_point(message_clear_start:velodyne.velodyneManagerParams)
  410. ::google::protobuf::uint32 cached_has_bits = 0;
  411. // Prevent compiler warnings about cached_has_bits being unused
  412. (void) cached_has_bits;
  413. velodyne_lidars_.Clear();
  414. region_.Clear();
  415. cached_has_bits = _has_bits_[0];
  416. if (cached_has_bits & 15u) {
  417. if (cached_has_bits & 0x00000001u) {
  418. fence_data_path_.ClearNonDefaultToEmptyNoArena();
  419. }
  420. if (cached_has_bits & 0x00000002u) {
  421. fence_log_path_.ClearNonDefaultToEmptyNoArena();
  422. }
  423. if (cached_has_bits & 0x00000004u) {
  424. left_model_path_.ClearNonDefaultToEmptyNoArena();
  425. }
  426. if (cached_has_bits & 0x00000008u) {
  427. right_model_path_.ClearNonDefaultToEmptyNoArena();
  428. }
  429. }
  430. distribution_mode_ = false;
  431. _has_bits_.Clear();
  432. _internal_metadata_.Clear();
  433. }
  434. bool velodyneManagerParams::MergePartialFromCodedStream(
  435. ::google::protobuf::io::CodedInputStream* input) {
  436. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  437. ::google::protobuf::uint32 tag;
  438. // @@protoc_insertion_point(parse_start:velodyne.velodyneManagerParams)
  439. for (;;) {
  440. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  441. tag = p.first;
  442. if (!p.second) goto handle_unusual;
  443. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  444. // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
  445. case 1: {
  446. if (static_cast< ::google::protobuf::uint8>(tag) ==
  447. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  448. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  449. input, add_velodyne_lidars()));
  450. } else {
  451. goto handle_unusual;
  452. }
  453. break;
  454. }
  455. // repeated .velodyne.Region region = 2;
  456. case 2: {
  457. if (static_cast< ::google::protobuf::uint8>(tag) ==
  458. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  459. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  460. input, add_region()));
  461. } else {
  462. goto handle_unusual;
  463. }
  464. break;
  465. }
  466. // optional string fence_data_path = 3 [default = ""];
  467. case 3: {
  468. if (static_cast< ::google::protobuf::uint8>(tag) ==
  469. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  470. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  471. input, this->mutable_fence_data_path()));
  472. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  473. this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
  474. ::google::protobuf::internal::WireFormat::PARSE,
  475. "velodyne.velodyneManagerParams.fence_data_path");
  476. } else {
  477. goto handle_unusual;
  478. }
  479. break;
  480. }
  481. // optional string fence_log_path = 4 [default = ""];
  482. case 4: {
  483. if (static_cast< ::google::protobuf::uint8>(tag) ==
  484. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  485. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  486. input, this->mutable_fence_log_path()));
  487. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  488. this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
  489. ::google::protobuf::internal::WireFormat::PARSE,
  490. "velodyne.velodyneManagerParams.fence_log_path");
  491. } else {
  492. goto handle_unusual;
  493. }
  494. break;
  495. }
  496. // optional string left_model_path = 5 [default = ""];
  497. case 5: {
  498. if (static_cast< ::google::protobuf::uint8>(tag) ==
  499. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  500. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  501. input, this->mutable_left_model_path()));
  502. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  503. this->left_model_path().data(), static_cast<int>(this->left_model_path().length()),
  504. ::google::protobuf::internal::WireFormat::PARSE,
  505. "velodyne.velodyneManagerParams.left_model_path");
  506. } else {
  507. goto handle_unusual;
  508. }
  509. break;
  510. }
  511. // optional string right_model_path = 6 [default = ""];
  512. case 6: {
  513. if (static_cast< ::google::protobuf::uint8>(tag) ==
  514. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  515. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  516. input, this->mutable_right_model_path()));
  517. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  518. this->right_model_path().data(), static_cast<int>(this->right_model_path().length()),
  519. ::google::protobuf::internal::WireFormat::PARSE,
  520. "velodyne.velodyneManagerParams.right_model_path");
  521. } else {
  522. goto handle_unusual;
  523. }
  524. break;
  525. }
  526. // required bool distribution_mode = 7 [default = false];
  527. case 7: {
  528. if (static_cast< ::google::protobuf::uint8>(tag) ==
  529. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  530. set_has_distribution_mode();
  531. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  532. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  533. input, &distribution_mode_)));
  534. } else {
  535. goto handle_unusual;
  536. }
  537. break;
  538. }
  539. default: {
  540. handle_unusual:
  541. if (tag == 0) {
  542. goto success;
  543. }
  544. DO_(::google::protobuf::internal::WireFormat::SkipField(
  545. input, tag, _internal_metadata_.mutable_unknown_fields()));
  546. break;
  547. }
  548. }
  549. }
  550. success:
  551. // @@protoc_insertion_point(parse_success:velodyne.velodyneManagerParams)
  552. return true;
  553. failure:
  554. // @@protoc_insertion_point(parse_failure:velodyne.velodyneManagerParams)
  555. return false;
  556. #undef DO_
  557. }
  558. void velodyneManagerParams::SerializeWithCachedSizes(
  559. ::google::protobuf::io::CodedOutputStream* output) const {
  560. // @@protoc_insertion_point(serialize_start:velodyne.velodyneManagerParams)
  561. ::google::protobuf::uint32 cached_has_bits = 0;
  562. (void) cached_has_bits;
  563. // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
  564. for (unsigned int i = 0,
  565. n = static_cast<unsigned int>(this->velodyne_lidars_size()); i < n; i++) {
  566. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  567. 1,
  568. this->velodyne_lidars(static_cast<int>(i)),
  569. output);
  570. }
  571. // repeated .velodyne.Region region = 2;
  572. for (unsigned int i = 0,
  573. n = static_cast<unsigned int>(this->region_size()); i < n; i++) {
  574. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  575. 2,
  576. this->region(static_cast<int>(i)),
  577. output);
  578. }
  579. cached_has_bits = _has_bits_[0];
  580. // optional string fence_data_path = 3 [default = ""];
  581. if (cached_has_bits & 0x00000001u) {
  582. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  583. this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
  584. ::google::protobuf::internal::WireFormat::SERIALIZE,
  585. "velodyne.velodyneManagerParams.fence_data_path");
  586. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  587. 3, this->fence_data_path(), output);
  588. }
  589. // optional string fence_log_path = 4 [default = ""];
  590. if (cached_has_bits & 0x00000002u) {
  591. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  592. this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
  593. ::google::protobuf::internal::WireFormat::SERIALIZE,
  594. "velodyne.velodyneManagerParams.fence_log_path");
  595. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  596. 4, this->fence_log_path(), output);
  597. }
  598. // optional string left_model_path = 5 [default = ""];
  599. if (cached_has_bits & 0x00000004u) {
  600. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  601. this->left_model_path().data(), static_cast<int>(this->left_model_path().length()),
  602. ::google::protobuf::internal::WireFormat::SERIALIZE,
  603. "velodyne.velodyneManagerParams.left_model_path");
  604. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  605. 5, this->left_model_path(), output);
  606. }
  607. // optional string right_model_path = 6 [default = ""];
  608. if (cached_has_bits & 0x00000008u) {
  609. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  610. this->right_model_path().data(), static_cast<int>(this->right_model_path().length()),
  611. ::google::protobuf::internal::WireFormat::SERIALIZE,
  612. "velodyne.velodyneManagerParams.right_model_path");
  613. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  614. 6, this->right_model_path(), output);
  615. }
  616. // required bool distribution_mode = 7 [default = false];
  617. if (cached_has_bits & 0x00000010u) {
  618. ::google::protobuf::internal::WireFormatLite::WriteBool(7, this->distribution_mode(), output);
  619. }
  620. if (_internal_metadata_.have_unknown_fields()) {
  621. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  622. _internal_metadata_.unknown_fields(), output);
  623. }
  624. // @@protoc_insertion_point(serialize_end:velodyne.velodyneManagerParams)
  625. }
  626. ::google::protobuf::uint8* velodyneManagerParams::InternalSerializeWithCachedSizesToArray(
  627. bool deterministic, ::google::protobuf::uint8* target) const {
  628. (void)deterministic; // Unused
  629. // @@protoc_insertion_point(serialize_to_array_start:velodyne.velodyneManagerParams)
  630. ::google::protobuf::uint32 cached_has_bits = 0;
  631. (void) cached_has_bits;
  632. // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
  633. for (unsigned int i = 0,
  634. n = static_cast<unsigned int>(this->velodyne_lidars_size()); i < n; i++) {
  635. target = ::google::protobuf::internal::WireFormatLite::
  636. InternalWriteMessageToArray(
  637. 1, this->velodyne_lidars(static_cast<int>(i)), deterministic, target);
  638. }
  639. // repeated .velodyne.Region region = 2;
  640. for (unsigned int i = 0,
  641. n = static_cast<unsigned int>(this->region_size()); i < n; i++) {
  642. target = ::google::protobuf::internal::WireFormatLite::
  643. InternalWriteMessageToArray(
  644. 2, this->region(static_cast<int>(i)), deterministic, target);
  645. }
  646. cached_has_bits = _has_bits_[0];
  647. // optional string fence_data_path = 3 [default = ""];
  648. if (cached_has_bits & 0x00000001u) {
  649. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  650. this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
  651. ::google::protobuf::internal::WireFormat::SERIALIZE,
  652. "velodyne.velodyneManagerParams.fence_data_path");
  653. target =
  654. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  655. 3, this->fence_data_path(), target);
  656. }
  657. // optional string fence_log_path = 4 [default = ""];
  658. if (cached_has_bits & 0x00000002u) {
  659. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  660. this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
  661. ::google::protobuf::internal::WireFormat::SERIALIZE,
  662. "velodyne.velodyneManagerParams.fence_log_path");
  663. target =
  664. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  665. 4, this->fence_log_path(), target);
  666. }
  667. // optional string left_model_path = 5 [default = ""];
  668. if (cached_has_bits & 0x00000004u) {
  669. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  670. this->left_model_path().data(), static_cast<int>(this->left_model_path().length()),
  671. ::google::protobuf::internal::WireFormat::SERIALIZE,
  672. "velodyne.velodyneManagerParams.left_model_path");
  673. target =
  674. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  675. 5, this->left_model_path(), target);
  676. }
  677. // optional string right_model_path = 6 [default = ""];
  678. if (cached_has_bits & 0x00000008u) {
  679. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  680. this->right_model_path().data(), static_cast<int>(this->right_model_path().length()),
  681. ::google::protobuf::internal::WireFormat::SERIALIZE,
  682. "velodyne.velodyneManagerParams.right_model_path");
  683. target =
  684. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  685. 6, this->right_model_path(), target);
  686. }
  687. // required bool distribution_mode = 7 [default = false];
  688. if (cached_has_bits & 0x00000010u) {
  689. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(7, this->distribution_mode(), target);
  690. }
  691. if (_internal_metadata_.have_unknown_fields()) {
  692. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  693. _internal_metadata_.unknown_fields(), target);
  694. }
  695. // @@protoc_insertion_point(serialize_to_array_end:velodyne.velodyneManagerParams)
  696. return target;
  697. }
  698. size_t velodyneManagerParams::ByteSizeLong() const {
  699. // @@protoc_insertion_point(message_byte_size_start:velodyne.velodyneManagerParams)
  700. size_t total_size = 0;
  701. if (_internal_metadata_.have_unknown_fields()) {
  702. total_size +=
  703. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  704. _internal_metadata_.unknown_fields());
  705. }
  706. // required bool distribution_mode = 7 [default = false];
  707. if (has_distribution_mode()) {
  708. total_size += 1 + 1;
  709. }
  710. // repeated .velodyne.velodyneLidarParams velodyne_lidars = 1;
  711. {
  712. unsigned int count = static_cast<unsigned int>(this->velodyne_lidars_size());
  713. total_size += 1UL * count;
  714. for (unsigned int i = 0; i < count; i++) {
  715. total_size +=
  716. ::google::protobuf::internal::WireFormatLite::MessageSize(
  717. this->velodyne_lidars(static_cast<int>(i)));
  718. }
  719. }
  720. // repeated .velodyne.Region region = 2;
  721. {
  722. unsigned int count = static_cast<unsigned int>(this->region_size());
  723. total_size += 1UL * count;
  724. for (unsigned int i = 0; i < count; i++) {
  725. total_size +=
  726. ::google::protobuf::internal::WireFormatLite::MessageSize(
  727. this->region(static_cast<int>(i)));
  728. }
  729. }
  730. if (_has_bits_[0 / 32] & 15u) {
  731. // optional string fence_data_path = 3 [default = ""];
  732. if (has_fence_data_path()) {
  733. total_size += 1 +
  734. ::google::protobuf::internal::WireFormatLite::StringSize(
  735. this->fence_data_path());
  736. }
  737. // optional string fence_log_path = 4 [default = ""];
  738. if (has_fence_log_path()) {
  739. total_size += 1 +
  740. ::google::protobuf::internal::WireFormatLite::StringSize(
  741. this->fence_log_path());
  742. }
  743. // optional string left_model_path = 5 [default = ""];
  744. if (has_left_model_path()) {
  745. total_size += 1 +
  746. ::google::protobuf::internal::WireFormatLite::StringSize(
  747. this->left_model_path());
  748. }
  749. // optional string right_model_path = 6 [default = ""];
  750. if (has_right_model_path()) {
  751. total_size += 1 +
  752. ::google::protobuf::internal::WireFormatLite::StringSize(
  753. this->right_model_path());
  754. }
  755. }
  756. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  757. SetCachedSize(cached_size);
  758. return total_size;
  759. }
  760. void velodyneManagerParams::MergeFrom(const ::google::protobuf::Message& from) {
  761. // @@protoc_insertion_point(generalized_merge_from_start:velodyne.velodyneManagerParams)
  762. GOOGLE_DCHECK_NE(&from, this);
  763. const velodyneManagerParams* source =
  764. ::google::protobuf::internal::DynamicCastToGenerated<const velodyneManagerParams>(
  765. &from);
  766. if (source == NULL) {
  767. // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.velodyneManagerParams)
  768. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  769. } else {
  770. // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.velodyneManagerParams)
  771. MergeFrom(*source);
  772. }
  773. }
  774. void velodyneManagerParams::MergeFrom(const velodyneManagerParams& from) {
  775. // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.velodyneManagerParams)
  776. GOOGLE_DCHECK_NE(&from, this);
  777. _internal_metadata_.MergeFrom(from._internal_metadata_);
  778. ::google::protobuf::uint32 cached_has_bits = 0;
  779. (void) cached_has_bits;
  780. velodyne_lidars_.MergeFrom(from.velodyne_lidars_);
  781. region_.MergeFrom(from.region_);
  782. cached_has_bits = from._has_bits_[0];
  783. if (cached_has_bits & 31u) {
  784. if (cached_has_bits & 0x00000001u) {
  785. set_has_fence_data_path();
  786. fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
  787. }
  788. if (cached_has_bits & 0x00000002u) {
  789. set_has_fence_log_path();
  790. fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
  791. }
  792. if (cached_has_bits & 0x00000004u) {
  793. set_has_left_model_path();
  794. left_model_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.left_model_path_);
  795. }
  796. if (cached_has_bits & 0x00000008u) {
  797. set_has_right_model_path();
  798. right_model_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.right_model_path_);
  799. }
  800. if (cached_has_bits & 0x00000010u) {
  801. distribution_mode_ = from.distribution_mode_;
  802. }
  803. _has_bits_[0] |= cached_has_bits;
  804. }
  805. }
  806. void velodyneManagerParams::CopyFrom(const ::google::protobuf::Message& from) {
  807. // @@protoc_insertion_point(generalized_copy_from_start:velodyne.velodyneManagerParams)
  808. if (&from == this) return;
  809. Clear();
  810. MergeFrom(from);
  811. }
  812. void velodyneManagerParams::CopyFrom(const velodyneManagerParams& from) {
  813. // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.velodyneManagerParams)
  814. if (&from == this) return;
  815. Clear();
  816. MergeFrom(from);
  817. }
  818. bool velodyneManagerParams::IsInitialized() const {
  819. if ((_has_bits_[0] & 0x00000010) != 0x00000010) return false;
  820. if (!::google::protobuf::internal::AllAreInitialized(this->velodyne_lidars())) return false;
  821. if (!::google::protobuf::internal::AllAreInitialized(this->region())) return false;
  822. return true;
  823. }
  824. void velodyneManagerParams::Swap(velodyneManagerParams* other) {
  825. if (other == this) return;
  826. InternalSwap(other);
  827. }
  828. void velodyneManagerParams::InternalSwap(velodyneManagerParams* other) {
  829. using std::swap;
  830. CastToBase(&velodyne_lidars_)->InternalSwap(CastToBase(&other->velodyne_lidars_));
  831. CastToBase(&region_)->InternalSwap(CastToBase(&other->region_));
  832. fence_data_path_.Swap(&other->fence_data_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  833. GetArenaNoVirtual());
  834. fence_log_path_.Swap(&other->fence_log_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  835. GetArenaNoVirtual());
  836. left_model_path_.Swap(&other->left_model_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  837. GetArenaNoVirtual());
  838. right_model_path_.Swap(&other->right_model_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  839. GetArenaNoVirtual());
  840. swap(distribution_mode_, other->distribution_mode_);
  841. swap(_has_bits_[0], other->_has_bits_[0]);
  842. _internal_metadata_.Swap(&other->_internal_metadata_);
  843. }
  844. ::google::protobuf::Metadata velodyneManagerParams::GetMetadata() const {
  845. protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  846. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  847. }
  848. // ===================================================================
  849. void velodyneLidarParams::InitAsDefaultInstance() {
  850. ::velodyne::_velodyneLidarParams_default_instance_._instance.get_mutable()->calib_ = const_cast< ::velodyne::CalibParameter*>(
  851. ::velodyne::CalibParameter::internal_default_instance());
  852. }
  853. ::google::protobuf::internal::ExplicitlyConstructed<::std::string> velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_;
  854. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  855. const int velodyneLidarParams::kIpFieldNumber;
  856. const int velodyneLidarParams::kPortFieldNumber;
  857. const int velodyneLidarParams::kModelFieldNumber;
  858. const int velodyneLidarParams::kCalibrationFileFieldNumber;
  859. const int velodyneLidarParams::kLidarIdFieldNumber;
  860. const int velodyneLidarParams::kMaxRangeFieldNumber;
  861. const int velodyneLidarParams::kMinRangeFieldNumber;
  862. const int velodyneLidarParams::kMinAngleFieldNumber;
  863. const int velodyneLidarParams::kMaxAngleFieldNumber;
  864. const int velodyneLidarParams::kRpmFieldNumber;
  865. const int velodyneLidarParams::kCalibFieldNumber;
  866. const int velodyneLidarParams::kDifopFieldNumber;
  867. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  868. velodyneLidarParams::velodyneLidarParams()
  869. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  870. ::google::protobuf::internal::InitSCC(
  871. &protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneLidarParams.base);
  872. SharedCtor();
  873. // @@protoc_insertion_point(constructor:velodyne.velodyneLidarParams)
  874. }
  875. velodyneLidarParams::velodyneLidarParams(const velodyneLidarParams& from)
  876. : ::google::protobuf::Message(),
  877. _internal_metadata_(NULL),
  878. _has_bits_(from._has_bits_) {
  879. _internal_metadata_.MergeFrom(from._internal_metadata_);
  880. ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  881. if (from.has_ip()) {
  882. ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
  883. }
  884. model_.UnsafeSetDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get());
  885. if (from.has_model()) {
  886. model_.AssignWithDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get(), from.model_);
  887. }
  888. calibrationfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  889. if (from.has_calibrationfile()) {
  890. calibrationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.calibrationfile_);
  891. }
  892. if (from.has_calib()) {
  893. calib_ = new ::velodyne::CalibParameter(*from.calib_);
  894. } else {
  895. calib_ = NULL;
  896. }
  897. ::memcpy(&lidar_id_, &from.lidar_id_,
  898. static_cast<size_t>(reinterpret_cast<char*>(&difop_) -
  899. reinterpret_cast<char*>(&lidar_id_)) + sizeof(difop_));
  900. // @@protoc_insertion_point(copy_constructor:velodyne.velodyneLidarParams)
  901. }
  902. void velodyneLidarParams::SharedCtor() {
  903. ip_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  904. model_.UnsafeSetDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get());
  905. calibrationfile_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  906. ::memset(&calib_, 0, static_cast<size_t>(
  907. reinterpret_cast<char*>(&min_angle_) -
  908. reinterpret_cast<char*>(&calib_)) + sizeof(min_angle_));
  909. port_ = 2368;
  910. max_range_ = 10;
  911. min_range_ = 0.15f;
  912. max_angle_ = 360;
  913. rpm_ = 600;
  914. difop_ = 7788;
  915. }
  916. velodyneLidarParams::~velodyneLidarParams() {
  917. // @@protoc_insertion_point(destructor:velodyne.velodyneLidarParams)
  918. SharedDtor();
  919. }
  920. void velodyneLidarParams::SharedDtor() {
  921. ip_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  922. model_.DestroyNoArena(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get());
  923. calibrationfile_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  924. if (this != internal_default_instance()) delete calib_;
  925. }
  926. void velodyneLidarParams::SetCachedSize(int size) const {
  927. _cached_size_.Set(size);
  928. }
  929. const ::google::protobuf::Descriptor* velodyneLidarParams::descriptor() {
  930. ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  931. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  932. }
  933. const velodyneLidarParams& velodyneLidarParams::default_instance() {
  934. ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_velodyneLidarParams.base);
  935. return *internal_default_instance();
  936. }
  937. void velodyneLidarParams::Clear() {
  938. // @@protoc_insertion_point(message_clear_start:velodyne.velodyneLidarParams)
  939. ::google::protobuf::uint32 cached_has_bits = 0;
  940. // Prevent compiler warnings about cached_has_bits being unused
  941. (void) cached_has_bits;
  942. cached_has_bits = _has_bits_[0];
  943. if (cached_has_bits & 15u) {
  944. if (cached_has_bits & 0x00000001u) {
  945. ip_.ClearNonDefaultToEmptyNoArena();
  946. }
  947. if (cached_has_bits & 0x00000002u) {
  948. model_.UnsafeMutablePointer()->assign(*&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get());
  949. }
  950. if (cached_has_bits & 0x00000004u) {
  951. calibrationfile_.ClearNonDefaultToEmptyNoArena();
  952. }
  953. if (cached_has_bits & 0x00000008u) {
  954. GOOGLE_DCHECK(calib_ != NULL);
  955. calib_->Clear();
  956. }
  957. }
  958. if (cached_has_bits & 240u) {
  959. ::memset(&lidar_id_, 0, static_cast<size_t>(
  960. reinterpret_cast<char*>(&min_angle_) -
  961. reinterpret_cast<char*>(&lidar_id_)) + sizeof(min_angle_));
  962. port_ = 2368;
  963. max_range_ = 10;
  964. }
  965. if (cached_has_bits & 3840u) {
  966. min_range_ = 0.15f;
  967. max_angle_ = 360;
  968. rpm_ = 600;
  969. difop_ = 7788;
  970. }
  971. _has_bits_.Clear();
  972. _internal_metadata_.Clear();
  973. }
  974. bool velodyneLidarParams::MergePartialFromCodedStream(
  975. ::google::protobuf::io::CodedInputStream* input) {
  976. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  977. ::google::protobuf::uint32 tag;
  978. // @@protoc_insertion_point(parse_start:velodyne.velodyneLidarParams)
  979. for (;;) {
  980. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  981. tag = p.first;
  982. if (!p.second) goto handle_unusual;
  983. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  984. // required string ip = 1 [default = ""];
  985. case 1: {
  986. if (static_cast< ::google::protobuf::uint8>(tag) ==
  987. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  988. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  989. input, this->mutable_ip()));
  990. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  991. this->ip().data(), static_cast<int>(this->ip().length()),
  992. ::google::protobuf::internal::WireFormat::PARSE,
  993. "velodyne.velodyneLidarParams.ip");
  994. } else {
  995. goto handle_unusual;
  996. }
  997. break;
  998. }
  999. // required int32 port = 2 [default = 2368];
  1000. case 2: {
  1001. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1002. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  1003. set_has_port();
  1004. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1005. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1006. input, &port_)));
  1007. } else {
  1008. goto handle_unusual;
  1009. }
  1010. break;
  1011. }
  1012. // required string model = 3 [default = "VLP16"];
  1013. case 3: {
  1014. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1015. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1016. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1017. input, this->mutable_model()));
  1018. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1019. this->model().data(), static_cast<int>(this->model().length()),
  1020. ::google::protobuf::internal::WireFormat::PARSE,
  1021. "velodyne.velodyneLidarParams.model");
  1022. } else {
  1023. goto handle_unusual;
  1024. }
  1025. break;
  1026. }
  1027. // required string calibrationFile = 4 [default = ""];
  1028. case 4: {
  1029. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1030. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  1031. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  1032. input, this->mutable_calibrationfile()));
  1033. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1034. this->calibrationfile().data(), static_cast<int>(this->calibrationfile().length()),
  1035. ::google::protobuf::internal::WireFormat::PARSE,
  1036. "velodyne.velodyneLidarParams.calibrationFile");
  1037. } else {
  1038. goto handle_unusual;
  1039. }
  1040. break;
  1041. }
  1042. // required int32 lidar_id = 5 [default = 0];
  1043. case 5: {
  1044. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1045. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  1046. set_has_lidar_id();
  1047. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1048. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1049. input, &lidar_id_)));
  1050. } else {
  1051. goto handle_unusual;
  1052. }
  1053. break;
  1054. }
  1055. // optional float max_range = 6 [default = 10];
  1056. case 6: {
  1057. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1058. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  1059. set_has_max_range();
  1060. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1061. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1062. input, &max_range_)));
  1063. } else {
  1064. goto handle_unusual;
  1065. }
  1066. break;
  1067. }
  1068. // optional float min_range = 7 [default = 0.15];
  1069. case 7: {
  1070. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1071. static_cast< ::google::protobuf::uint8>(61u /* 61 & 0xFF */)) {
  1072. set_has_min_range();
  1073. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1074. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1075. input, &min_range_)));
  1076. } else {
  1077. goto handle_unusual;
  1078. }
  1079. break;
  1080. }
  1081. // optional int32 min_angle = 8 [default = 0];
  1082. case 8: {
  1083. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1084. static_cast< ::google::protobuf::uint8>(64u /* 64 & 0xFF */)) {
  1085. set_has_min_angle();
  1086. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1087. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1088. input, &min_angle_)));
  1089. } else {
  1090. goto handle_unusual;
  1091. }
  1092. break;
  1093. }
  1094. // optional int32 max_angle = 9 [default = 360];
  1095. case 9: {
  1096. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1097. static_cast< ::google::protobuf::uint8>(72u /* 72 & 0xFF */)) {
  1098. set_has_max_angle();
  1099. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1100. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1101. input, &max_angle_)));
  1102. } else {
  1103. goto handle_unusual;
  1104. }
  1105. break;
  1106. }
  1107. // optional int32 rpm = 10 [default = 600];
  1108. case 10: {
  1109. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1110. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  1111. set_has_rpm();
  1112. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1113. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1114. input, &rpm_)));
  1115. } else {
  1116. goto handle_unusual;
  1117. }
  1118. break;
  1119. }
  1120. // optional .velodyne.CalibParameter calib = 11;
  1121. case 11: {
  1122. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1123. static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
  1124. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1125. input, mutable_calib()));
  1126. } else {
  1127. goto handle_unusual;
  1128. }
  1129. break;
  1130. }
  1131. // optional int32 difop = 12 [default = 7788];
  1132. case 12: {
  1133. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1134. static_cast< ::google::protobuf::uint8>(96u /* 96 & 0xFF */)) {
  1135. set_has_difop();
  1136. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1137. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1138. input, &difop_)));
  1139. } else {
  1140. goto handle_unusual;
  1141. }
  1142. break;
  1143. }
  1144. default: {
  1145. handle_unusual:
  1146. if (tag == 0) {
  1147. goto success;
  1148. }
  1149. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1150. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1151. break;
  1152. }
  1153. }
  1154. }
  1155. success:
  1156. // @@protoc_insertion_point(parse_success:velodyne.velodyneLidarParams)
  1157. return true;
  1158. failure:
  1159. // @@protoc_insertion_point(parse_failure:velodyne.velodyneLidarParams)
  1160. return false;
  1161. #undef DO_
  1162. }
  1163. void velodyneLidarParams::SerializeWithCachedSizes(
  1164. ::google::protobuf::io::CodedOutputStream* output) const {
  1165. // @@protoc_insertion_point(serialize_start:velodyne.velodyneLidarParams)
  1166. ::google::protobuf::uint32 cached_has_bits = 0;
  1167. (void) cached_has_bits;
  1168. cached_has_bits = _has_bits_[0];
  1169. // required string ip = 1 [default = ""];
  1170. if (cached_has_bits & 0x00000001u) {
  1171. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1172. this->ip().data(), static_cast<int>(this->ip().length()),
  1173. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1174. "velodyne.velodyneLidarParams.ip");
  1175. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1176. 1, this->ip(), output);
  1177. }
  1178. // required int32 port = 2 [default = 2368];
  1179. if (cached_has_bits & 0x00000040u) {
  1180. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->port(), output);
  1181. }
  1182. // required string model = 3 [default = "VLP16"];
  1183. if (cached_has_bits & 0x00000002u) {
  1184. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1185. this->model().data(), static_cast<int>(this->model().length()),
  1186. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1187. "velodyne.velodyneLidarParams.model");
  1188. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1189. 3, this->model(), output);
  1190. }
  1191. // required string calibrationFile = 4 [default = ""];
  1192. if (cached_has_bits & 0x00000004u) {
  1193. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1194. this->calibrationfile().data(), static_cast<int>(this->calibrationfile().length()),
  1195. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1196. "velodyne.velodyneLidarParams.calibrationFile");
  1197. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  1198. 4, this->calibrationfile(), output);
  1199. }
  1200. // required int32 lidar_id = 5 [default = 0];
  1201. if (cached_has_bits & 0x00000010u) {
  1202. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->lidar_id(), output);
  1203. }
  1204. // optional float max_range = 6 [default = 10];
  1205. if (cached_has_bits & 0x00000080u) {
  1206. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->max_range(), output);
  1207. }
  1208. // optional float min_range = 7 [default = 0.15];
  1209. if (cached_has_bits & 0x00000100u) {
  1210. ::google::protobuf::internal::WireFormatLite::WriteFloat(7, this->min_range(), output);
  1211. }
  1212. // optional int32 min_angle = 8 [default = 0];
  1213. if (cached_has_bits & 0x00000020u) {
  1214. ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->min_angle(), output);
  1215. }
  1216. // optional int32 max_angle = 9 [default = 360];
  1217. if (cached_has_bits & 0x00000200u) {
  1218. ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->max_angle(), output);
  1219. }
  1220. // optional int32 rpm = 10 [default = 600];
  1221. if (cached_has_bits & 0x00000400u) {
  1222. ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->rpm(), output);
  1223. }
  1224. // optional .velodyne.CalibParameter calib = 11;
  1225. if (cached_has_bits & 0x00000008u) {
  1226. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1227. 11, this->_internal_calib(), output);
  1228. }
  1229. // optional int32 difop = 12 [default = 7788];
  1230. if (cached_has_bits & 0x00000800u) {
  1231. ::google::protobuf::internal::WireFormatLite::WriteInt32(12, this->difop(), output);
  1232. }
  1233. if (_internal_metadata_.have_unknown_fields()) {
  1234. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1235. _internal_metadata_.unknown_fields(), output);
  1236. }
  1237. // @@protoc_insertion_point(serialize_end:velodyne.velodyneLidarParams)
  1238. }
  1239. ::google::protobuf::uint8* velodyneLidarParams::InternalSerializeWithCachedSizesToArray(
  1240. bool deterministic, ::google::protobuf::uint8* target) const {
  1241. (void)deterministic; // Unused
  1242. // @@protoc_insertion_point(serialize_to_array_start:velodyne.velodyneLidarParams)
  1243. ::google::protobuf::uint32 cached_has_bits = 0;
  1244. (void) cached_has_bits;
  1245. cached_has_bits = _has_bits_[0];
  1246. // required string ip = 1 [default = ""];
  1247. if (cached_has_bits & 0x00000001u) {
  1248. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1249. this->ip().data(), static_cast<int>(this->ip().length()),
  1250. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1251. "velodyne.velodyneLidarParams.ip");
  1252. target =
  1253. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1254. 1, this->ip(), target);
  1255. }
  1256. // required int32 port = 2 [default = 2368];
  1257. if (cached_has_bits & 0x00000040u) {
  1258. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->port(), target);
  1259. }
  1260. // required string model = 3 [default = "VLP16"];
  1261. if (cached_has_bits & 0x00000002u) {
  1262. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1263. this->model().data(), static_cast<int>(this->model().length()),
  1264. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1265. "velodyne.velodyneLidarParams.model");
  1266. target =
  1267. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1268. 3, this->model(), target);
  1269. }
  1270. // required string calibrationFile = 4 [default = ""];
  1271. if (cached_has_bits & 0x00000004u) {
  1272. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  1273. this->calibrationfile().data(), static_cast<int>(this->calibrationfile().length()),
  1274. ::google::protobuf::internal::WireFormat::SERIALIZE,
  1275. "velodyne.velodyneLidarParams.calibrationFile");
  1276. target =
  1277. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  1278. 4, this->calibrationfile(), target);
  1279. }
  1280. // required int32 lidar_id = 5 [default = 0];
  1281. if (cached_has_bits & 0x00000010u) {
  1282. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->lidar_id(), target);
  1283. }
  1284. // optional float max_range = 6 [default = 10];
  1285. if (cached_has_bits & 0x00000080u) {
  1286. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->max_range(), target);
  1287. }
  1288. // optional float min_range = 7 [default = 0.15];
  1289. if (cached_has_bits & 0x00000100u) {
  1290. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(7, this->min_range(), target);
  1291. }
  1292. // optional int32 min_angle = 8 [default = 0];
  1293. if (cached_has_bits & 0x00000020u) {
  1294. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->min_angle(), target);
  1295. }
  1296. // optional int32 max_angle = 9 [default = 360];
  1297. if (cached_has_bits & 0x00000200u) {
  1298. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->max_angle(), target);
  1299. }
  1300. // optional int32 rpm = 10 [default = 600];
  1301. if (cached_has_bits & 0x00000400u) {
  1302. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->rpm(), target);
  1303. }
  1304. // optional .velodyne.CalibParameter calib = 11;
  1305. if (cached_has_bits & 0x00000008u) {
  1306. target = ::google::protobuf::internal::WireFormatLite::
  1307. InternalWriteMessageToArray(
  1308. 11, this->_internal_calib(), deterministic, target);
  1309. }
  1310. // optional int32 difop = 12 [default = 7788];
  1311. if (cached_has_bits & 0x00000800u) {
  1312. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(12, this->difop(), target);
  1313. }
  1314. if (_internal_metadata_.have_unknown_fields()) {
  1315. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1316. _internal_metadata_.unknown_fields(), target);
  1317. }
  1318. // @@protoc_insertion_point(serialize_to_array_end:velodyne.velodyneLidarParams)
  1319. return target;
  1320. }
  1321. size_t velodyneLidarParams::RequiredFieldsByteSizeFallback() const {
  1322. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:velodyne.velodyneLidarParams)
  1323. size_t total_size = 0;
  1324. if (has_ip()) {
  1325. // required string ip = 1 [default = ""];
  1326. total_size += 1 +
  1327. ::google::protobuf::internal::WireFormatLite::StringSize(
  1328. this->ip());
  1329. }
  1330. if (has_model()) {
  1331. // required string model = 3 [default = "VLP16"];
  1332. total_size += 1 +
  1333. ::google::protobuf::internal::WireFormatLite::StringSize(
  1334. this->model());
  1335. }
  1336. if (has_calibrationfile()) {
  1337. // required string calibrationFile = 4 [default = ""];
  1338. total_size += 1 +
  1339. ::google::protobuf::internal::WireFormatLite::StringSize(
  1340. this->calibrationfile());
  1341. }
  1342. if (has_lidar_id()) {
  1343. // required int32 lidar_id = 5 [default = 0];
  1344. total_size += 1 +
  1345. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1346. this->lidar_id());
  1347. }
  1348. if (has_port()) {
  1349. // required int32 port = 2 [default = 2368];
  1350. total_size += 1 +
  1351. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1352. this->port());
  1353. }
  1354. return total_size;
  1355. }
  1356. size_t velodyneLidarParams::ByteSizeLong() const {
  1357. // @@protoc_insertion_point(message_byte_size_start:velodyne.velodyneLidarParams)
  1358. size_t total_size = 0;
  1359. if (_internal_metadata_.have_unknown_fields()) {
  1360. total_size +=
  1361. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1362. _internal_metadata_.unknown_fields());
  1363. }
  1364. if (((_has_bits_[0] & 0x00000057) ^ 0x00000057) == 0) { // All required fields are present.
  1365. // required string ip = 1 [default = ""];
  1366. total_size += 1 +
  1367. ::google::protobuf::internal::WireFormatLite::StringSize(
  1368. this->ip());
  1369. // required string model = 3 [default = "VLP16"];
  1370. total_size += 1 +
  1371. ::google::protobuf::internal::WireFormatLite::StringSize(
  1372. this->model());
  1373. // required string calibrationFile = 4 [default = ""];
  1374. total_size += 1 +
  1375. ::google::protobuf::internal::WireFormatLite::StringSize(
  1376. this->calibrationfile());
  1377. // required int32 lidar_id = 5 [default = 0];
  1378. total_size += 1 +
  1379. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1380. this->lidar_id());
  1381. // required int32 port = 2 [default = 2368];
  1382. total_size += 1 +
  1383. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1384. this->port());
  1385. } else {
  1386. total_size += RequiredFieldsByteSizeFallback();
  1387. }
  1388. // optional .velodyne.CalibParameter calib = 11;
  1389. if (has_calib()) {
  1390. total_size += 1 +
  1391. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1392. *calib_);
  1393. }
  1394. // optional int32 min_angle = 8 [default = 0];
  1395. if (has_min_angle()) {
  1396. total_size += 1 +
  1397. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1398. this->min_angle());
  1399. }
  1400. // optional float max_range = 6 [default = 10];
  1401. if (has_max_range()) {
  1402. total_size += 1 + 4;
  1403. }
  1404. if (_has_bits_[8 / 32] & 3840u) {
  1405. // optional float min_range = 7 [default = 0.15];
  1406. if (has_min_range()) {
  1407. total_size += 1 + 4;
  1408. }
  1409. // optional int32 max_angle = 9 [default = 360];
  1410. if (has_max_angle()) {
  1411. total_size += 1 +
  1412. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1413. this->max_angle());
  1414. }
  1415. // optional int32 rpm = 10 [default = 600];
  1416. if (has_rpm()) {
  1417. total_size += 1 +
  1418. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1419. this->rpm());
  1420. }
  1421. // optional int32 difop = 12 [default = 7788];
  1422. if (has_difop()) {
  1423. total_size += 1 +
  1424. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1425. this->difop());
  1426. }
  1427. }
  1428. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1429. SetCachedSize(cached_size);
  1430. return total_size;
  1431. }
  1432. void velodyneLidarParams::MergeFrom(const ::google::protobuf::Message& from) {
  1433. // @@protoc_insertion_point(generalized_merge_from_start:velodyne.velodyneLidarParams)
  1434. GOOGLE_DCHECK_NE(&from, this);
  1435. const velodyneLidarParams* source =
  1436. ::google::protobuf::internal::DynamicCastToGenerated<const velodyneLidarParams>(
  1437. &from);
  1438. if (source == NULL) {
  1439. // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.velodyneLidarParams)
  1440. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1441. } else {
  1442. // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.velodyneLidarParams)
  1443. MergeFrom(*source);
  1444. }
  1445. }
  1446. void velodyneLidarParams::MergeFrom(const velodyneLidarParams& from) {
  1447. // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.velodyneLidarParams)
  1448. GOOGLE_DCHECK_NE(&from, this);
  1449. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1450. ::google::protobuf::uint32 cached_has_bits = 0;
  1451. (void) cached_has_bits;
  1452. cached_has_bits = from._has_bits_[0];
  1453. if (cached_has_bits & 255u) {
  1454. if (cached_has_bits & 0x00000001u) {
  1455. set_has_ip();
  1456. ip_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_);
  1457. }
  1458. if (cached_has_bits & 0x00000002u) {
  1459. set_has_model();
  1460. model_.AssignWithDefault(&::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get(), from.model_);
  1461. }
  1462. if (cached_has_bits & 0x00000004u) {
  1463. set_has_calibrationfile();
  1464. calibrationfile_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.calibrationfile_);
  1465. }
  1466. if (cached_has_bits & 0x00000008u) {
  1467. mutable_calib()->::velodyne::CalibParameter::MergeFrom(from.calib());
  1468. }
  1469. if (cached_has_bits & 0x00000010u) {
  1470. lidar_id_ = from.lidar_id_;
  1471. }
  1472. if (cached_has_bits & 0x00000020u) {
  1473. min_angle_ = from.min_angle_;
  1474. }
  1475. if (cached_has_bits & 0x00000040u) {
  1476. port_ = from.port_;
  1477. }
  1478. if (cached_has_bits & 0x00000080u) {
  1479. max_range_ = from.max_range_;
  1480. }
  1481. _has_bits_[0] |= cached_has_bits;
  1482. }
  1483. if (cached_has_bits & 3840u) {
  1484. if (cached_has_bits & 0x00000100u) {
  1485. min_range_ = from.min_range_;
  1486. }
  1487. if (cached_has_bits & 0x00000200u) {
  1488. max_angle_ = from.max_angle_;
  1489. }
  1490. if (cached_has_bits & 0x00000400u) {
  1491. rpm_ = from.rpm_;
  1492. }
  1493. if (cached_has_bits & 0x00000800u) {
  1494. difop_ = from.difop_;
  1495. }
  1496. _has_bits_[0] |= cached_has_bits;
  1497. }
  1498. }
  1499. void velodyneLidarParams::CopyFrom(const ::google::protobuf::Message& from) {
  1500. // @@protoc_insertion_point(generalized_copy_from_start:velodyne.velodyneLidarParams)
  1501. if (&from == this) return;
  1502. Clear();
  1503. MergeFrom(from);
  1504. }
  1505. void velodyneLidarParams::CopyFrom(const velodyneLidarParams& from) {
  1506. // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.velodyneLidarParams)
  1507. if (&from == this) return;
  1508. Clear();
  1509. MergeFrom(from);
  1510. }
  1511. bool velodyneLidarParams::IsInitialized() const {
  1512. if ((_has_bits_[0] & 0x00000057) != 0x00000057) return false;
  1513. return true;
  1514. }
  1515. void velodyneLidarParams::Swap(velodyneLidarParams* other) {
  1516. if (other == this) return;
  1517. InternalSwap(other);
  1518. }
  1519. void velodyneLidarParams::InternalSwap(velodyneLidarParams* other) {
  1520. using std::swap;
  1521. ip_.Swap(&other->ip_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1522. GetArenaNoVirtual());
  1523. model_.Swap(&other->model_, &::velodyne::velodyneLidarParams::_i_give_permission_to_break_this_code_default_model_.get(),
  1524. GetArenaNoVirtual());
  1525. calibrationfile_.Swap(&other->calibrationfile_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1526. GetArenaNoVirtual());
  1527. swap(calib_, other->calib_);
  1528. swap(lidar_id_, other->lidar_id_);
  1529. swap(min_angle_, other->min_angle_);
  1530. swap(port_, other->port_);
  1531. swap(max_range_, other->max_range_);
  1532. swap(min_range_, other->min_range_);
  1533. swap(max_angle_, other->max_angle_);
  1534. swap(rpm_, other->rpm_);
  1535. swap(difop_, other->difop_);
  1536. swap(_has_bits_[0], other->_has_bits_[0]);
  1537. _internal_metadata_.Swap(&other->_internal_metadata_);
  1538. }
  1539. ::google::protobuf::Metadata velodyneLidarParams::GetMetadata() const {
  1540. protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1541. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  1542. }
  1543. // ===================================================================
  1544. void CalibParameter::InitAsDefaultInstance() {
  1545. }
  1546. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1547. const int CalibParameter::kRFieldNumber;
  1548. const int CalibParameter::kPFieldNumber;
  1549. const int CalibParameter::kYFieldNumber;
  1550. const int CalibParameter::kCxFieldNumber;
  1551. const int CalibParameter::kCyFieldNumber;
  1552. const int CalibParameter::kCzFieldNumber;
  1553. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1554. CalibParameter::CalibParameter()
  1555. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1556. ::google::protobuf::internal::InitSCC(
  1557. &protobuf_velodyne_5fconfig_2eproto::scc_info_CalibParameter.base);
  1558. SharedCtor();
  1559. // @@protoc_insertion_point(constructor:velodyne.CalibParameter)
  1560. }
  1561. CalibParameter::CalibParameter(const CalibParameter& from)
  1562. : ::google::protobuf::Message(),
  1563. _internal_metadata_(NULL),
  1564. _has_bits_(from._has_bits_) {
  1565. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1566. ::memcpy(&r_, &from.r_,
  1567. static_cast<size_t>(reinterpret_cast<char*>(&cz_) -
  1568. reinterpret_cast<char*>(&r_)) + sizeof(cz_));
  1569. // @@protoc_insertion_point(copy_constructor:velodyne.CalibParameter)
  1570. }
  1571. void CalibParameter::SharedCtor() {
  1572. ::memset(&r_, 0, static_cast<size_t>(
  1573. reinterpret_cast<char*>(&cz_) -
  1574. reinterpret_cast<char*>(&r_)) + sizeof(cz_));
  1575. }
  1576. CalibParameter::~CalibParameter() {
  1577. // @@protoc_insertion_point(destructor:velodyne.CalibParameter)
  1578. SharedDtor();
  1579. }
  1580. void CalibParameter::SharedDtor() {
  1581. }
  1582. void CalibParameter::SetCachedSize(int size) const {
  1583. _cached_size_.Set(size);
  1584. }
  1585. const ::google::protobuf::Descriptor* CalibParameter::descriptor() {
  1586. ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1587. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1588. }
  1589. const CalibParameter& CalibParameter::default_instance() {
  1590. ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_CalibParameter.base);
  1591. return *internal_default_instance();
  1592. }
  1593. void CalibParameter::Clear() {
  1594. // @@protoc_insertion_point(message_clear_start:velodyne.CalibParameter)
  1595. ::google::protobuf::uint32 cached_has_bits = 0;
  1596. // Prevent compiler warnings about cached_has_bits being unused
  1597. (void) cached_has_bits;
  1598. cached_has_bits = _has_bits_[0];
  1599. if (cached_has_bits & 63u) {
  1600. ::memset(&r_, 0, static_cast<size_t>(
  1601. reinterpret_cast<char*>(&cz_) -
  1602. reinterpret_cast<char*>(&r_)) + sizeof(cz_));
  1603. }
  1604. _has_bits_.Clear();
  1605. _internal_metadata_.Clear();
  1606. }
  1607. bool CalibParameter::MergePartialFromCodedStream(
  1608. ::google::protobuf::io::CodedInputStream* input) {
  1609. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1610. ::google::protobuf::uint32 tag;
  1611. // @@protoc_insertion_point(parse_start:velodyne.CalibParameter)
  1612. for (;;) {
  1613. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1614. tag = p.first;
  1615. if (!p.second) goto handle_unusual;
  1616. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1617. // optional float r = 1 [default = 0];
  1618. case 1: {
  1619. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1620. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  1621. set_has_r();
  1622. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1623. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1624. input, &r_)));
  1625. } else {
  1626. goto handle_unusual;
  1627. }
  1628. break;
  1629. }
  1630. // optional float p = 2 [default = 0];
  1631. case 2: {
  1632. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1633. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  1634. set_has_p();
  1635. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1636. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1637. input, &p_)));
  1638. } else {
  1639. goto handle_unusual;
  1640. }
  1641. break;
  1642. }
  1643. // optional float y = 3 [default = 0];
  1644. case 3: {
  1645. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1646. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  1647. set_has_y();
  1648. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1649. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1650. input, &y_)));
  1651. } else {
  1652. goto handle_unusual;
  1653. }
  1654. break;
  1655. }
  1656. // optional float cx = 4 [default = 0];
  1657. case 4: {
  1658. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1659. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  1660. set_has_cx();
  1661. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1662. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1663. input, &cx_)));
  1664. } else {
  1665. goto handle_unusual;
  1666. }
  1667. break;
  1668. }
  1669. // optional float cy = 5 [default = 0];
  1670. case 5: {
  1671. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1672. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  1673. set_has_cy();
  1674. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1675. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1676. input, &cy_)));
  1677. } else {
  1678. goto handle_unusual;
  1679. }
  1680. break;
  1681. }
  1682. // optional float cz = 6 [default = 0];
  1683. case 6: {
  1684. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1685. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  1686. set_has_cz();
  1687. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1688. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1689. input, &cz_)));
  1690. } else {
  1691. goto handle_unusual;
  1692. }
  1693. break;
  1694. }
  1695. default: {
  1696. handle_unusual:
  1697. if (tag == 0) {
  1698. goto success;
  1699. }
  1700. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1701. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1702. break;
  1703. }
  1704. }
  1705. }
  1706. success:
  1707. // @@protoc_insertion_point(parse_success:velodyne.CalibParameter)
  1708. return true;
  1709. failure:
  1710. // @@protoc_insertion_point(parse_failure:velodyne.CalibParameter)
  1711. return false;
  1712. #undef DO_
  1713. }
  1714. void CalibParameter::SerializeWithCachedSizes(
  1715. ::google::protobuf::io::CodedOutputStream* output) const {
  1716. // @@protoc_insertion_point(serialize_start:velodyne.CalibParameter)
  1717. ::google::protobuf::uint32 cached_has_bits = 0;
  1718. (void) cached_has_bits;
  1719. cached_has_bits = _has_bits_[0];
  1720. // optional float r = 1 [default = 0];
  1721. if (cached_has_bits & 0x00000001u) {
  1722. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->r(), output);
  1723. }
  1724. // optional float p = 2 [default = 0];
  1725. if (cached_has_bits & 0x00000002u) {
  1726. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->p(), output);
  1727. }
  1728. // optional float y = 3 [default = 0];
  1729. if (cached_has_bits & 0x00000004u) {
  1730. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->y(), output);
  1731. }
  1732. // optional float cx = 4 [default = 0];
  1733. if (cached_has_bits & 0x00000008u) {
  1734. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->cx(), output);
  1735. }
  1736. // optional float cy = 5 [default = 0];
  1737. if (cached_has_bits & 0x00000010u) {
  1738. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->cy(), output);
  1739. }
  1740. // optional float cz = 6 [default = 0];
  1741. if (cached_has_bits & 0x00000020u) {
  1742. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->cz(), output);
  1743. }
  1744. if (_internal_metadata_.have_unknown_fields()) {
  1745. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1746. _internal_metadata_.unknown_fields(), output);
  1747. }
  1748. // @@protoc_insertion_point(serialize_end:velodyne.CalibParameter)
  1749. }
  1750. ::google::protobuf::uint8* CalibParameter::InternalSerializeWithCachedSizesToArray(
  1751. bool deterministic, ::google::protobuf::uint8* target) const {
  1752. (void)deterministic; // Unused
  1753. // @@protoc_insertion_point(serialize_to_array_start:velodyne.CalibParameter)
  1754. ::google::protobuf::uint32 cached_has_bits = 0;
  1755. (void) cached_has_bits;
  1756. cached_has_bits = _has_bits_[0];
  1757. // optional float r = 1 [default = 0];
  1758. if (cached_has_bits & 0x00000001u) {
  1759. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->r(), target);
  1760. }
  1761. // optional float p = 2 [default = 0];
  1762. if (cached_has_bits & 0x00000002u) {
  1763. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->p(), target);
  1764. }
  1765. // optional float y = 3 [default = 0];
  1766. if (cached_has_bits & 0x00000004u) {
  1767. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->y(), target);
  1768. }
  1769. // optional float cx = 4 [default = 0];
  1770. if (cached_has_bits & 0x00000008u) {
  1771. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->cx(), target);
  1772. }
  1773. // optional float cy = 5 [default = 0];
  1774. if (cached_has_bits & 0x00000010u) {
  1775. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->cy(), target);
  1776. }
  1777. // optional float cz = 6 [default = 0];
  1778. if (cached_has_bits & 0x00000020u) {
  1779. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->cz(), target);
  1780. }
  1781. if (_internal_metadata_.have_unknown_fields()) {
  1782. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1783. _internal_metadata_.unknown_fields(), target);
  1784. }
  1785. // @@protoc_insertion_point(serialize_to_array_end:velodyne.CalibParameter)
  1786. return target;
  1787. }
  1788. size_t CalibParameter::ByteSizeLong() const {
  1789. // @@protoc_insertion_point(message_byte_size_start:velodyne.CalibParameter)
  1790. size_t total_size = 0;
  1791. if (_internal_metadata_.have_unknown_fields()) {
  1792. total_size +=
  1793. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1794. _internal_metadata_.unknown_fields());
  1795. }
  1796. if (_has_bits_[0 / 32] & 63u) {
  1797. // optional float r = 1 [default = 0];
  1798. if (has_r()) {
  1799. total_size += 1 + 4;
  1800. }
  1801. // optional float p = 2 [default = 0];
  1802. if (has_p()) {
  1803. total_size += 1 + 4;
  1804. }
  1805. // optional float y = 3 [default = 0];
  1806. if (has_y()) {
  1807. total_size += 1 + 4;
  1808. }
  1809. // optional float cx = 4 [default = 0];
  1810. if (has_cx()) {
  1811. total_size += 1 + 4;
  1812. }
  1813. // optional float cy = 5 [default = 0];
  1814. if (has_cy()) {
  1815. total_size += 1 + 4;
  1816. }
  1817. // optional float cz = 6 [default = 0];
  1818. if (has_cz()) {
  1819. total_size += 1 + 4;
  1820. }
  1821. }
  1822. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1823. SetCachedSize(cached_size);
  1824. return total_size;
  1825. }
  1826. void CalibParameter::MergeFrom(const ::google::protobuf::Message& from) {
  1827. // @@protoc_insertion_point(generalized_merge_from_start:velodyne.CalibParameter)
  1828. GOOGLE_DCHECK_NE(&from, this);
  1829. const CalibParameter* source =
  1830. ::google::protobuf::internal::DynamicCastToGenerated<const CalibParameter>(
  1831. &from);
  1832. if (source == NULL) {
  1833. // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.CalibParameter)
  1834. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1835. } else {
  1836. // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.CalibParameter)
  1837. MergeFrom(*source);
  1838. }
  1839. }
  1840. void CalibParameter::MergeFrom(const CalibParameter& from) {
  1841. // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.CalibParameter)
  1842. GOOGLE_DCHECK_NE(&from, this);
  1843. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1844. ::google::protobuf::uint32 cached_has_bits = 0;
  1845. (void) cached_has_bits;
  1846. cached_has_bits = from._has_bits_[0];
  1847. if (cached_has_bits & 63u) {
  1848. if (cached_has_bits & 0x00000001u) {
  1849. r_ = from.r_;
  1850. }
  1851. if (cached_has_bits & 0x00000002u) {
  1852. p_ = from.p_;
  1853. }
  1854. if (cached_has_bits & 0x00000004u) {
  1855. y_ = from.y_;
  1856. }
  1857. if (cached_has_bits & 0x00000008u) {
  1858. cx_ = from.cx_;
  1859. }
  1860. if (cached_has_bits & 0x00000010u) {
  1861. cy_ = from.cy_;
  1862. }
  1863. if (cached_has_bits & 0x00000020u) {
  1864. cz_ = from.cz_;
  1865. }
  1866. _has_bits_[0] |= cached_has_bits;
  1867. }
  1868. }
  1869. void CalibParameter::CopyFrom(const ::google::protobuf::Message& from) {
  1870. // @@protoc_insertion_point(generalized_copy_from_start:velodyne.CalibParameter)
  1871. if (&from == this) return;
  1872. Clear();
  1873. MergeFrom(from);
  1874. }
  1875. void CalibParameter::CopyFrom(const CalibParameter& from) {
  1876. // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.CalibParameter)
  1877. if (&from == this) return;
  1878. Clear();
  1879. MergeFrom(from);
  1880. }
  1881. bool CalibParameter::IsInitialized() const {
  1882. return true;
  1883. }
  1884. void CalibParameter::Swap(CalibParameter* other) {
  1885. if (other == this) return;
  1886. InternalSwap(other);
  1887. }
  1888. void CalibParameter::InternalSwap(CalibParameter* other) {
  1889. using std::swap;
  1890. swap(r_, other->r_);
  1891. swap(p_, other->p_);
  1892. swap(y_, other->y_);
  1893. swap(cx_, other->cx_);
  1894. swap(cy_, other->cy_);
  1895. swap(cz_, other->cz_);
  1896. swap(_has_bits_[0], other->_has_bits_[0]);
  1897. _internal_metadata_.Swap(&other->_internal_metadata_);
  1898. }
  1899. ::google::protobuf::Metadata CalibParameter::GetMetadata() const {
  1900. protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1901. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  1902. }
  1903. // ===================================================================
  1904. void lidarExtrinsic::InitAsDefaultInstance() {
  1905. ::velodyne::_lidarExtrinsic_default_instance_._instance.get_mutable()->calib_ = const_cast< ::velodyne::CalibParameter*>(
  1906. ::velodyne::CalibParameter::internal_default_instance());
  1907. }
  1908. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1909. const int lidarExtrinsic::kLidarIdFieldNumber;
  1910. const int lidarExtrinsic::kCalibFieldNumber;
  1911. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1912. lidarExtrinsic::lidarExtrinsic()
  1913. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1914. ::google::protobuf::internal::InitSCC(
  1915. &protobuf_velodyne_5fconfig_2eproto::scc_info_lidarExtrinsic.base);
  1916. SharedCtor();
  1917. // @@protoc_insertion_point(constructor:velodyne.lidarExtrinsic)
  1918. }
  1919. lidarExtrinsic::lidarExtrinsic(const lidarExtrinsic& from)
  1920. : ::google::protobuf::Message(),
  1921. _internal_metadata_(NULL),
  1922. _has_bits_(from._has_bits_) {
  1923. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1924. if (from.has_calib()) {
  1925. calib_ = new ::velodyne::CalibParameter(*from.calib_);
  1926. } else {
  1927. calib_ = NULL;
  1928. }
  1929. lidar_id_ = from.lidar_id_;
  1930. // @@protoc_insertion_point(copy_constructor:velodyne.lidarExtrinsic)
  1931. }
  1932. void lidarExtrinsic::SharedCtor() {
  1933. ::memset(&calib_, 0, static_cast<size_t>(
  1934. reinterpret_cast<char*>(&lidar_id_) -
  1935. reinterpret_cast<char*>(&calib_)) + sizeof(lidar_id_));
  1936. }
  1937. lidarExtrinsic::~lidarExtrinsic() {
  1938. // @@protoc_insertion_point(destructor:velodyne.lidarExtrinsic)
  1939. SharedDtor();
  1940. }
  1941. void lidarExtrinsic::SharedDtor() {
  1942. if (this != internal_default_instance()) delete calib_;
  1943. }
  1944. void lidarExtrinsic::SetCachedSize(int size) const {
  1945. _cached_size_.Set(size);
  1946. }
  1947. const ::google::protobuf::Descriptor* lidarExtrinsic::descriptor() {
  1948. ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  1949. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1950. }
  1951. const lidarExtrinsic& lidarExtrinsic::default_instance() {
  1952. ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_lidarExtrinsic.base);
  1953. return *internal_default_instance();
  1954. }
  1955. void lidarExtrinsic::Clear() {
  1956. // @@protoc_insertion_point(message_clear_start:velodyne.lidarExtrinsic)
  1957. ::google::protobuf::uint32 cached_has_bits = 0;
  1958. // Prevent compiler warnings about cached_has_bits being unused
  1959. (void) cached_has_bits;
  1960. cached_has_bits = _has_bits_[0];
  1961. if (cached_has_bits & 0x00000001u) {
  1962. GOOGLE_DCHECK(calib_ != NULL);
  1963. calib_->Clear();
  1964. }
  1965. lidar_id_ = 0;
  1966. _has_bits_.Clear();
  1967. _internal_metadata_.Clear();
  1968. }
  1969. bool lidarExtrinsic::MergePartialFromCodedStream(
  1970. ::google::protobuf::io::CodedInputStream* input) {
  1971. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1972. ::google::protobuf::uint32 tag;
  1973. // @@protoc_insertion_point(parse_start:velodyne.lidarExtrinsic)
  1974. for (;;) {
  1975. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1976. tag = p.first;
  1977. if (!p.second) goto handle_unusual;
  1978. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1979. // required int32 lidar_id = 1;
  1980. case 1: {
  1981. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1982. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1983. set_has_lidar_id();
  1984. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1985. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1986. input, &lidar_id_)));
  1987. } else {
  1988. goto handle_unusual;
  1989. }
  1990. break;
  1991. }
  1992. // optional .velodyne.CalibParameter calib = 2;
  1993. case 2: {
  1994. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1995. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1996. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1997. input, mutable_calib()));
  1998. } else {
  1999. goto handle_unusual;
  2000. }
  2001. break;
  2002. }
  2003. default: {
  2004. handle_unusual:
  2005. if (tag == 0) {
  2006. goto success;
  2007. }
  2008. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2009. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2010. break;
  2011. }
  2012. }
  2013. }
  2014. success:
  2015. // @@protoc_insertion_point(parse_success:velodyne.lidarExtrinsic)
  2016. return true;
  2017. failure:
  2018. // @@protoc_insertion_point(parse_failure:velodyne.lidarExtrinsic)
  2019. return false;
  2020. #undef DO_
  2021. }
  2022. void lidarExtrinsic::SerializeWithCachedSizes(
  2023. ::google::protobuf::io::CodedOutputStream* output) const {
  2024. // @@protoc_insertion_point(serialize_start:velodyne.lidarExtrinsic)
  2025. ::google::protobuf::uint32 cached_has_bits = 0;
  2026. (void) cached_has_bits;
  2027. cached_has_bits = _has_bits_[0];
  2028. // required int32 lidar_id = 1;
  2029. if (cached_has_bits & 0x00000002u) {
  2030. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->lidar_id(), output);
  2031. }
  2032. // optional .velodyne.CalibParameter calib = 2;
  2033. if (cached_has_bits & 0x00000001u) {
  2034. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2035. 2, this->_internal_calib(), output);
  2036. }
  2037. if (_internal_metadata_.have_unknown_fields()) {
  2038. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2039. _internal_metadata_.unknown_fields(), output);
  2040. }
  2041. // @@protoc_insertion_point(serialize_end:velodyne.lidarExtrinsic)
  2042. }
  2043. ::google::protobuf::uint8* lidarExtrinsic::InternalSerializeWithCachedSizesToArray(
  2044. bool deterministic, ::google::protobuf::uint8* target) const {
  2045. (void)deterministic; // Unused
  2046. // @@protoc_insertion_point(serialize_to_array_start:velodyne.lidarExtrinsic)
  2047. ::google::protobuf::uint32 cached_has_bits = 0;
  2048. (void) cached_has_bits;
  2049. cached_has_bits = _has_bits_[0];
  2050. // required int32 lidar_id = 1;
  2051. if (cached_has_bits & 0x00000002u) {
  2052. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->lidar_id(), target);
  2053. }
  2054. // optional .velodyne.CalibParameter calib = 2;
  2055. if (cached_has_bits & 0x00000001u) {
  2056. target = ::google::protobuf::internal::WireFormatLite::
  2057. InternalWriteMessageToArray(
  2058. 2, this->_internal_calib(), deterministic, target);
  2059. }
  2060. if (_internal_metadata_.have_unknown_fields()) {
  2061. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2062. _internal_metadata_.unknown_fields(), target);
  2063. }
  2064. // @@protoc_insertion_point(serialize_to_array_end:velodyne.lidarExtrinsic)
  2065. return target;
  2066. }
  2067. size_t lidarExtrinsic::ByteSizeLong() const {
  2068. // @@protoc_insertion_point(message_byte_size_start:velodyne.lidarExtrinsic)
  2069. size_t total_size = 0;
  2070. if (_internal_metadata_.have_unknown_fields()) {
  2071. total_size +=
  2072. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2073. _internal_metadata_.unknown_fields());
  2074. }
  2075. // required int32 lidar_id = 1;
  2076. if (has_lidar_id()) {
  2077. total_size += 1 +
  2078. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2079. this->lidar_id());
  2080. }
  2081. // optional .velodyne.CalibParameter calib = 2;
  2082. if (has_calib()) {
  2083. total_size += 1 +
  2084. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2085. *calib_);
  2086. }
  2087. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2088. SetCachedSize(cached_size);
  2089. return total_size;
  2090. }
  2091. void lidarExtrinsic::MergeFrom(const ::google::protobuf::Message& from) {
  2092. // @@protoc_insertion_point(generalized_merge_from_start:velodyne.lidarExtrinsic)
  2093. GOOGLE_DCHECK_NE(&from, this);
  2094. const lidarExtrinsic* source =
  2095. ::google::protobuf::internal::DynamicCastToGenerated<const lidarExtrinsic>(
  2096. &from);
  2097. if (source == NULL) {
  2098. // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.lidarExtrinsic)
  2099. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2100. } else {
  2101. // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.lidarExtrinsic)
  2102. MergeFrom(*source);
  2103. }
  2104. }
  2105. void lidarExtrinsic::MergeFrom(const lidarExtrinsic& from) {
  2106. // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.lidarExtrinsic)
  2107. GOOGLE_DCHECK_NE(&from, this);
  2108. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2109. ::google::protobuf::uint32 cached_has_bits = 0;
  2110. (void) cached_has_bits;
  2111. cached_has_bits = from._has_bits_[0];
  2112. if (cached_has_bits & 3u) {
  2113. if (cached_has_bits & 0x00000001u) {
  2114. mutable_calib()->::velodyne::CalibParameter::MergeFrom(from.calib());
  2115. }
  2116. if (cached_has_bits & 0x00000002u) {
  2117. lidar_id_ = from.lidar_id_;
  2118. }
  2119. _has_bits_[0] |= cached_has_bits;
  2120. }
  2121. }
  2122. void lidarExtrinsic::CopyFrom(const ::google::protobuf::Message& from) {
  2123. // @@protoc_insertion_point(generalized_copy_from_start:velodyne.lidarExtrinsic)
  2124. if (&from == this) return;
  2125. Clear();
  2126. MergeFrom(from);
  2127. }
  2128. void lidarExtrinsic::CopyFrom(const lidarExtrinsic& from) {
  2129. // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.lidarExtrinsic)
  2130. if (&from == this) return;
  2131. Clear();
  2132. MergeFrom(from);
  2133. }
  2134. bool lidarExtrinsic::IsInitialized() const {
  2135. if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
  2136. return true;
  2137. }
  2138. void lidarExtrinsic::Swap(lidarExtrinsic* other) {
  2139. if (other == this) return;
  2140. InternalSwap(other);
  2141. }
  2142. void lidarExtrinsic::InternalSwap(lidarExtrinsic* other) {
  2143. using std::swap;
  2144. swap(calib_, other->calib_);
  2145. swap(lidar_id_, other->lidar_id_);
  2146. swap(_has_bits_[0], other->_has_bits_[0]);
  2147. _internal_metadata_.Swap(&other->_internal_metadata_);
  2148. }
  2149. ::google::protobuf::Metadata lidarExtrinsic::GetMetadata() const {
  2150. protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  2151. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  2152. }
  2153. // ===================================================================
  2154. void Region::InitAsDefaultInstance() {
  2155. }
  2156. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2157. const int Region::kMinxFieldNumber;
  2158. const int Region::kMaxxFieldNumber;
  2159. const int Region::kMinyFieldNumber;
  2160. const int Region::kMaxyFieldNumber;
  2161. const int Region::kMinzFieldNumber;
  2162. const int Region::kMaxzFieldNumber;
  2163. const int Region::kRegionIdFieldNumber;
  2164. const int Region::kLidarExtsFieldNumber;
  2165. const int Region::kTurnplateCxFieldNumber;
  2166. const int Region::kTurnplateCyFieldNumber;
  2167. const int Region::kBorderMinxFieldNumber;
  2168. const int Region::kBorderMaxxFieldNumber;
  2169. const int Region::kPlcOffsetxFieldNumber;
  2170. const int Region::kPlcOffsetyFieldNumber;
  2171. const int Region::kPlcOffsetDegreeFieldNumber;
  2172. const int Region::kPlcBorderMinyFieldNumber;
  2173. const int Region::kPlcBorderMaxyFieldNumber;
  2174. const int Region::kCarMinWidthFieldNumber;
  2175. const int Region::kCarMaxWidthFieldNumber;
  2176. const int Region::kCarMinWheelbaseFieldNumber;
  2177. const int Region::kCarMaxWheelbaseFieldNumber;
  2178. const int Region::kTurnplateAngleLimitAntiClockwiseFieldNumber;
  2179. const int Region::kTurnplateAngleLimitClockwiseFieldNumber;
  2180. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2181. Region::Region()
  2182. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2183. ::google::protobuf::internal::InitSCC(
  2184. &protobuf_velodyne_5fconfig_2eproto::scc_info_Region.base);
  2185. SharedCtor();
  2186. // @@protoc_insertion_point(constructor:velodyne.Region)
  2187. }
  2188. Region::Region(const Region& from)
  2189. : ::google::protobuf::Message(),
  2190. _internal_metadata_(NULL),
  2191. _has_bits_(from._has_bits_),
  2192. lidar_exts_(from.lidar_exts_) {
  2193. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2194. ::memcpy(&minx_, &from.minx_,
  2195. static_cast<size_t>(reinterpret_cast<char*>(&turnplate_angle_limit_clockwise_) -
  2196. reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_angle_limit_clockwise_));
  2197. // @@protoc_insertion_point(copy_constructor:velodyne.Region)
  2198. }
  2199. void Region::SharedCtor() {
  2200. ::memset(&minx_, 0, static_cast<size_t>(
  2201. reinterpret_cast<char*>(&turnplate_angle_limit_clockwise_) -
  2202. reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_angle_limit_clockwise_));
  2203. }
  2204. Region::~Region() {
  2205. // @@protoc_insertion_point(destructor:velodyne.Region)
  2206. SharedDtor();
  2207. }
  2208. void Region::SharedDtor() {
  2209. }
  2210. void Region::SetCachedSize(int size) const {
  2211. _cached_size_.Set(size);
  2212. }
  2213. const ::google::protobuf::Descriptor* Region::descriptor() {
  2214. ::protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  2215. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2216. }
  2217. const Region& Region::default_instance() {
  2218. ::google::protobuf::internal::InitSCC(&protobuf_velodyne_5fconfig_2eproto::scc_info_Region.base);
  2219. return *internal_default_instance();
  2220. }
  2221. void Region::Clear() {
  2222. // @@protoc_insertion_point(message_clear_start:velodyne.Region)
  2223. ::google::protobuf::uint32 cached_has_bits = 0;
  2224. // Prevent compiler warnings about cached_has_bits being unused
  2225. (void) cached_has_bits;
  2226. lidar_exts_.Clear();
  2227. cached_has_bits = _has_bits_[0];
  2228. if (cached_has_bits & 255u) {
  2229. ::memset(&minx_, 0, static_cast<size_t>(
  2230. reinterpret_cast<char*>(&turnplate_cx_) -
  2231. reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_cx_));
  2232. }
  2233. if (cached_has_bits & 65280u) {
  2234. ::memset(&turnplate_cy_, 0, static_cast<size_t>(
  2235. reinterpret_cast<char*>(&plc_border_maxy_) -
  2236. reinterpret_cast<char*>(&turnplate_cy_)) + sizeof(plc_border_maxy_));
  2237. }
  2238. if (cached_has_bits & 4128768u) {
  2239. ::memset(&car_min_width_, 0, static_cast<size_t>(
  2240. reinterpret_cast<char*>(&turnplate_angle_limit_clockwise_) -
  2241. reinterpret_cast<char*>(&car_min_width_)) + sizeof(turnplate_angle_limit_clockwise_));
  2242. }
  2243. _has_bits_.Clear();
  2244. _internal_metadata_.Clear();
  2245. }
  2246. bool Region::MergePartialFromCodedStream(
  2247. ::google::protobuf::io::CodedInputStream* input) {
  2248. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2249. ::google::protobuf::uint32 tag;
  2250. // @@protoc_insertion_point(parse_start:velodyne.Region)
  2251. for (;;) {
  2252. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  2253. tag = p.first;
  2254. if (!p.second) goto handle_unusual;
  2255. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2256. // required float minx = 1;
  2257. case 1: {
  2258. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2259. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  2260. set_has_minx();
  2261. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2262. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2263. input, &minx_)));
  2264. } else {
  2265. goto handle_unusual;
  2266. }
  2267. break;
  2268. }
  2269. // required float maxx = 2;
  2270. case 2: {
  2271. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2272. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  2273. set_has_maxx();
  2274. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2275. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2276. input, &maxx_)));
  2277. } else {
  2278. goto handle_unusual;
  2279. }
  2280. break;
  2281. }
  2282. // required float miny = 3;
  2283. case 3: {
  2284. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2285. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  2286. set_has_miny();
  2287. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2288. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2289. input, &miny_)));
  2290. } else {
  2291. goto handle_unusual;
  2292. }
  2293. break;
  2294. }
  2295. // required float maxy = 4;
  2296. case 4: {
  2297. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2298. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  2299. set_has_maxy();
  2300. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2301. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2302. input, &maxy_)));
  2303. } else {
  2304. goto handle_unusual;
  2305. }
  2306. break;
  2307. }
  2308. // required float minz = 5;
  2309. case 5: {
  2310. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2311. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  2312. set_has_minz();
  2313. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2314. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2315. input, &minz_)));
  2316. } else {
  2317. goto handle_unusual;
  2318. }
  2319. break;
  2320. }
  2321. // required float maxz = 6;
  2322. case 6: {
  2323. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2324. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  2325. set_has_maxz();
  2326. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2327. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2328. input, &maxz_)));
  2329. } else {
  2330. goto handle_unusual;
  2331. }
  2332. break;
  2333. }
  2334. // required int32 region_id = 7;
  2335. case 7: {
  2336. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2337. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  2338. set_has_region_id();
  2339. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2340. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2341. input, &region_id_)));
  2342. } else {
  2343. goto handle_unusual;
  2344. }
  2345. break;
  2346. }
  2347. // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
  2348. case 8: {
  2349. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2350. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  2351. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2352. input, add_lidar_exts()));
  2353. } else {
  2354. goto handle_unusual;
  2355. }
  2356. break;
  2357. }
  2358. // required float turnplate_cx = 9;
  2359. case 9: {
  2360. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2361. static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
  2362. set_has_turnplate_cx();
  2363. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2364. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2365. input, &turnplate_cx_)));
  2366. } else {
  2367. goto handle_unusual;
  2368. }
  2369. break;
  2370. }
  2371. // required float turnplate_cy = 10;
  2372. case 10: {
  2373. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2374. static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
  2375. set_has_turnplate_cy();
  2376. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2377. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2378. input, &turnplate_cy_)));
  2379. } else {
  2380. goto handle_unusual;
  2381. }
  2382. break;
  2383. }
  2384. // required float border_minx = 11;
  2385. case 11: {
  2386. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2387. static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
  2388. set_has_border_minx();
  2389. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2390. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2391. input, &border_minx_)));
  2392. } else {
  2393. goto handle_unusual;
  2394. }
  2395. break;
  2396. }
  2397. // required float border_maxx = 12;
  2398. case 12: {
  2399. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2400. static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
  2401. set_has_border_maxx();
  2402. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2403. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2404. input, &border_maxx_)));
  2405. } else {
  2406. goto handle_unusual;
  2407. }
  2408. break;
  2409. }
  2410. // required float plc_offsetx = 13;
  2411. case 13: {
  2412. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2413. static_cast< ::google::protobuf::uint8>(109u /* 109 & 0xFF */)) {
  2414. set_has_plc_offsetx();
  2415. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2416. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2417. input, &plc_offsetx_)));
  2418. } else {
  2419. goto handle_unusual;
  2420. }
  2421. break;
  2422. }
  2423. // required float plc_offsety = 14;
  2424. case 14: {
  2425. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2426. static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) {
  2427. set_has_plc_offsety();
  2428. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2429. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2430. input, &plc_offsety_)));
  2431. } else {
  2432. goto handle_unusual;
  2433. }
  2434. break;
  2435. }
  2436. // required float plc_offset_degree = 15;
  2437. case 15: {
  2438. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2439. static_cast< ::google::protobuf::uint8>(125u /* 125 & 0xFF */)) {
  2440. set_has_plc_offset_degree();
  2441. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2442. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2443. input, &plc_offset_degree_)));
  2444. } else {
  2445. goto handle_unusual;
  2446. }
  2447. break;
  2448. }
  2449. // required float plc_border_miny = 16;
  2450. case 16: {
  2451. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2452. static_cast< ::google::protobuf::uint8>(133u /* 133 & 0xFF */)) {
  2453. set_has_plc_border_miny();
  2454. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2455. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2456. input, &plc_border_miny_)));
  2457. } else {
  2458. goto handle_unusual;
  2459. }
  2460. break;
  2461. }
  2462. // required float plc_border_maxy = 17;
  2463. case 17: {
  2464. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2465. static_cast< ::google::protobuf::uint8>(141u /* 141 & 0xFF */)) {
  2466. set_has_plc_border_maxy();
  2467. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2468. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2469. input, &plc_border_maxy_)));
  2470. } else {
  2471. goto handle_unusual;
  2472. }
  2473. break;
  2474. }
  2475. // required float car_min_width = 18;
  2476. case 18: {
  2477. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2478. static_cast< ::google::protobuf::uint8>(149u /* 149 & 0xFF */)) {
  2479. set_has_car_min_width();
  2480. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2481. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2482. input, &car_min_width_)));
  2483. } else {
  2484. goto handle_unusual;
  2485. }
  2486. break;
  2487. }
  2488. // required float car_max_width = 19;
  2489. case 19: {
  2490. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2491. static_cast< ::google::protobuf::uint8>(157u /* 157 & 0xFF */)) {
  2492. set_has_car_max_width();
  2493. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2494. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2495. input, &car_max_width_)));
  2496. } else {
  2497. goto handle_unusual;
  2498. }
  2499. break;
  2500. }
  2501. // required float car_min_wheelbase = 20;
  2502. case 20: {
  2503. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2504. static_cast< ::google::protobuf::uint8>(165u /* 165 & 0xFF */)) {
  2505. set_has_car_min_wheelbase();
  2506. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2507. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2508. input, &car_min_wheelbase_)));
  2509. } else {
  2510. goto handle_unusual;
  2511. }
  2512. break;
  2513. }
  2514. // required float car_max_wheelbase = 21;
  2515. case 21: {
  2516. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2517. static_cast< ::google::protobuf::uint8>(173u /* 173 & 0xFF */)) {
  2518. set_has_car_max_wheelbase();
  2519. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2520. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2521. input, &car_max_wheelbase_)));
  2522. } else {
  2523. goto handle_unusual;
  2524. }
  2525. break;
  2526. }
  2527. // required float turnplate_angle_limit_anti_clockwise = 22;
  2528. case 22: {
  2529. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2530. static_cast< ::google::protobuf::uint8>(181u /* 181 & 0xFF */)) {
  2531. set_has_turnplate_angle_limit_anti_clockwise();
  2532. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2533. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2534. input, &turnplate_angle_limit_anti_clockwise_)));
  2535. } else {
  2536. goto handle_unusual;
  2537. }
  2538. break;
  2539. }
  2540. // required float turnplate_angle_limit_clockwise = 23;
  2541. case 23: {
  2542. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2543. static_cast< ::google::protobuf::uint8>(189u /* 189 & 0xFF */)) {
  2544. set_has_turnplate_angle_limit_clockwise();
  2545. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2546. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2547. input, &turnplate_angle_limit_clockwise_)));
  2548. } else {
  2549. goto handle_unusual;
  2550. }
  2551. break;
  2552. }
  2553. default: {
  2554. handle_unusual:
  2555. if (tag == 0) {
  2556. goto success;
  2557. }
  2558. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2559. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2560. break;
  2561. }
  2562. }
  2563. }
  2564. success:
  2565. // @@protoc_insertion_point(parse_success:velodyne.Region)
  2566. return true;
  2567. failure:
  2568. // @@protoc_insertion_point(parse_failure:velodyne.Region)
  2569. return false;
  2570. #undef DO_
  2571. }
  2572. void Region::SerializeWithCachedSizes(
  2573. ::google::protobuf::io::CodedOutputStream* output) const {
  2574. // @@protoc_insertion_point(serialize_start:velodyne.Region)
  2575. ::google::protobuf::uint32 cached_has_bits = 0;
  2576. (void) cached_has_bits;
  2577. cached_has_bits = _has_bits_[0];
  2578. // required float minx = 1;
  2579. if (cached_has_bits & 0x00000001u) {
  2580. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->minx(), output);
  2581. }
  2582. // required float maxx = 2;
  2583. if (cached_has_bits & 0x00000002u) {
  2584. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->maxx(), output);
  2585. }
  2586. // required float miny = 3;
  2587. if (cached_has_bits & 0x00000004u) {
  2588. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->miny(), output);
  2589. }
  2590. // required float maxy = 4;
  2591. if (cached_has_bits & 0x00000008u) {
  2592. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->maxy(), output);
  2593. }
  2594. // required float minz = 5;
  2595. if (cached_has_bits & 0x00000010u) {
  2596. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->minz(), output);
  2597. }
  2598. // required float maxz = 6;
  2599. if (cached_has_bits & 0x00000020u) {
  2600. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->maxz(), output);
  2601. }
  2602. // required int32 region_id = 7;
  2603. if (cached_has_bits & 0x00000040u) {
  2604. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->region_id(), output);
  2605. }
  2606. // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
  2607. for (unsigned int i = 0,
  2608. n = static_cast<unsigned int>(this->lidar_exts_size()); i < n; i++) {
  2609. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2610. 8,
  2611. this->lidar_exts(static_cast<int>(i)),
  2612. output);
  2613. }
  2614. // required float turnplate_cx = 9;
  2615. if (cached_has_bits & 0x00000080u) {
  2616. ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->turnplate_cx(), output);
  2617. }
  2618. // required float turnplate_cy = 10;
  2619. if (cached_has_bits & 0x00000100u) {
  2620. ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->turnplate_cy(), output);
  2621. }
  2622. // required float border_minx = 11;
  2623. if (cached_has_bits & 0x00000200u) {
  2624. ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->border_minx(), output);
  2625. }
  2626. // required float border_maxx = 12;
  2627. if (cached_has_bits & 0x00000400u) {
  2628. ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->border_maxx(), output);
  2629. }
  2630. // required float plc_offsetx = 13;
  2631. if (cached_has_bits & 0x00000800u) {
  2632. ::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->plc_offsetx(), output);
  2633. }
  2634. // required float plc_offsety = 14;
  2635. if (cached_has_bits & 0x00001000u) {
  2636. ::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->plc_offsety(), output);
  2637. }
  2638. // required float plc_offset_degree = 15;
  2639. if (cached_has_bits & 0x00002000u) {
  2640. ::google::protobuf::internal::WireFormatLite::WriteFloat(15, this->plc_offset_degree(), output);
  2641. }
  2642. // required float plc_border_miny = 16;
  2643. if (cached_has_bits & 0x00004000u) {
  2644. ::google::protobuf::internal::WireFormatLite::WriteFloat(16, this->plc_border_miny(), output);
  2645. }
  2646. // required float plc_border_maxy = 17;
  2647. if (cached_has_bits & 0x00008000u) {
  2648. ::google::protobuf::internal::WireFormatLite::WriteFloat(17, this->plc_border_maxy(), output);
  2649. }
  2650. // required float car_min_width = 18;
  2651. if (cached_has_bits & 0x00010000u) {
  2652. ::google::protobuf::internal::WireFormatLite::WriteFloat(18, this->car_min_width(), output);
  2653. }
  2654. // required float car_max_width = 19;
  2655. if (cached_has_bits & 0x00020000u) {
  2656. ::google::protobuf::internal::WireFormatLite::WriteFloat(19, this->car_max_width(), output);
  2657. }
  2658. // required float car_min_wheelbase = 20;
  2659. if (cached_has_bits & 0x00040000u) {
  2660. ::google::protobuf::internal::WireFormatLite::WriteFloat(20, this->car_min_wheelbase(), output);
  2661. }
  2662. // required float car_max_wheelbase = 21;
  2663. if (cached_has_bits & 0x00080000u) {
  2664. ::google::protobuf::internal::WireFormatLite::WriteFloat(21, this->car_max_wheelbase(), output);
  2665. }
  2666. // required float turnplate_angle_limit_anti_clockwise = 22;
  2667. if (cached_has_bits & 0x00100000u) {
  2668. ::google::protobuf::internal::WireFormatLite::WriteFloat(22, this->turnplate_angle_limit_anti_clockwise(), output);
  2669. }
  2670. // required float turnplate_angle_limit_clockwise = 23;
  2671. if (cached_has_bits & 0x00200000u) {
  2672. ::google::protobuf::internal::WireFormatLite::WriteFloat(23, this->turnplate_angle_limit_clockwise(), output);
  2673. }
  2674. if (_internal_metadata_.have_unknown_fields()) {
  2675. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2676. _internal_metadata_.unknown_fields(), output);
  2677. }
  2678. // @@protoc_insertion_point(serialize_end:velodyne.Region)
  2679. }
  2680. ::google::protobuf::uint8* Region::InternalSerializeWithCachedSizesToArray(
  2681. bool deterministic, ::google::protobuf::uint8* target) const {
  2682. (void)deterministic; // Unused
  2683. // @@protoc_insertion_point(serialize_to_array_start:velodyne.Region)
  2684. ::google::protobuf::uint32 cached_has_bits = 0;
  2685. (void) cached_has_bits;
  2686. cached_has_bits = _has_bits_[0];
  2687. // required float minx = 1;
  2688. if (cached_has_bits & 0x00000001u) {
  2689. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->minx(), target);
  2690. }
  2691. // required float maxx = 2;
  2692. if (cached_has_bits & 0x00000002u) {
  2693. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->maxx(), target);
  2694. }
  2695. // required float miny = 3;
  2696. if (cached_has_bits & 0x00000004u) {
  2697. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->miny(), target);
  2698. }
  2699. // required float maxy = 4;
  2700. if (cached_has_bits & 0x00000008u) {
  2701. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->maxy(), target);
  2702. }
  2703. // required float minz = 5;
  2704. if (cached_has_bits & 0x00000010u) {
  2705. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->minz(), target);
  2706. }
  2707. // required float maxz = 6;
  2708. if (cached_has_bits & 0x00000020u) {
  2709. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->maxz(), target);
  2710. }
  2711. // required int32 region_id = 7;
  2712. if (cached_has_bits & 0x00000040u) {
  2713. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->region_id(), target);
  2714. }
  2715. // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
  2716. for (unsigned int i = 0,
  2717. n = static_cast<unsigned int>(this->lidar_exts_size()); i < n; i++) {
  2718. target = ::google::protobuf::internal::WireFormatLite::
  2719. InternalWriteMessageToArray(
  2720. 8, this->lidar_exts(static_cast<int>(i)), deterministic, target);
  2721. }
  2722. // required float turnplate_cx = 9;
  2723. if (cached_has_bits & 0x00000080u) {
  2724. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->turnplate_cx(), target);
  2725. }
  2726. // required float turnplate_cy = 10;
  2727. if (cached_has_bits & 0x00000100u) {
  2728. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->turnplate_cy(), target);
  2729. }
  2730. // required float border_minx = 11;
  2731. if (cached_has_bits & 0x00000200u) {
  2732. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->border_minx(), target);
  2733. }
  2734. // required float border_maxx = 12;
  2735. if (cached_has_bits & 0x00000400u) {
  2736. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->border_maxx(), target);
  2737. }
  2738. // required float plc_offsetx = 13;
  2739. if (cached_has_bits & 0x00000800u) {
  2740. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->plc_offsetx(), target);
  2741. }
  2742. // required float plc_offsety = 14;
  2743. if (cached_has_bits & 0x00001000u) {
  2744. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(14, this->plc_offsety(), target);
  2745. }
  2746. // required float plc_offset_degree = 15;
  2747. if (cached_has_bits & 0x00002000u) {
  2748. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(15, this->plc_offset_degree(), target);
  2749. }
  2750. // required float plc_border_miny = 16;
  2751. if (cached_has_bits & 0x00004000u) {
  2752. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(16, this->plc_border_miny(), target);
  2753. }
  2754. // required float plc_border_maxy = 17;
  2755. if (cached_has_bits & 0x00008000u) {
  2756. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(17, this->plc_border_maxy(), target);
  2757. }
  2758. // required float car_min_width = 18;
  2759. if (cached_has_bits & 0x00010000u) {
  2760. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(18, this->car_min_width(), target);
  2761. }
  2762. // required float car_max_width = 19;
  2763. if (cached_has_bits & 0x00020000u) {
  2764. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(19, this->car_max_width(), target);
  2765. }
  2766. // required float car_min_wheelbase = 20;
  2767. if (cached_has_bits & 0x00040000u) {
  2768. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(20, this->car_min_wheelbase(), target);
  2769. }
  2770. // required float car_max_wheelbase = 21;
  2771. if (cached_has_bits & 0x00080000u) {
  2772. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(21, this->car_max_wheelbase(), target);
  2773. }
  2774. // required float turnplate_angle_limit_anti_clockwise = 22;
  2775. if (cached_has_bits & 0x00100000u) {
  2776. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(22, this->turnplate_angle_limit_anti_clockwise(), target);
  2777. }
  2778. // required float turnplate_angle_limit_clockwise = 23;
  2779. if (cached_has_bits & 0x00200000u) {
  2780. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(23, this->turnplate_angle_limit_clockwise(), target);
  2781. }
  2782. if (_internal_metadata_.have_unknown_fields()) {
  2783. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2784. _internal_metadata_.unknown_fields(), target);
  2785. }
  2786. // @@protoc_insertion_point(serialize_to_array_end:velodyne.Region)
  2787. return target;
  2788. }
  2789. size_t Region::RequiredFieldsByteSizeFallback() const {
  2790. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:velodyne.Region)
  2791. size_t total_size = 0;
  2792. if (has_minx()) {
  2793. // required float minx = 1;
  2794. total_size += 1 + 4;
  2795. }
  2796. if (has_maxx()) {
  2797. // required float maxx = 2;
  2798. total_size += 1 + 4;
  2799. }
  2800. if (has_miny()) {
  2801. // required float miny = 3;
  2802. total_size += 1 + 4;
  2803. }
  2804. if (has_maxy()) {
  2805. // required float maxy = 4;
  2806. total_size += 1 + 4;
  2807. }
  2808. if (has_minz()) {
  2809. // required float minz = 5;
  2810. total_size += 1 + 4;
  2811. }
  2812. if (has_maxz()) {
  2813. // required float maxz = 6;
  2814. total_size += 1 + 4;
  2815. }
  2816. if (has_region_id()) {
  2817. // required int32 region_id = 7;
  2818. total_size += 1 +
  2819. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2820. this->region_id());
  2821. }
  2822. if (has_turnplate_cx()) {
  2823. // required float turnplate_cx = 9;
  2824. total_size += 1 + 4;
  2825. }
  2826. if (has_turnplate_cy()) {
  2827. // required float turnplate_cy = 10;
  2828. total_size += 1 + 4;
  2829. }
  2830. if (has_border_minx()) {
  2831. // required float border_minx = 11;
  2832. total_size += 1 + 4;
  2833. }
  2834. if (has_border_maxx()) {
  2835. // required float border_maxx = 12;
  2836. total_size += 1 + 4;
  2837. }
  2838. if (has_plc_offsetx()) {
  2839. // required float plc_offsetx = 13;
  2840. total_size += 1 + 4;
  2841. }
  2842. if (has_plc_offsety()) {
  2843. // required float plc_offsety = 14;
  2844. total_size += 1 + 4;
  2845. }
  2846. if (has_plc_offset_degree()) {
  2847. // required float plc_offset_degree = 15;
  2848. total_size += 1 + 4;
  2849. }
  2850. if (has_plc_border_miny()) {
  2851. // required float plc_border_miny = 16;
  2852. total_size += 2 + 4;
  2853. }
  2854. if (has_plc_border_maxy()) {
  2855. // required float plc_border_maxy = 17;
  2856. total_size += 2 + 4;
  2857. }
  2858. if (has_car_min_width()) {
  2859. // required float car_min_width = 18;
  2860. total_size += 2 + 4;
  2861. }
  2862. if (has_car_max_width()) {
  2863. // required float car_max_width = 19;
  2864. total_size += 2 + 4;
  2865. }
  2866. if (has_car_min_wheelbase()) {
  2867. // required float car_min_wheelbase = 20;
  2868. total_size += 2 + 4;
  2869. }
  2870. if (has_car_max_wheelbase()) {
  2871. // required float car_max_wheelbase = 21;
  2872. total_size += 2 + 4;
  2873. }
  2874. if (has_turnplate_angle_limit_anti_clockwise()) {
  2875. // required float turnplate_angle_limit_anti_clockwise = 22;
  2876. total_size += 2 + 4;
  2877. }
  2878. if (has_turnplate_angle_limit_clockwise()) {
  2879. // required float turnplate_angle_limit_clockwise = 23;
  2880. total_size += 2 + 4;
  2881. }
  2882. return total_size;
  2883. }
  2884. size_t Region::ByteSizeLong() const {
  2885. // @@protoc_insertion_point(message_byte_size_start:velodyne.Region)
  2886. size_t total_size = 0;
  2887. if (_internal_metadata_.have_unknown_fields()) {
  2888. total_size +=
  2889. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2890. _internal_metadata_.unknown_fields());
  2891. }
  2892. if (((_has_bits_[0] & 0x003fffff) ^ 0x003fffff) == 0) { // All required fields are present.
  2893. // required float minx = 1;
  2894. total_size += 1 + 4;
  2895. // required float maxx = 2;
  2896. total_size += 1 + 4;
  2897. // required float miny = 3;
  2898. total_size += 1 + 4;
  2899. // required float maxy = 4;
  2900. total_size += 1 + 4;
  2901. // required float minz = 5;
  2902. total_size += 1 + 4;
  2903. // required float maxz = 6;
  2904. total_size += 1 + 4;
  2905. // required int32 region_id = 7;
  2906. total_size += 1 +
  2907. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2908. this->region_id());
  2909. // required float turnplate_cx = 9;
  2910. total_size += 1 + 4;
  2911. // required float turnplate_cy = 10;
  2912. total_size += 1 + 4;
  2913. // required float border_minx = 11;
  2914. total_size += 1 + 4;
  2915. // required float border_maxx = 12;
  2916. total_size += 1 + 4;
  2917. // required float plc_offsetx = 13;
  2918. total_size += 1 + 4;
  2919. // required float plc_offsety = 14;
  2920. total_size += 1 + 4;
  2921. // required float plc_offset_degree = 15;
  2922. total_size += 1 + 4;
  2923. // required float plc_border_miny = 16;
  2924. total_size += 2 + 4;
  2925. // required float plc_border_maxy = 17;
  2926. total_size += 2 + 4;
  2927. // required float car_min_width = 18;
  2928. total_size += 2 + 4;
  2929. // required float car_max_width = 19;
  2930. total_size += 2 + 4;
  2931. // required float car_min_wheelbase = 20;
  2932. total_size += 2 + 4;
  2933. // required float car_max_wheelbase = 21;
  2934. total_size += 2 + 4;
  2935. // required float turnplate_angle_limit_anti_clockwise = 22;
  2936. total_size += 2 + 4;
  2937. // required float turnplate_angle_limit_clockwise = 23;
  2938. total_size += 2 + 4;
  2939. } else {
  2940. total_size += RequiredFieldsByteSizeFallback();
  2941. }
  2942. // repeated .velodyne.lidarExtrinsic lidar_exts = 8;
  2943. {
  2944. unsigned int count = static_cast<unsigned int>(this->lidar_exts_size());
  2945. total_size += 1UL * count;
  2946. for (unsigned int i = 0; i < count; i++) {
  2947. total_size +=
  2948. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2949. this->lidar_exts(static_cast<int>(i)));
  2950. }
  2951. }
  2952. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2953. SetCachedSize(cached_size);
  2954. return total_size;
  2955. }
  2956. void Region::MergeFrom(const ::google::protobuf::Message& from) {
  2957. // @@protoc_insertion_point(generalized_merge_from_start:velodyne.Region)
  2958. GOOGLE_DCHECK_NE(&from, this);
  2959. const Region* source =
  2960. ::google::protobuf::internal::DynamicCastToGenerated<const Region>(
  2961. &from);
  2962. if (source == NULL) {
  2963. // @@protoc_insertion_point(generalized_merge_from_cast_fail:velodyne.Region)
  2964. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2965. } else {
  2966. // @@protoc_insertion_point(generalized_merge_from_cast_success:velodyne.Region)
  2967. MergeFrom(*source);
  2968. }
  2969. }
  2970. void Region::MergeFrom(const Region& from) {
  2971. // @@protoc_insertion_point(class_specific_merge_from_start:velodyne.Region)
  2972. GOOGLE_DCHECK_NE(&from, this);
  2973. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2974. ::google::protobuf::uint32 cached_has_bits = 0;
  2975. (void) cached_has_bits;
  2976. lidar_exts_.MergeFrom(from.lidar_exts_);
  2977. cached_has_bits = from._has_bits_[0];
  2978. if (cached_has_bits & 255u) {
  2979. if (cached_has_bits & 0x00000001u) {
  2980. minx_ = from.minx_;
  2981. }
  2982. if (cached_has_bits & 0x00000002u) {
  2983. maxx_ = from.maxx_;
  2984. }
  2985. if (cached_has_bits & 0x00000004u) {
  2986. miny_ = from.miny_;
  2987. }
  2988. if (cached_has_bits & 0x00000008u) {
  2989. maxy_ = from.maxy_;
  2990. }
  2991. if (cached_has_bits & 0x00000010u) {
  2992. minz_ = from.minz_;
  2993. }
  2994. if (cached_has_bits & 0x00000020u) {
  2995. maxz_ = from.maxz_;
  2996. }
  2997. if (cached_has_bits & 0x00000040u) {
  2998. region_id_ = from.region_id_;
  2999. }
  3000. if (cached_has_bits & 0x00000080u) {
  3001. turnplate_cx_ = from.turnplate_cx_;
  3002. }
  3003. _has_bits_[0] |= cached_has_bits;
  3004. }
  3005. if (cached_has_bits & 65280u) {
  3006. if (cached_has_bits & 0x00000100u) {
  3007. turnplate_cy_ = from.turnplate_cy_;
  3008. }
  3009. if (cached_has_bits & 0x00000200u) {
  3010. border_minx_ = from.border_minx_;
  3011. }
  3012. if (cached_has_bits & 0x00000400u) {
  3013. border_maxx_ = from.border_maxx_;
  3014. }
  3015. if (cached_has_bits & 0x00000800u) {
  3016. plc_offsetx_ = from.plc_offsetx_;
  3017. }
  3018. if (cached_has_bits & 0x00001000u) {
  3019. plc_offsety_ = from.plc_offsety_;
  3020. }
  3021. if (cached_has_bits & 0x00002000u) {
  3022. plc_offset_degree_ = from.plc_offset_degree_;
  3023. }
  3024. if (cached_has_bits & 0x00004000u) {
  3025. plc_border_miny_ = from.plc_border_miny_;
  3026. }
  3027. if (cached_has_bits & 0x00008000u) {
  3028. plc_border_maxy_ = from.plc_border_maxy_;
  3029. }
  3030. _has_bits_[0] |= cached_has_bits;
  3031. }
  3032. if (cached_has_bits & 4128768u) {
  3033. if (cached_has_bits & 0x00010000u) {
  3034. car_min_width_ = from.car_min_width_;
  3035. }
  3036. if (cached_has_bits & 0x00020000u) {
  3037. car_max_width_ = from.car_max_width_;
  3038. }
  3039. if (cached_has_bits & 0x00040000u) {
  3040. car_min_wheelbase_ = from.car_min_wheelbase_;
  3041. }
  3042. if (cached_has_bits & 0x00080000u) {
  3043. car_max_wheelbase_ = from.car_max_wheelbase_;
  3044. }
  3045. if (cached_has_bits & 0x00100000u) {
  3046. turnplate_angle_limit_anti_clockwise_ = from.turnplate_angle_limit_anti_clockwise_;
  3047. }
  3048. if (cached_has_bits & 0x00200000u) {
  3049. turnplate_angle_limit_clockwise_ = from.turnplate_angle_limit_clockwise_;
  3050. }
  3051. _has_bits_[0] |= cached_has_bits;
  3052. }
  3053. }
  3054. void Region::CopyFrom(const ::google::protobuf::Message& from) {
  3055. // @@protoc_insertion_point(generalized_copy_from_start:velodyne.Region)
  3056. if (&from == this) return;
  3057. Clear();
  3058. MergeFrom(from);
  3059. }
  3060. void Region::CopyFrom(const Region& from) {
  3061. // @@protoc_insertion_point(class_specific_copy_from_start:velodyne.Region)
  3062. if (&from == this) return;
  3063. Clear();
  3064. MergeFrom(from);
  3065. }
  3066. bool Region::IsInitialized() const {
  3067. if ((_has_bits_[0] & 0x003fffff) != 0x003fffff) return false;
  3068. if (!::google::protobuf::internal::AllAreInitialized(this->lidar_exts())) return false;
  3069. return true;
  3070. }
  3071. void Region::Swap(Region* other) {
  3072. if (other == this) return;
  3073. InternalSwap(other);
  3074. }
  3075. void Region::InternalSwap(Region* other) {
  3076. using std::swap;
  3077. CastToBase(&lidar_exts_)->InternalSwap(CastToBase(&other->lidar_exts_));
  3078. swap(minx_, other->minx_);
  3079. swap(maxx_, other->maxx_);
  3080. swap(miny_, other->miny_);
  3081. swap(maxy_, other->maxy_);
  3082. swap(minz_, other->minz_);
  3083. swap(maxz_, other->maxz_);
  3084. swap(region_id_, other->region_id_);
  3085. swap(turnplate_cx_, other->turnplate_cx_);
  3086. swap(turnplate_cy_, other->turnplate_cy_);
  3087. swap(border_minx_, other->border_minx_);
  3088. swap(border_maxx_, other->border_maxx_);
  3089. swap(plc_offsetx_, other->plc_offsetx_);
  3090. swap(plc_offsety_, other->plc_offsety_);
  3091. swap(plc_offset_degree_, other->plc_offset_degree_);
  3092. swap(plc_border_miny_, other->plc_border_miny_);
  3093. swap(plc_border_maxy_, other->plc_border_maxy_);
  3094. swap(car_min_width_, other->car_min_width_);
  3095. swap(car_max_width_, other->car_max_width_);
  3096. swap(car_min_wheelbase_, other->car_min_wheelbase_);
  3097. swap(car_max_wheelbase_, other->car_max_wheelbase_);
  3098. swap(turnplate_angle_limit_anti_clockwise_, other->turnplate_angle_limit_anti_clockwise_);
  3099. swap(turnplate_angle_limit_clockwise_, other->turnplate_angle_limit_clockwise_);
  3100. swap(_has_bits_[0], other->_has_bits_[0]);
  3101. _internal_metadata_.Swap(&other->_internal_metadata_);
  3102. }
  3103. ::google::protobuf::Metadata Region::GetMetadata() const {
  3104. protobuf_velodyne_5fconfig_2eproto::protobuf_AssignDescriptorsOnce();
  3105. return ::protobuf_velodyne_5fconfig_2eproto::file_level_metadata[kIndexInFileMessages];
  3106. }
  3107. // @@protoc_insertion_point(namespace_scope)
  3108. } // namespace velodyne
  3109. namespace google {
  3110. namespace protobuf {
  3111. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::velodyneManagerParams* Arena::CreateMaybeMessage< ::velodyne::velodyneManagerParams >(Arena* arena) {
  3112. return Arena::CreateInternal< ::velodyne::velodyneManagerParams >(arena);
  3113. }
  3114. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::velodyneLidarParams* Arena::CreateMaybeMessage< ::velodyne::velodyneLidarParams >(Arena* arena) {
  3115. return Arena::CreateInternal< ::velodyne::velodyneLidarParams >(arena);
  3116. }
  3117. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::CalibParameter* Arena::CreateMaybeMessage< ::velodyne::CalibParameter >(Arena* arena) {
  3118. return Arena::CreateInternal< ::velodyne::CalibParameter >(arena);
  3119. }
  3120. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::lidarExtrinsic* Arena::CreateMaybeMessage< ::velodyne::lidarExtrinsic >(Arena* arena) {
  3121. return Arena::CreateInternal< ::velodyne::lidarExtrinsic >(arena);
  3122. }
  3123. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::velodyne::Region* Arena::CreateMaybeMessage< ::velodyne::Region >(Arena* arena) {
  3124. return Arena::CreateInternal< ::velodyne::Region >(arena);
  3125. }
  3126. } // namespace protobuf
  3127. } // namespace google
  3128. // @@protoc_insertion_point(global_scope)