velodyne_config.pb.cc 128 KB

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