velodyne_config.pb.cc 126 KB

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