wj_lidar_conf.pb.cc 158 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: wj_lidar_conf.proto
  3. #include "wj_lidar_conf.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_wj_5flidar_5fconf_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CalibParameter;
  20. extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Transform2d;
  21. extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_netConfig;
  22. extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_scanLimit;
  23. extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Region;
  24. extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_lidarExtrinsic;
  25. extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_wjLidarParams;
  26. } // namespace protobuf_wj_5flidar_5fconf_2eproto
  27. namespace wj {
  28. class wjManagerParamsDefaultTypeInternal {
  29. public:
  30. ::google::protobuf::internal::ExplicitlyConstructed<wjManagerParams>
  31. _instance;
  32. } _wjManagerParams_default_instance_;
  33. class CalibParameterDefaultTypeInternal {
  34. public:
  35. ::google::protobuf::internal::ExplicitlyConstructed<CalibParameter>
  36. _instance;
  37. } _CalibParameter_default_instance_;
  38. class lidarExtrinsicDefaultTypeInternal {
  39. public:
  40. ::google::protobuf::internal::ExplicitlyConstructed<lidarExtrinsic>
  41. _instance;
  42. } _lidarExtrinsic_default_instance_;
  43. class RegionDefaultTypeInternal {
  44. public:
  45. ::google::protobuf::internal::ExplicitlyConstructed<Region>
  46. _instance;
  47. } _Region_default_instance_;
  48. class wjLidarParamsDefaultTypeInternal {
  49. public:
  50. ::google::protobuf::internal::ExplicitlyConstructed<wjLidarParams>
  51. _instance;
  52. } _wjLidarParams_default_instance_;
  53. class netConfigDefaultTypeInternal {
  54. public:
  55. ::google::protobuf::internal::ExplicitlyConstructed<netConfig>
  56. _instance;
  57. } _netConfig_default_instance_;
  58. class Transform2dDefaultTypeInternal {
  59. public:
  60. ::google::protobuf::internal::ExplicitlyConstructed<Transform2d>
  61. _instance;
  62. } _Transform2d_default_instance_;
  63. class scanLimitDefaultTypeInternal {
  64. public:
  65. ::google::protobuf::internal::ExplicitlyConstructed<scanLimit>
  66. _instance;
  67. } _scanLimit_default_instance_;
  68. } // namespace wj
  69. namespace protobuf_wj_5flidar_5fconf_2eproto {
  70. static void InitDefaultswjManagerParams() {
  71. GOOGLE_PROTOBUF_VERIFY_VERSION;
  72. ::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.DefaultConstruct();
  73. *::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get_mutable() = ::std::string("192.168.0.1", 11);
  74. ::google::protobuf::internal::OnShutdownDestroyString(
  75. ::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get_mutable());
  76. {
  77. void* ptr = &::wj::_wjManagerParams_default_instance_;
  78. new (ptr) ::wj::wjManagerParams();
  79. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  80. }
  81. ::wj::wjManagerParams::InitAsDefaultInstance();
  82. }
  83. ::google::protobuf::internal::SCCInfo<2> scc_info_wjManagerParams =
  84. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultswjManagerParams}, {
  85. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjLidarParams.base,
  86. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Region.base,}};
  87. static void InitDefaultsCalibParameter() {
  88. GOOGLE_PROTOBUF_VERIFY_VERSION;
  89. {
  90. void* ptr = &::wj::_CalibParameter_default_instance_;
  91. new (ptr) ::wj::CalibParameter();
  92. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  93. }
  94. ::wj::CalibParameter::InitAsDefaultInstance();
  95. }
  96. ::google::protobuf::internal::SCCInfo<0> scc_info_CalibParameter =
  97. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCalibParameter}, {}};
  98. static void InitDefaultslidarExtrinsic() {
  99. GOOGLE_PROTOBUF_VERIFY_VERSION;
  100. {
  101. void* ptr = &::wj::_lidarExtrinsic_default_instance_;
  102. new (ptr) ::wj::lidarExtrinsic();
  103. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  104. }
  105. ::wj::lidarExtrinsic::InitAsDefaultInstance();
  106. }
  107. ::google::protobuf::internal::SCCInfo<1> scc_info_lidarExtrinsic =
  108. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultslidarExtrinsic}, {
  109. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_CalibParameter.base,}};
  110. static void InitDefaultsRegion() {
  111. GOOGLE_PROTOBUF_VERIFY_VERSION;
  112. {
  113. void* ptr = &::wj::_Region_default_instance_;
  114. new (ptr) ::wj::Region();
  115. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  116. }
  117. ::wj::Region::InitAsDefaultInstance();
  118. }
  119. ::google::protobuf::internal::SCCInfo<1> scc_info_Region =
  120. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRegion}, {
  121. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_lidarExtrinsic.base,}};
  122. static void InitDefaultswjLidarParams() {
  123. GOOGLE_PROTOBUF_VERIFY_VERSION;
  124. {
  125. void* ptr = &::wj::_wjLidarParams_default_instance_;
  126. new (ptr) ::wj::wjLidarParams();
  127. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  128. }
  129. ::wj::wjLidarParams::InitAsDefaultInstance();
  130. }
  131. ::google::protobuf::internal::SCCInfo<3> scc_info_wjLidarParams =
  132. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultswjLidarParams}, {
  133. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_netConfig.base,
  134. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Transform2d.base,
  135. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_scanLimit.base,}};
  136. static void InitDefaultsnetConfig() {
  137. GOOGLE_PROTOBUF_VERIFY_VERSION;
  138. {
  139. void* ptr = &::wj::_netConfig_default_instance_;
  140. new (ptr) ::wj::netConfig();
  141. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  142. }
  143. ::wj::netConfig::InitAsDefaultInstance();
  144. }
  145. ::google::protobuf::internal::SCCInfo<0> scc_info_netConfig =
  146. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsnetConfig}, {}};
  147. static void InitDefaultsTransform2d() {
  148. GOOGLE_PROTOBUF_VERIFY_VERSION;
  149. {
  150. void* ptr = &::wj::_Transform2d_default_instance_;
  151. new (ptr) ::wj::Transform2d();
  152. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  153. }
  154. ::wj::Transform2d::InitAsDefaultInstance();
  155. }
  156. ::google::protobuf::internal::SCCInfo<0> scc_info_Transform2d =
  157. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTransform2d}, {}};
  158. static void InitDefaultsscanLimit() {
  159. GOOGLE_PROTOBUF_VERIFY_VERSION;
  160. {
  161. void* ptr = &::wj::_scanLimit_default_instance_;
  162. new (ptr) ::wj::scanLimit();
  163. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  164. }
  165. ::wj::scanLimit::InitAsDefaultInstance();
  166. }
  167. ::google::protobuf::internal::SCCInfo<0> scc_info_scanLimit =
  168. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscanLimit}, {}};
  169. void InitDefaults() {
  170. ::google::protobuf::internal::InitSCC(&scc_info_wjManagerParams.base);
  171. ::google::protobuf::internal::InitSCC(&scc_info_CalibParameter.base);
  172. ::google::protobuf::internal::InitSCC(&scc_info_lidarExtrinsic.base);
  173. ::google::protobuf::internal::InitSCC(&scc_info_Region.base);
  174. ::google::protobuf::internal::InitSCC(&scc_info_wjLidarParams.base);
  175. ::google::protobuf::internal::InitSCC(&scc_info_netConfig.base);
  176. ::google::protobuf::internal::InitSCC(&scc_info_Transform2d.base);
  177. ::google::protobuf::internal::InitSCC(&scc_info_scanLimit.base);
  178. }
  179. ::google::protobuf::Metadata file_level_metadata[8];
  180. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  181. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, _has_bits_),
  182. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, _internal_metadata_),
  183. ~0u, // no _extensions_
  184. ~0u, // no _oneof_case_
  185. ~0u, // no _weak_field_map_
  186. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, wj_lidar_),
  187. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, regions_),
  188. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, fence_data_path_),
  189. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, fence_log_path_),
  190. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, plc_ip_address_),
  191. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, distribution_mode_),
  192. ~0u,
  193. ~0u,
  194. 0,
  195. 1,
  196. 2,
  197. 3,
  198. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, _has_bits_),
  199. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, _internal_metadata_),
  200. ~0u, // no _extensions_
  201. ~0u, // no _oneof_case_
  202. ~0u, // no _weak_field_map_
  203. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, r_),
  204. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, p_),
  205. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, y_),
  206. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, cx_),
  207. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, cy_),
  208. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, cz_),
  209. 0,
  210. 1,
  211. 2,
  212. 3,
  213. 4,
  214. 5,
  215. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::lidarExtrinsic, _has_bits_),
  216. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::lidarExtrinsic, _internal_metadata_),
  217. ~0u, // no _extensions_
  218. ~0u, // no _oneof_case_
  219. ~0u, // no _weak_field_map_
  220. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::lidarExtrinsic, lidar_id_),
  221. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::lidarExtrinsic, calib_),
  222. 1,
  223. 0,
  224. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, _has_bits_),
  225. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, _internal_metadata_),
  226. ~0u, // no _extensions_
  227. ~0u, // no _oneof_case_
  228. ~0u, // no _weak_field_map_
  229. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, minx_),
  230. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, maxx_),
  231. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, miny_),
  232. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, maxy_),
  233. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, minz_),
  234. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, maxz_),
  235. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, region_id_),
  236. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, lidar_exts_),
  237. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, turnplate_cx_),
  238. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, turnplate_cy_),
  239. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, border_minx_),
  240. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, border_maxx_),
  241. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, plc_offsetx_),
  242. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, plc_offsety_),
  243. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, plc_offset_degree_),
  244. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, plc_border_miny_),
  245. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, car_min_width_),
  246. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, car_max_width_),
  247. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, car_min_wheelbase_),
  248. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, car_max_wheelbase_),
  249. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, turnplate_angle_limit_anti_clockwise_),
  250. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, turnplate_angle_limit_clockwise_),
  251. 0,
  252. 1,
  253. 2,
  254. 3,
  255. 4,
  256. 5,
  257. 6,
  258. ~0u,
  259. 7,
  260. 8,
  261. 9,
  262. 10,
  263. 11,
  264. 12,
  265. 13,
  266. 14,
  267. 15,
  268. 16,
  269. 17,
  270. 18,
  271. 19,
  272. 20,
  273. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, _has_bits_),
  274. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, _internal_metadata_),
  275. ~0u, // no _extensions_
  276. ~0u, // no _oneof_case_
  277. ~0u, // no _weak_field_map_
  278. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, angle_min_),
  279. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, angle_max_),
  280. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, angle_increment_),
  281. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, time_increment_),
  282. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, range_min_),
  283. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, range_max_),
  284. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, net_config_),
  285. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, transform_),
  286. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, scan_limit_),
  287. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, lidar_id_),
  288. 6,
  289. 7,
  290. 8,
  291. 9,
  292. 3,
  293. 5,
  294. 0,
  295. 1,
  296. 2,
  297. 4,
  298. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::netConfig, _has_bits_),
  299. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::netConfig, _internal_metadata_),
  300. ~0u, // no _extensions_
  301. ~0u, // no _oneof_case_
  302. ~0u, // no _weak_field_map_
  303. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::netConfig, ip_address_),
  304. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::netConfig, port_),
  305. 0,
  306. 1,
  307. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, _has_bits_),
  308. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, _internal_metadata_),
  309. ~0u, // no _extensions_
  310. ~0u, // no _oneof_case_
  311. ~0u, // no _weak_field_map_
  312. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m00_),
  313. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m01_),
  314. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m02_),
  315. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m10_),
  316. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m11_),
  317. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m12_),
  318. 4,
  319. 0,
  320. 1,
  321. 2,
  322. 5,
  323. 3,
  324. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, _has_bits_),
  325. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, _internal_metadata_),
  326. ~0u, // no _extensions_
  327. ~0u, // no _oneof_case_
  328. ~0u, // no _weak_field_map_
  329. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, dist_limit_),
  330. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, minx_),
  331. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, maxx_),
  332. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, miny_),
  333. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, maxy_),
  334. 1,
  335. 2,
  336. 3,
  337. 4,
  338. 0,
  339. };
  340. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  341. { 0, 11, sizeof(::wj::wjManagerParams)},
  342. { 17, 28, sizeof(::wj::CalibParameter)},
  343. { 34, 41, sizeof(::wj::lidarExtrinsic)},
  344. { 43, 70, sizeof(::wj::Region)},
  345. { 92, 107, sizeof(::wj::wjLidarParams)},
  346. { 117, 124, sizeof(::wj::netConfig)},
  347. { 126, 137, sizeof(::wj::Transform2d)},
  348. { 143, 153, sizeof(::wj::scanLimit)},
  349. };
  350. static ::google::protobuf::Message const * const file_default_instances[] = {
  351. reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_wjManagerParams_default_instance_),
  352. reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_CalibParameter_default_instance_),
  353. reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_lidarExtrinsic_default_instance_),
  354. reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_Region_default_instance_),
  355. reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_wjLidarParams_default_instance_),
  356. reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_netConfig_default_instance_),
  357. reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_Transform2d_default_instance_),
  358. reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_scanLimit_default_instance_),
  359. };
  360. void protobuf_AssignDescriptors() {
  361. AddDescriptors();
  362. AssignDescriptors(
  363. "wj_lidar_conf.proto", schemas, file_default_instances, TableStruct::offsets,
  364. file_level_metadata, NULL, NULL);
  365. }
  366. void protobuf_AssignDescriptorsOnce() {
  367. static ::google::protobuf::internal::once_flag once;
  368. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  369. }
  370. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  371. void protobuf_RegisterTypes(const ::std::string&) {
  372. protobuf_AssignDescriptorsOnce();
  373. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 8);
  374. }
  375. void AddDescriptorsImpl() {
  376. InitDefaults();
  377. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  378. "\n\023wj_lidar_conf.proto\022\002wj\"\317\001\n\017wjManagerP"
  379. "arams\022#\n\010wj_lidar\030\001 \003(\0132\021.wj.wjLidarPara"
  380. "ms\022\033\n\007regions\030\002 \003(\0132\n.wj.Region\022\031\n\017fence"
  381. "_data_path\030\003 \001(\t:\000\022\030\n\016fence_log_path\030\004 \001"
  382. "(\t:\000\022#\n\016plc_ip_address\030\005 \001(\t:\013192.168.0."
  383. "1\022 \n\021distribution_mode\030\006 \002(\010:\005false\"g\n\016C"
  384. "alibParameter\022\014\n\001r\030\001 \001(\002:\0010\022\014\n\001p\030\002 \001(\002:\001"
  385. "0\022\014\n\001y\030\003 \001(\002:\0010\022\r\n\002cx\030\004 \001(\002:\0010\022\r\n\002cy\030\005 \001"
  386. "(\002:\0010\022\r\n\002cz\030\006 \001(\002:\0010\"E\n\016lidarExtrinsic\022\020"
  387. "\n\010lidar_id\030\001 \002(\005\022!\n\005calib\030\002 \001(\0132\022.wj.Cal"
  388. "ibParameter\"\206\004\n\006Region\022\014\n\004minx\030\001 \002(\002\022\014\n\004"
  389. "maxx\030\002 \002(\002\022\014\n\004miny\030\003 \002(\002\022\014\n\004maxy\030\004 \002(\002\022\014"
  390. "\n\004minz\030\005 \002(\002\022\014\n\004maxz\030\006 \002(\002\022\021\n\tregion_id\030"
  391. "\007 \002(\005\022&\n\nlidar_exts\030\010 \003(\0132\022.wj.lidarExtr"
  392. "insic\022\024\n\014turnplate_cx\030\t \002(\002\022\024\n\014turnplate"
  393. "_cy\030\n \002(\002\022\023\n\013border_minx\030\013 \002(\002\022\023\n\013border"
  394. "_maxx\030\014 \002(\002\022\023\n\013plc_offsetx\030\r \002(\002\022\023\n\013plc_"
  395. "offsety\030\016 \002(\002\022\031\n\021plc_offset_degree\030\017 \002(\002"
  396. "\022\027\n\017plc_border_miny\030\020 \002(\002\022\025\n\rcar_min_wid"
  397. "th\030\021 \002(\002\022\025\n\rcar_max_width\030\022 \002(\002\022\031\n\021car_m"
  398. "in_wheelbase\030\023 \002(\002\022\031\n\021car_max_wheelbase\030"
  399. "\024 \002(\002\022,\n$turnplate_angle_limit_anti_cloc"
  400. "kwise\030\025 \002(\002\022\'\n\037turnplate_angle_limit_clo"
  401. "ckwise\030\026 \002(\002\"\273\002\n\rwjLidarParams\022\035\n\tangle_"
  402. "min\030\001 \001(\002:\n-2.3561945\022\034\n\tangle_max\030\002 \001(\002"
  403. ":\t2.3561945\022 \n\017angle_increment\030\003 \001(\002:\0070."
  404. "00582\022\037\n\016time_increment\030\004 \001(\002:\0076.2e-05\022\024"
  405. "\n\trange_min\030\005 \001(\005:\0010\022\025\n\trange_max\030\006 \001(\005:"
  406. "\00230\022!\n\nnet_config\030\007 \002(\0132\r.wj.netConfig\022\""
  407. "\n\ttransform\030\010 \002(\0132\017.wj.Transform2d\022!\n\nsc"
  408. "an_limit\030\t \002(\0132\r.wj.scanLimit\022\023\n\010lidar_i"
  409. "d\030\n \002(\005:\0010\"5\n\tnetConfig\022\024\n\nip_address\030\001 "
  410. "\001(\t:\000\022\022\n\004port\030\002 \001(\005:\0048000\"m\n\013Transform2d"
  411. "\022\016\n\003m00\030\001 \001(\002:\0011\022\016\n\003m01\030\002 \001(\002:\0010\022\016\n\003m02\030"
  412. "\003 \001(\002:\0010\022\016\n\003m10\030\004 \001(\002:\0010\022\016\n\003m11\030\005 \001(\002:\0011"
  413. "\022\016\n\003m12\030\006 \001(\002:\0010\"o\n\tscanLimit\022\025\n\ndist_li"
  414. "mit\030\001 \001(\002:\0018\022\020\n\004minx\030\002 \001(\002:\002-6\022\022\n\004maxx\030\003"
  415. " \001(\002:\004-0.2\022\022\n\004miny\030\004 \001(\002:\004-3.5\022\021\n\004maxy\030\005"
  416. " \001(\002:\0033.5"
  417. };
  418. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  419. descriptor, 1529);
  420. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  421. "wj_lidar_conf.proto", &protobuf_RegisterTypes);
  422. }
  423. void AddDescriptors() {
  424. static ::google::protobuf::internal::once_flag once;
  425. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  426. }
  427. // Force AddDescriptors() to be called at dynamic initialization time.
  428. struct StaticDescriptorInitializer {
  429. StaticDescriptorInitializer() {
  430. AddDescriptors();
  431. }
  432. } static_descriptor_initializer;
  433. } // namespace protobuf_wj_5flidar_5fconf_2eproto
  434. namespace wj {
  435. // ===================================================================
  436. void wjManagerParams::InitAsDefaultInstance() {
  437. }
  438. ::google::protobuf::internal::ExplicitlyConstructed<::std::string> wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_;
  439. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  440. const int wjManagerParams::kWjLidarFieldNumber;
  441. const int wjManagerParams::kRegionsFieldNumber;
  442. const int wjManagerParams::kFenceDataPathFieldNumber;
  443. const int wjManagerParams::kFenceLogPathFieldNumber;
  444. const int wjManagerParams::kPlcIpAddressFieldNumber;
  445. const int wjManagerParams::kDistributionModeFieldNumber;
  446. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  447. wjManagerParams::wjManagerParams()
  448. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  449. ::google::protobuf::internal::InitSCC(
  450. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjManagerParams.base);
  451. SharedCtor();
  452. // @@protoc_insertion_point(constructor:wj.wjManagerParams)
  453. }
  454. wjManagerParams::wjManagerParams(const wjManagerParams& from)
  455. : ::google::protobuf::Message(),
  456. _internal_metadata_(NULL),
  457. _has_bits_(from._has_bits_),
  458. wj_lidar_(from.wj_lidar_),
  459. regions_(from.regions_) {
  460. _internal_metadata_.MergeFrom(from._internal_metadata_);
  461. fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  462. if (from.has_fence_data_path()) {
  463. fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
  464. }
  465. fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  466. if (from.has_fence_log_path()) {
  467. fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
  468. }
  469. plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
  470. if (from.has_plc_ip_address()) {
  471. plc_ip_address_.AssignWithDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), from.plc_ip_address_);
  472. }
  473. distribution_mode_ = from.distribution_mode_;
  474. // @@protoc_insertion_point(copy_constructor:wj.wjManagerParams)
  475. }
  476. void wjManagerParams::SharedCtor() {
  477. fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  478. fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  479. plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
  480. distribution_mode_ = false;
  481. }
  482. wjManagerParams::~wjManagerParams() {
  483. // @@protoc_insertion_point(destructor:wj.wjManagerParams)
  484. SharedDtor();
  485. }
  486. void wjManagerParams::SharedDtor() {
  487. fence_data_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  488. fence_log_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  489. plc_ip_address_.DestroyNoArena(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
  490. }
  491. void wjManagerParams::SetCachedSize(int size) const {
  492. _cached_size_.Set(size);
  493. }
  494. const ::google::protobuf::Descriptor* wjManagerParams::descriptor() {
  495. ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  496. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  497. }
  498. const wjManagerParams& wjManagerParams::default_instance() {
  499. ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjManagerParams.base);
  500. return *internal_default_instance();
  501. }
  502. void wjManagerParams::Clear() {
  503. // @@protoc_insertion_point(message_clear_start:wj.wjManagerParams)
  504. ::google::protobuf::uint32 cached_has_bits = 0;
  505. // Prevent compiler warnings about cached_has_bits being unused
  506. (void) cached_has_bits;
  507. wj_lidar_.Clear();
  508. regions_.Clear();
  509. cached_has_bits = _has_bits_[0];
  510. if (cached_has_bits & 7u) {
  511. if (cached_has_bits & 0x00000001u) {
  512. fence_data_path_.ClearNonDefaultToEmptyNoArena();
  513. }
  514. if (cached_has_bits & 0x00000002u) {
  515. fence_log_path_.ClearNonDefaultToEmptyNoArena();
  516. }
  517. if (cached_has_bits & 0x00000004u) {
  518. plc_ip_address_.UnsafeMutablePointer()->assign(*&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
  519. }
  520. }
  521. distribution_mode_ = false;
  522. _has_bits_.Clear();
  523. _internal_metadata_.Clear();
  524. }
  525. bool wjManagerParams::MergePartialFromCodedStream(
  526. ::google::protobuf::io::CodedInputStream* input) {
  527. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  528. ::google::protobuf::uint32 tag;
  529. // @@protoc_insertion_point(parse_start:wj.wjManagerParams)
  530. for (;;) {
  531. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  532. tag = p.first;
  533. if (!p.second) goto handle_unusual;
  534. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  535. // repeated .wj.wjLidarParams wj_lidar = 1;
  536. case 1: {
  537. if (static_cast< ::google::protobuf::uint8>(tag) ==
  538. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  539. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  540. input, add_wj_lidar()));
  541. } else {
  542. goto handle_unusual;
  543. }
  544. break;
  545. }
  546. // repeated .wj.Region regions = 2;
  547. case 2: {
  548. if (static_cast< ::google::protobuf::uint8>(tag) ==
  549. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  550. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  551. input, add_regions()));
  552. } else {
  553. goto handle_unusual;
  554. }
  555. break;
  556. }
  557. // optional string fence_data_path = 3 [default = ""];
  558. case 3: {
  559. if (static_cast< ::google::protobuf::uint8>(tag) ==
  560. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  561. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  562. input, this->mutable_fence_data_path()));
  563. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  564. this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
  565. ::google::protobuf::internal::WireFormat::PARSE,
  566. "wj.wjManagerParams.fence_data_path");
  567. } else {
  568. goto handle_unusual;
  569. }
  570. break;
  571. }
  572. // optional string fence_log_path = 4 [default = ""];
  573. case 4: {
  574. if (static_cast< ::google::protobuf::uint8>(tag) ==
  575. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  576. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  577. input, this->mutable_fence_log_path()));
  578. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  579. this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
  580. ::google::protobuf::internal::WireFormat::PARSE,
  581. "wj.wjManagerParams.fence_log_path");
  582. } else {
  583. goto handle_unusual;
  584. }
  585. break;
  586. }
  587. // optional string plc_ip_address = 5 [default = "192.168.0.1"];
  588. case 5: {
  589. if (static_cast< ::google::protobuf::uint8>(tag) ==
  590. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  591. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  592. input, this->mutable_plc_ip_address()));
  593. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  594. this->plc_ip_address().data(), static_cast<int>(this->plc_ip_address().length()),
  595. ::google::protobuf::internal::WireFormat::PARSE,
  596. "wj.wjManagerParams.plc_ip_address");
  597. } else {
  598. goto handle_unusual;
  599. }
  600. break;
  601. }
  602. // required bool distribution_mode = 6 [default = false];
  603. case 6: {
  604. if (static_cast< ::google::protobuf::uint8>(tag) ==
  605. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  606. set_has_distribution_mode();
  607. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  608. bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
  609. input, &distribution_mode_)));
  610. } else {
  611. goto handle_unusual;
  612. }
  613. break;
  614. }
  615. default: {
  616. handle_unusual:
  617. if (tag == 0) {
  618. goto success;
  619. }
  620. DO_(::google::protobuf::internal::WireFormat::SkipField(
  621. input, tag, _internal_metadata_.mutable_unknown_fields()));
  622. break;
  623. }
  624. }
  625. }
  626. success:
  627. // @@protoc_insertion_point(parse_success:wj.wjManagerParams)
  628. return true;
  629. failure:
  630. // @@protoc_insertion_point(parse_failure:wj.wjManagerParams)
  631. return false;
  632. #undef DO_
  633. }
  634. void wjManagerParams::SerializeWithCachedSizes(
  635. ::google::protobuf::io::CodedOutputStream* output) const {
  636. // @@protoc_insertion_point(serialize_start:wj.wjManagerParams)
  637. ::google::protobuf::uint32 cached_has_bits = 0;
  638. (void) cached_has_bits;
  639. // repeated .wj.wjLidarParams wj_lidar = 1;
  640. for (unsigned int i = 0,
  641. n = static_cast<unsigned int>(this->wj_lidar_size()); i < n; i++) {
  642. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  643. 1,
  644. this->wj_lidar(static_cast<int>(i)),
  645. output);
  646. }
  647. // repeated .wj.Region regions = 2;
  648. for (unsigned int i = 0,
  649. n = static_cast<unsigned int>(this->regions_size()); i < n; i++) {
  650. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  651. 2,
  652. this->regions(static_cast<int>(i)),
  653. output);
  654. }
  655. cached_has_bits = _has_bits_[0];
  656. // optional string fence_data_path = 3 [default = ""];
  657. if (cached_has_bits & 0x00000001u) {
  658. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  659. this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
  660. ::google::protobuf::internal::WireFormat::SERIALIZE,
  661. "wj.wjManagerParams.fence_data_path");
  662. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  663. 3, this->fence_data_path(), output);
  664. }
  665. // optional string fence_log_path = 4 [default = ""];
  666. if (cached_has_bits & 0x00000002u) {
  667. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  668. this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
  669. ::google::protobuf::internal::WireFormat::SERIALIZE,
  670. "wj.wjManagerParams.fence_log_path");
  671. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  672. 4, this->fence_log_path(), output);
  673. }
  674. // optional string plc_ip_address = 5 [default = "192.168.0.1"];
  675. if (cached_has_bits & 0x00000004u) {
  676. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  677. this->plc_ip_address().data(), static_cast<int>(this->plc_ip_address().length()),
  678. ::google::protobuf::internal::WireFormat::SERIALIZE,
  679. "wj.wjManagerParams.plc_ip_address");
  680. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  681. 5, this->plc_ip_address(), output);
  682. }
  683. // required bool distribution_mode = 6 [default = false];
  684. if (cached_has_bits & 0x00000008u) {
  685. ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->distribution_mode(), output);
  686. }
  687. if (_internal_metadata_.have_unknown_fields()) {
  688. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  689. _internal_metadata_.unknown_fields(), output);
  690. }
  691. // @@protoc_insertion_point(serialize_end:wj.wjManagerParams)
  692. }
  693. ::google::protobuf::uint8* wjManagerParams::InternalSerializeWithCachedSizesToArray(
  694. bool deterministic, ::google::protobuf::uint8* target) const {
  695. (void)deterministic; // Unused
  696. // @@protoc_insertion_point(serialize_to_array_start:wj.wjManagerParams)
  697. ::google::protobuf::uint32 cached_has_bits = 0;
  698. (void) cached_has_bits;
  699. // repeated .wj.wjLidarParams wj_lidar = 1;
  700. for (unsigned int i = 0,
  701. n = static_cast<unsigned int>(this->wj_lidar_size()); i < n; i++) {
  702. target = ::google::protobuf::internal::WireFormatLite::
  703. InternalWriteMessageToArray(
  704. 1, this->wj_lidar(static_cast<int>(i)), deterministic, target);
  705. }
  706. // repeated .wj.Region regions = 2;
  707. for (unsigned int i = 0,
  708. n = static_cast<unsigned int>(this->regions_size()); i < n; i++) {
  709. target = ::google::protobuf::internal::WireFormatLite::
  710. InternalWriteMessageToArray(
  711. 2, this->regions(static_cast<int>(i)), deterministic, target);
  712. }
  713. cached_has_bits = _has_bits_[0];
  714. // optional string fence_data_path = 3 [default = ""];
  715. if (cached_has_bits & 0x00000001u) {
  716. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  717. this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
  718. ::google::protobuf::internal::WireFormat::SERIALIZE,
  719. "wj.wjManagerParams.fence_data_path");
  720. target =
  721. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  722. 3, this->fence_data_path(), target);
  723. }
  724. // optional string fence_log_path = 4 [default = ""];
  725. if (cached_has_bits & 0x00000002u) {
  726. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  727. this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
  728. ::google::protobuf::internal::WireFormat::SERIALIZE,
  729. "wj.wjManagerParams.fence_log_path");
  730. target =
  731. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  732. 4, this->fence_log_path(), target);
  733. }
  734. // optional string plc_ip_address = 5 [default = "192.168.0.1"];
  735. if (cached_has_bits & 0x00000004u) {
  736. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  737. this->plc_ip_address().data(), static_cast<int>(this->plc_ip_address().length()),
  738. ::google::protobuf::internal::WireFormat::SERIALIZE,
  739. "wj.wjManagerParams.plc_ip_address");
  740. target =
  741. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  742. 5, this->plc_ip_address(), target);
  743. }
  744. // required bool distribution_mode = 6 [default = false];
  745. if (cached_has_bits & 0x00000008u) {
  746. target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->distribution_mode(), target);
  747. }
  748. if (_internal_metadata_.have_unknown_fields()) {
  749. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  750. _internal_metadata_.unknown_fields(), target);
  751. }
  752. // @@protoc_insertion_point(serialize_to_array_end:wj.wjManagerParams)
  753. return target;
  754. }
  755. size_t wjManagerParams::ByteSizeLong() const {
  756. // @@protoc_insertion_point(message_byte_size_start:wj.wjManagerParams)
  757. size_t total_size = 0;
  758. if (_internal_metadata_.have_unknown_fields()) {
  759. total_size +=
  760. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  761. _internal_metadata_.unknown_fields());
  762. }
  763. // required bool distribution_mode = 6 [default = false];
  764. if (has_distribution_mode()) {
  765. total_size += 1 + 1;
  766. }
  767. // repeated .wj.wjLidarParams wj_lidar = 1;
  768. {
  769. unsigned int count = static_cast<unsigned int>(this->wj_lidar_size());
  770. total_size += 1UL * count;
  771. for (unsigned int i = 0; i < count; i++) {
  772. total_size +=
  773. ::google::protobuf::internal::WireFormatLite::MessageSize(
  774. this->wj_lidar(static_cast<int>(i)));
  775. }
  776. }
  777. // repeated .wj.Region regions = 2;
  778. {
  779. unsigned int count = static_cast<unsigned int>(this->regions_size());
  780. total_size += 1UL * count;
  781. for (unsigned int i = 0; i < count; i++) {
  782. total_size +=
  783. ::google::protobuf::internal::WireFormatLite::MessageSize(
  784. this->regions(static_cast<int>(i)));
  785. }
  786. }
  787. if (_has_bits_[0 / 32] & 7u) {
  788. // optional string fence_data_path = 3 [default = ""];
  789. if (has_fence_data_path()) {
  790. total_size += 1 +
  791. ::google::protobuf::internal::WireFormatLite::StringSize(
  792. this->fence_data_path());
  793. }
  794. // optional string fence_log_path = 4 [default = ""];
  795. if (has_fence_log_path()) {
  796. total_size += 1 +
  797. ::google::protobuf::internal::WireFormatLite::StringSize(
  798. this->fence_log_path());
  799. }
  800. // optional string plc_ip_address = 5 [default = "192.168.0.1"];
  801. if (has_plc_ip_address()) {
  802. total_size += 1 +
  803. ::google::protobuf::internal::WireFormatLite::StringSize(
  804. this->plc_ip_address());
  805. }
  806. }
  807. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  808. SetCachedSize(cached_size);
  809. return total_size;
  810. }
  811. void wjManagerParams::MergeFrom(const ::google::protobuf::Message& from) {
  812. // @@protoc_insertion_point(generalized_merge_from_start:wj.wjManagerParams)
  813. GOOGLE_DCHECK_NE(&from, this);
  814. const wjManagerParams* source =
  815. ::google::protobuf::internal::DynamicCastToGenerated<const wjManagerParams>(
  816. &from);
  817. if (source == NULL) {
  818. // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.wjManagerParams)
  819. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  820. } else {
  821. // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.wjManagerParams)
  822. MergeFrom(*source);
  823. }
  824. }
  825. void wjManagerParams::MergeFrom(const wjManagerParams& from) {
  826. // @@protoc_insertion_point(class_specific_merge_from_start:wj.wjManagerParams)
  827. GOOGLE_DCHECK_NE(&from, this);
  828. _internal_metadata_.MergeFrom(from._internal_metadata_);
  829. ::google::protobuf::uint32 cached_has_bits = 0;
  830. (void) cached_has_bits;
  831. wj_lidar_.MergeFrom(from.wj_lidar_);
  832. regions_.MergeFrom(from.regions_);
  833. cached_has_bits = from._has_bits_[0];
  834. if (cached_has_bits & 15u) {
  835. if (cached_has_bits & 0x00000001u) {
  836. set_has_fence_data_path();
  837. fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
  838. }
  839. if (cached_has_bits & 0x00000002u) {
  840. set_has_fence_log_path();
  841. fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
  842. }
  843. if (cached_has_bits & 0x00000004u) {
  844. set_has_plc_ip_address();
  845. plc_ip_address_.AssignWithDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), from.plc_ip_address_);
  846. }
  847. if (cached_has_bits & 0x00000008u) {
  848. distribution_mode_ = from.distribution_mode_;
  849. }
  850. _has_bits_[0] |= cached_has_bits;
  851. }
  852. }
  853. void wjManagerParams::CopyFrom(const ::google::protobuf::Message& from) {
  854. // @@protoc_insertion_point(generalized_copy_from_start:wj.wjManagerParams)
  855. if (&from == this) return;
  856. Clear();
  857. MergeFrom(from);
  858. }
  859. void wjManagerParams::CopyFrom(const wjManagerParams& from) {
  860. // @@protoc_insertion_point(class_specific_copy_from_start:wj.wjManagerParams)
  861. if (&from == this) return;
  862. Clear();
  863. MergeFrom(from);
  864. }
  865. bool wjManagerParams::IsInitialized() const {
  866. if ((_has_bits_[0] & 0x00000008) != 0x00000008) return false;
  867. if (!::google::protobuf::internal::AllAreInitialized(this->wj_lidar())) return false;
  868. if (!::google::protobuf::internal::AllAreInitialized(this->regions())) return false;
  869. return true;
  870. }
  871. void wjManagerParams::Swap(wjManagerParams* other) {
  872. if (other == this) return;
  873. InternalSwap(other);
  874. }
  875. void wjManagerParams::InternalSwap(wjManagerParams* other) {
  876. using std::swap;
  877. CastToBase(&wj_lidar_)->InternalSwap(CastToBase(&other->wj_lidar_));
  878. CastToBase(&regions_)->InternalSwap(CastToBase(&other->regions_));
  879. fence_data_path_.Swap(&other->fence_data_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  880. GetArenaNoVirtual());
  881. fence_log_path_.Swap(&other->fence_log_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  882. GetArenaNoVirtual());
  883. plc_ip_address_.Swap(&other->plc_ip_address_, &::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(),
  884. GetArenaNoVirtual());
  885. swap(distribution_mode_, other->distribution_mode_);
  886. swap(_has_bits_[0], other->_has_bits_[0]);
  887. _internal_metadata_.Swap(&other->_internal_metadata_);
  888. }
  889. ::google::protobuf::Metadata wjManagerParams::GetMetadata() const {
  890. protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  891. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
  892. }
  893. // ===================================================================
  894. void CalibParameter::InitAsDefaultInstance() {
  895. }
  896. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  897. const int CalibParameter::kRFieldNumber;
  898. const int CalibParameter::kPFieldNumber;
  899. const int CalibParameter::kYFieldNumber;
  900. const int CalibParameter::kCxFieldNumber;
  901. const int CalibParameter::kCyFieldNumber;
  902. const int CalibParameter::kCzFieldNumber;
  903. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  904. CalibParameter::CalibParameter()
  905. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  906. ::google::protobuf::internal::InitSCC(
  907. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_CalibParameter.base);
  908. SharedCtor();
  909. // @@protoc_insertion_point(constructor:wj.CalibParameter)
  910. }
  911. CalibParameter::CalibParameter(const CalibParameter& from)
  912. : ::google::protobuf::Message(),
  913. _internal_metadata_(NULL),
  914. _has_bits_(from._has_bits_) {
  915. _internal_metadata_.MergeFrom(from._internal_metadata_);
  916. ::memcpy(&r_, &from.r_,
  917. static_cast<size_t>(reinterpret_cast<char*>(&cz_) -
  918. reinterpret_cast<char*>(&r_)) + sizeof(cz_));
  919. // @@protoc_insertion_point(copy_constructor:wj.CalibParameter)
  920. }
  921. void CalibParameter::SharedCtor() {
  922. ::memset(&r_, 0, static_cast<size_t>(
  923. reinterpret_cast<char*>(&cz_) -
  924. reinterpret_cast<char*>(&r_)) + sizeof(cz_));
  925. }
  926. CalibParameter::~CalibParameter() {
  927. // @@protoc_insertion_point(destructor:wj.CalibParameter)
  928. SharedDtor();
  929. }
  930. void CalibParameter::SharedDtor() {
  931. }
  932. void CalibParameter::SetCachedSize(int size) const {
  933. _cached_size_.Set(size);
  934. }
  935. const ::google::protobuf::Descriptor* CalibParameter::descriptor() {
  936. ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  937. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  938. }
  939. const CalibParameter& CalibParameter::default_instance() {
  940. ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_CalibParameter.base);
  941. return *internal_default_instance();
  942. }
  943. void CalibParameter::Clear() {
  944. // @@protoc_insertion_point(message_clear_start:wj.CalibParameter)
  945. ::google::protobuf::uint32 cached_has_bits = 0;
  946. // Prevent compiler warnings about cached_has_bits being unused
  947. (void) cached_has_bits;
  948. cached_has_bits = _has_bits_[0];
  949. if (cached_has_bits & 63u) {
  950. ::memset(&r_, 0, static_cast<size_t>(
  951. reinterpret_cast<char*>(&cz_) -
  952. reinterpret_cast<char*>(&r_)) + sizeof(cz_));
  953. }
  954. _has_bits_.Clear();
  955. _internal_metadata_.Clear();
  956. }
  957. bool CalibParameter::MergePartialFromCodedStream(
  958. ::google::protobuf::io::CodedInputStream* input) {
  959. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  960. ::google::protobuf::uint32 tag;
  961. // @@protoc_insertion_point(parse_start:wj.CalibParameter)
  962. for (;;) {
  963. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  964. tag = p.first;
  965. if (!p.second) goto handle_unusual;
  966. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  967. // optional float r = 1 [default = 0];
  968. case 1: {
  969. if (static_cast< ::google::protobuf::uint8>(tag) ==
  970. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  971. set_has_r();
  972. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  973. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  974. input, &r_)));
  975. } else {
  976. goto handle_unusual;
  977. }
  978. break;
  979. }
  980. // optional float p = 2 [default = 0];
  981. case 2: {
  982. if (static_cast< ::google::protobuf::uint8>(tag) ==
  983. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  984. set_has_p();
  985. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  986. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  987. input, &p_)));
  988. } else {
  989. goto handle_unusual;
  990. }
  991. break;
  992. }
  993. // optional float y = 3 [default = 0];
  994. case 3: {
  995. if (static_cast< ::google::protobuf::uint8>(tag) ==
  996. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  997. set_has_y();
  998. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  999. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1000. input, &y_)));
  1001. } else {
  1002. goto handle_unusual;
  1003. }
  1004. break;
  1005. }
  1006. // optional float cx = 4 [default = 0];
  1007. case 4: {
  1008. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1009. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  1010. set_has_cx();
  1011. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1012. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1013. input, &cx_)));
  1014. } else {
  1015. goto handle_unusual;
  1016. }
  1017. break;
  1018. }
  1019. // optional float cy = 5 [default = 0];
  1020. case 5: {
  1021. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1022. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  1023. set_has_cy();
  1024. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1025. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1026. input, &cy_)));
  1027. } else {
  1028. goto handle_unusual;
  1029. }
  1030. break;
  1031. }
  1032. // optional float cz = 6 [default = 0];
  1033. case 6: {
  1034. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1035. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  1036. set_has_cz();
  1037. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1038. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1039. input, &cz_)));
  1040. } else {
  1041. goto handle_unusual;
  1042. }
  1043. break;
  1044. }
  1045. default: {
  1046. handle_unusual:
  1047. if (tag == 0) {
  1048. goto success;
  1049. }
  1050. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1051. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1052. break;
  1053. }
  1054. }
  1055. }
  1056. success:
  1057. // @@protoc_insertion_point(parse_success:wj.CalibParameter)
  1058. return true;
  1059. failure:
  1060. // @@protoc_insertion_point(parse_failure:wj.CalibParameter)
  1061. return false;
  1062. #undef DO_
  1063. }
  1064. void CalibParameter::SerializeWithCachedSizes(
  1065. ::google::protobuf::io::CodedOutputStream* output) const {
  1066. // @@protoc_insertion_point(serialize_start:wj.CalibParameter)
  1067. ::google::protobuf::uint32 cached_has_bits = 0;
  1068. (void) cached_has_bits;
  1069. cached_has_bits = _has_bits_[0];
  1070. // optional float r = 1 [default = 0];
  1071. if (cached_has_bits & 0x00000001u) {
  1072. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->r(), output);
  1073. }
  1074. // optional float p = 2 [default = 0];
  1075. if (cached_has_bits & 0x00000002u) {
  1076. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->p(), output);
  1077. }
  1078. // optional float y = 3 [default = 0];
  1079. if (cached_has_bits & 0x00000004u) {
  1080. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->y(), output);
  1081. }
  1082. // optional float cx = 4 [default = 0];
  1083. if (cached_has_bits & 0x00000008u) {
  1084. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->cx(), output);
  1085. }
  1086. // optional float cy = 5 [default = 0];
  1087. if (cached_has_bits & 0x00000010u) {
  1088. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->cy(), output);
  1089. }
  1090. // optional float cz = 6 [default = 0];
  1091. if (cached_has_bits & 0x00000020u) {
  1092. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->cz(), output);
  1093. }
  1094. if (_internal_metadata_.have_unknown_fields()) {
  1095. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1096. _internal_metadata_.unknown_fields(), output);
  1097. }
  1098. // @@protoc_insertion_point(serialize_end:wj.CalibParameter)
  1099. }
  1100. ::google::protobuf::uint8* CalibParameter::InternalSerializeWithCachedSizesToArray(
  1101. bool deterministic, ::google::protobuf::uint8* target) const {
  1102. (void)deterministic; // Unused
  1103. // @@protoc_insertion_point(serialize_to_array_start:wj.CalibParameter)
  1104. ::google::protobuf::uint32 cached_has_bits = 0;
  1105. (void) cached_has_bits;
  1106. cached_has_bits = _has_bits_[0];
  1107. // optional float r = 1 [default = 0];
  1108. if (cached_has_bits & 0x00000001u) {
  1109. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->r(), target);
  1110. }
  1111. // optional float p = 2 [default = 0];
  1112. if (cached_has_bits & 0x00000002u) {
  1113. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->p(), target);
  1114. }
  1115. // optional float y = 3 [default = 0];
  1116. if (cached_has_bits & 0x00000004u) {
  1117. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->y(), target);
  1118. }
  1119. // optional float cx = 4 [default = 0];
  1120. if (cached_has_bits & 0x00000008u) {
  1121. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->cx(), target);
  1122. }
  1123. // optional float cy = 5 [default = 0];
  1124. if (cached_has_bits & 0x00000010u) {
  1125. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->cy(), target);
  1126. }
  1127. // optional float cz = 6 [default = 0];
  1128. if (cached_has_bits & 0x00000020u) {
  1129. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->cz(), target);
  1130. }
  1131. if (_internal_metadata_.have_unknown_fields()) {
  1132. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1133. _internal_metadata_.unknown_fields(), target);
  1134. }
  1135. // @@protoc_insertion_point(serialize_to_array_end:wj.CalibParameter)
  1136. return target;
  1137. }
  1138. size_t CalibParameter::ByteSizeLong() const {
  1139. // @@protoc_insertion_point(message_byte_size_start:wj.CalibParameter)
  1140. size_t total_size = 0;
  1141. if (_internal_metadata_.have_unknown_fields()) {
  1142. total_size +=
  1143. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1144. _internal_metadata_.unknown_fields());
  1145. }
  1146. if (_has_bits_[0 / 32] & 63u) {
  1147. // optional float r = 1 [default = 0];
  1148. if (has_r()) {
  1149. total_size += 1 + 4;
  1150. }
  1151. // optional float p = 2 [default = 0];
  1152. if (has_p()) {
  1153. total_size += 1 + 4;
  1154. }
  1155. // optional float y = 3 [default = 0];
  1156. if (has_y()) {
  1157. total_size += 1 + 4;
  1158. }
  1159. // optional float cx = 4 [default = 0];
  1160. if (has_cx()) {
  1161. total_size += 1 + 4;
  1162. }
  1163. // optional float cy = 5 [default = 0];
  1164. if (has_cy()) {
  1165. total_size += 1 + 4;
  1166. }
  1167. // optional float cz = 6 [default = 0];
  1168. if (has_cz()) {
  1169. total_size += 1 + 4;
  1170. }
  1171. }
  1172. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1173. SetCachedSize(cached_size);
  1174. return total_size;
  1175. }
  1176. void CalibParameter::MergeFrom(const ::google::protobuf::Message& from) {
  1177. // @@protoc_insertion_point(generalized_merge_from_start:wj.CalibParameter)
  1178. GOOGLE_DCHECK_NE(&from, this);
  1179. const CalibParameter* source =
  1180. ::google::protobuf::internal::DynamicCastToGenerated<const CalibParameter>(
  1181. &from);
  1182. if (source == NULL) {
  1183. // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.CalibParameter)
  1184. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1185. } else {
  1186. // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.CalibParameter)
  1187. MergeFrom(*source);
  1188. }
  1189. }
  1190. void CalibParameter::MergeFrom(const CalibParameter& from) {
  1191. // @@protoc_insertion_point(class_specific_merge_from_start:wj.CalibParameter)
  1192. GOOGLE_DCHECK_NE(&from, this);
  1193. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1194. ::google::protobuf::uint32 cached_has_bits = 0;
  1195. (void) cached_has_bits;
  1196. cached_has_bits = from._has_bits_[0];
  1197. if (cached_has_bits & 63u) {
  1198. if (cached_has_bits & 0x00000001u) {
  1199. r_ = from.r_;
  1200. }
  1201. if (cached_has_bits & 0x00000002u) {
  1202. p_ = from.p_;
  1203. }
  1204. if (cached_has_bits & 0x00000004u) {
  1205. y_ = from.y_;
  1206. }
  1207. if (cached_has_bits & 0x00000008u) {
  1208. cx_ = from.cx_;
  1209. }
  1210. if (cached_has_bits & 0x00000010u) {
  1211. cy_ = from.cy_;
  1212. }
  1213. if (cached_has_bits & 0x00000020u) {
  1214. cz_ = from.cz_;
  1215. }
  1216. _has_bits_[0] |= cached_has_bits;
  1217. }
  1218. }
  1219. void CalibParameter::CopyFrom(const ::google::protobuf::Message& from) {
  1220. // @@protoc_insertion_point(generalized_copy_from_start:wj.CalibParameter)
  1221. if (&from == this) return;
  1222. Clear();
  1223. MergeFrom(from);
  1224. }
  1225. void CalibParameter::CopyFrom(const CalibParameter& from) {
  1226. // @@protoc_insertion_point(class_specific_copy_from_start:wj.CalibParameter)
  1227. if (&from == this) return;
  1228. Clear();
  1229. MergeFrom(from);
  1230. }
  1231. bool CalibParameter::IsInitialized() const {
  1232. return true;
  1233. }
  1234. void CalibParameter::Swap(CalibParameter* other) {
  1235. if (other == this) return;
  1236. InternalSwap(other);
  1237. }
  1238. void CalibParameter::InternalSwap(CalibParameter* other) {
  1239. using std::swap;
  1240. swap(r_, other->r_);
  1241. swap(p_, other->p_);
  1242. swap(y_, other->y_);
  1243. swap(cx_, other->cx_);
  1244. swap(cy_, other->cy_);
  1245. swap(cz_, other->cz_);
  1246. swap(_has_bits_[0], other->_has_bits_[0]);
  1247. _internal_metadata_.Swap(&other->_internal_metadata_);
  1248. }
  1249. ::google::protobuf::Metadata CalibParameter::GetMetadata() const {
  1250. protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  1251. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
  1252. }
  1253. // ===================================================================
  1254. void lidarExtrinsic::InitAsDefaultInstance() {
  1255. ::wj::_lidarExtrinsic_default_instance_._instance.get_mutable()->calib_ = const_cast< ::wj::CalibParameter*>(
  1256. ::wj::CalibParameter::internal_default_instance());
  1257. }
  1258. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1259. const int lidarExtrinsic::kLidarIdFieldNumber;
  1260. const int lidarExtrinsic::kCalibFieldNumber;
  1261. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1262. lidarExtrinsic::lidarExtrinsic()
  1263. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1264. ::google::protobuf::internal::InitSCC(
  1265. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_lidarExtrinsic.base);
  1266. SharedCtor();
  1267. // @@protoc_insertion_point(constructor:wj.lidarExtrinsic)
  1268. }
  1269. lidarExtrinsic::lidarExtrinsic(const lidarExtrinsic& from)
  1270. : ::google::protobuf::Message(),
  1271. _internal_metadata_(NULL),
  1272. _has_bits_(from._has_bits_) {
  1273. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1274. if (from.has_calib()) {
  1275. calib_ = new ::wj::CalibParameter(*from.calib_);
  1276. } else {
  1277. calib_ = NULL;
  1278. }
  1279. lidar_id_ = from.lidar_id_;
  1280. // @@protoc_insertion_point(copy_constructor:wj.lidarExtrinsic)
  1281. }
  1282. void lidarExtrinsic::SharedCtor() {
  1283. ::memset(&calib_, 0, static_cast<size_t>(
  1284. reinterpret_cast<char*>(&lidar_id_) -
  1285. reinterpret_cast<char*>(&calib_)) + sizeof(lidar_id_));
  1286. }
  1287. lidarExtrinsic::~lidarExtrinsic() {
  1288. // @@protoc_insertion_point(destructor:wj.lidarExtrinsic)
  1289. SharedDtor();
  1290. }
  1291. void lidarExtrinsic::SharedDtor() {
  1292. if (this != internal_default_instance()) delete calib_;
  1293. }
  1294. void lidarExtrinsic::SetCachedSize(int size) const {
  1295. _cached_size_.Set(size);
  1296. }
  1297. const ::google::protobuf::Descriptor* lidarExtrinsic::descriptor() {
  1298. ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  1299. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1300. }
  1301. const lidarExtrinsic& lidarExtrinsic::default_instance() {
  1302. ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_lidarExtrinsic.base);
  1303. return *internal_default_instance();
  1304. }
  1305. void lidarExtrinsic::Clear() {
  1306. // @@protoc_insertion_point(message_clear_start:wj.lidarExtrinsic)
  1307. ::google::protobuf::uint32 cached_has_bits = 0;
  1308. // Prevent compiler warnings about cached_has_bits being unused
  1309. (void) cached_has_bits;
  1310. cached_has_bits = _has_bits_[0];
  1311. if (cached_has_bits & 0x00000001u) {
  1312. GOOGLE_DCHECK(calib_ != NULL);
  1313. calib_->Clear();
  1314. }
  1315. lidar_id_ = 0;
  1316. _has_bits_.Clear();
  1317. _internal_metadata_.Clear();
  1318. }
  1319. bool lidarExtrinsic::MergePartialFromCodedStream(
  1320. ::google::protobuf::io::CodedInputStream* input) {
  1321. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1322. ::google::protobuf::uint32 tag;
  1323. // @@protoc_insertion_point(parse_start:wj.lidarExtrinsic)
  1324. for (;;) {
  1325. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1326. tag = p.first;
  1327. if (!p.second) goto handle_unusual;
  1328. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1329. // required int32 lidar_id = 1;
  1330. case 1: {
  1331. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1332. static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
  1333. set_has_lidar_id();
  1334. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1335. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1336. input, &lidar_id_)));
  1337. } else {
  1338. goto handle_unusual;
  1339. }
  1340. break;
  1341. }
  1342. // optional .wj.CalibParameter calib = 2;
  1343. case 2: {
  1344. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1345. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1346. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1347. input, mutable_calib()));
  1348. } else {
  1349. goto handle_unusual;
  1350. }
  1351. break;
  1352. }
  1353. default: {
  1354. handle_unusual:
  1355. if (tag == 0) {
  1356. goto success;
  1357. }
  1358. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1359. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1360. break;
  1361. }
  1362. }
  1363. }
  1364. success:
  1365. // @@protoc_insertion_point(parse_success:wj.lidarExtrinsic)
  1366. return true;
  1367. failure:
  1368. // @@protoc_insertion_point(parse_failure:wj.lidarExtrinsic)
  1369. return false;
  1370. #undef DO_
  1371. }
  1372. void lidarExtrinsic::SerializeWithCachedSizes(
  1373. ::google::protobuf::io::CodedOutputStream* output) const {
  1374. // @@protoc_insertion_point(serialize_start:wj.lidarExtrinsic)
  1375. ::google::protobuf::uint32 cached_has_bits = 0;
  1376. (void) cached_has_bits;
  1377. cached_has_bits = _has_bits_[0];
  1378. // required int32 lidar_id = 1;
  1379. if (cached_has_bits & 0x00000002u) {
  1380. ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->lidar_id(), output);
  1381. }
  1382. // optional .wj.CalibParameter calib = 2;
  1383. if (cached_has_bits & 0x00000001u) {
  1384. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1385. 2, this->_internal_calib(), output);
  1386. }
  1387. if (_internal_metadata_.have_unknown_fields()) {
  1388. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1389. _internal_metadata_.unknown_fields(), output);
  1390. }
  1391. // @@protoc_insertion_point(serialize_end:wj.lidarExtrinsic)
  1392. }
  1393. ::google::protobuf::uint8* lidarExtrinsic::InternalSerializeWithCachedSizesToArray(
  1394. bool deterministic, ::google::protobuf::uint8* target) const {
  1395. (void)deterministic; // Unused
  1396. // @@protoc_insertion_point(serialize_to_array_start:wj.lidarExtrinsic)
  1397. ::google::protobuf::uint32 cached_has_bits = 0;
  1398. (void) cached_has_bits;
  1399. cached_has_bits = _has_bits_[0];
  1400. // required int32 lidar_id = 1;
  1401. if (cached_has_bits & 0x00000002u) {
  1402. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->lidar_id(), target);
  1403. }
  1404. // optional .wj.CalibParameter calib = 2;
  1405. if (cached_has_bits & 0x00000001u) {
  1406. target = ::google::protobuf::internal::WireFormatLite::
  1407. InternalWriteMessageToArray(
  1408. 2, this->_internal_calib(), deterministic, target);
  1409. }
  1410. if (_internal_metadata_.have_unknown_fields()) {
  1411. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1412. _internal_metadata_.unknown_fields(), target);
  1413. }
  1414. // @@protoc_insertion_point(serialize_to_array_end:wj.lidarExtrinsic)
  1415. return target;
  1416. }
  1417. size_t lidarExtrinsic::ByteSizeLong() const {
  1418. // @@protoc_insertion_point(message_byte_size_start:wj.lidarExtrinsic)
  1419. size_t total_size = 0;
  1420. if (_internal_metadata_.have_unknown_fields()) {
  1421. total_size +=
  1422. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1423. _internal_metadata_.unknown_fields());
  1424. }
  1425. // required int32 lidar_id = 1;
  1426. if (has_lidar_id()) {
  1427. total_size += 1 +
  1428. ::google::protobuf::internal::WireFormatLite::Int32Size(
  1429. this->lidar_id());
  1430. }
  1431. // optional .wj.CalibParameter calib = 2;
  1432. if (has_calib()) {
  1433. total_size += 1 +
  1434. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1435. *calib_);
  1436. }
  1437. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1438. SetCachedSize(cached_size);
  1439. return total_size;
  1440. }
  1441. void lidarExtrinsic::MergeFrom(const ::google::protobuf::Message& from) {
  1442. // @@protoc_insertion_point(generalized_merge_from_start:wj.lidarExtrinsic)
  1443. GOOGLE_DCHECK_NE(&from, this);
  1444. const lidarExtrinsic* source =
  1445. ::google::protobuf::internal::DynamicCastToGenerated<const lidarExtrinsic>(
  1446. &from);
  1447. if (source == NULL) {
  1448. // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.lidarExtrinsic)
  1449. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1450. } else {
  1451. // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.lidarExtrinsic)
  1452. MergeFrom(*source);
  1453. }
  1454. }
  1455. void lidarExtrinsic::MergeFrom(const lidarExtrinsic& from) {
  1456. // @@protoc_insertion_point(class_specific_merge_from_start:wj.lidarExtrinsic)
  1457. GOOGLE_DCHECK_NE(&from, this);
  1458. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1459. ::google::protobuf::uint32 cached_has_bits = 0;
  1460. (void) cached_has_bits;
  1461. cached_has_bits = from._has_bits_[0];
  1462. if (cached_has_bits & 3u) {
  1463. if (cached_has_bits & 0x00000001u) {
  1464. mutable_calib()->::wj::CalibParameter::MergeFrom(from.calib());
  1465. }
  1466. if (cached_has_bits & 0x00000002u) {
  1467. lidar_id_ = from.lidar_id_;
  1468. }
  1469. _has_bits_[0] |= cached_has_bits;
  1470. }
  1471. }
  1472. void lidarExtrinsic::CopyFrom(const ::google::protobuf::Message& from) {
  1473. // @@protoc_insertion_point(generalized_copy_from_start:wj.lidarExtrinsic)
  1474. if (&from == this) return;
  1475. Clear();
  1476. MergeFrom(from);
  1477. }
  1478. void lidarExtrinsic::CopyFrom(const lidarExtrinsic& from) {
  1479. // @@protoc_insertion_point(class_specific_copy_from_start:wj.lidarExtrinsic)
  1480. if (&from == this) return;
  1481. Clear();
  1482. MergeFrom(from);
  1483. }
  1484. bool lidarExtrinsic::IsInitialized() const {
  1485. if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
  1486. return true;
  1487. }
  1488. void lidarExtrinsic::Swap(lidarExtrinsic* other) {
  1489. if (other == this) return;
  1490. InternalSwap(other);
  1491. }
  1492. void lidarExtrinsic::InternalSwap(lidarExtrinsic* other) {
  1493. using std::swap;
  1494. swap(calib_, other->calib_);
  1495. swap(lidar_id_, other->lidar_id_);
  1496. swap(_has_bits_[0], other->_has_bits_[0]);
  1497. _internal_metadata_.Swap(&other->_internal_metadata_);
  1498. }
  1499. ::google::protobuf::Metadata lidarExtrinsic::GetMetadata() const {
  1500. protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  1501. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
  1502. }
  1503. // ===================================================================
  1504. void Region::InitAsDefaultInstance() {
  1505. }
  1506. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1507. const int Region::kMinxFieldNumber;
  1508. const int Region::kMaxxFieldNumber;
  1509. const int Region::kMinyFieldNumber;
  1510. const int Region::kMaxyFieldNumber;
  1511. const int Region::kMinzFieldNumber;
  1512. const int Region::kMaxzFieldNumber;
  1513. const int Region::kRegionIdFieldNumber;
  1514. const int Region::kLidarExtsFieldNumber;
  1515. const int Region::kTurnplateCxFieldNumber;
  1516. const int Region::kTurnplateCyFieldNumber;
  1517. const int Region::kBorderMinxFieldNumber;
  1518. const int Region::kBorderMaxxFieldNumber;
  1519. const int Region::kPlcOffsetxFieldNumber;
  1520. const int Region::kPlcOffsetyFieldNumber;
  1521. const int Region::kPlcOffsetDegreeFieldNumber;
  1522. const int Region::kPlcBorderMinyFieldNumber;
  1523. const int Region::kCarMinWidthFieldNumber;
  1524. const int Region::kCarMaxWidthFieldNumber;
  1525. const int Region::kCarMinWheelbaseFieldNumber;
  1526. const int Region::kCarMaxWheelbaseFieldNumber;
  1527. const int Region::kTurnplateAngleLimitAntiClockwiseFieldNumber;
  1528. const int Region::kTurnplateAngleLimitClockwiseFieldNumber;
  1529. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1530. Region::Region()
  1531. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1532. ::google::protobuf::internal::InitSCC(
  1533. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Region.base);
  1534. SharedCtor();
  1535. // @@protoc_insertion_point(constructor:wj.Region)
  1536. }
  1537. Region::Region(const Region& from)
  1538. : ::google::protobuf::Message(),
  1539. _internal_metadata_(NULL),
  1540. _has_bits_(from._has_bits_),
  1541. lidar_exts_(from.lidar_exts_) {
  1542. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1543. ::memcpy(&minx_, &from.minx_,
  1544. static_cast<size_t>(reinterpret_cast<char*>(&turnplate_angle_limit_clockwise_) -
  1545. reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_angle_limit_clockwise_));
  1546. // @@protoc_insertion_point(copy_constructor:wj.Region)
  1547. }
  1548. void Region::SharedCtor() {
  1549. ::memset(&minx_, 0, static_cast<size_t>(
  1550. reinterpret_cast<char*>(&turnplate_angle_limit_clockwise_) -
  1551. reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_angle_limit_clockwise_));
  1552. }
  1553. Region::~Region() {
  1554. // @@protoc_insertion_point(destructor:wj.Region)
  1555. SharedDtor();
  1556. }
  1557. void Region::SharedDtor() {
  1558. }
  1559. void Region::SetCachedSize(int size) const {
  1560. _cached_size_.Set(size);
  1561. }
  1562. const ::google::protobuf::Descriptor* Region::descriptor() {
  1563. ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  1564. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1565. }
  1566. const Region& Region::default_instance() {
  1567. ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_Region.base);
  1568. return *internal_default_instance();
  1569. }
  1570. void Region::Clear() {
  1571. // @@protoc_insertion_point(message_clear_start:wj.Region)
  1572. ::google::protobuf::uint32 cached_has_bits = 0;
  1573. // Prevent compiler warnings about cached_has_bits being unused
  1574. (void) cached_has_bits;
  1575. lidar_exts_.Clear();
  1576. cached_has_bits = _has_bits_[0];
  1577. if (cached_has_bits & 255u) {
  1578. ::memset(&minx_, 0, static_cast<size_t>(
  1579. reinterpret_cast<char*>(&turnplate_cx_) -
  1580. reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_cx_));
  1581. }
  1582. if (cached_has_bits & 65280u) {
  1583. ::memset(&turnplate_cy_, 0, static_cast<size_t>(
  1584. reinterpret_cast<char*>(&car_min_width_) -
  1585. reinterpret_cast<char*>(&turnplate_cy_)) + sizeof(car_min_width_));
  1586. }
  1587. if (cached_has_bits & 2031616u) {
  1588. ::memset(&car_max_width_, 0, static_cast<size_t>(
  1589. reinterpret_cast<char*>(&turnplate_angle_limit_clockwise_) -
  1590. reinterpret_cast<char*>(&car_max_width_)) + sizeof(turnplate_angle_limit_clockwise_));
  1591. }
  1592. _has_bits_.Clear();
  1593. _internal_metadata_.Clear();
  1594. }
  1595. bool Region::MergePartialFromCodedStream(
  1596. ::google::protobuf::io::CodedInputStream* input) {
  1597. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1598. ::google::protobuf::uint32 tag;
  1599. // @@protoc_insertion_point(parse_start:wj.Region)
  1600. for (;;) {
  1601. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  1602. tag = p.first;
  1603. if (!p.second) goto handle_unusual;
  1604. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1605. // required float minx = 1;
  1606. case 1: {
  1607. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1608. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  1609. set_has_minx();
  1610. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1611. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1612. input, &minx_)));
  1613. } else {
  1614. goto handle_unusual;
  1615. }
  1616. break;
  1617. }
  1618. // required float maxx = 2;
  1619. case 2: {
  1620. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1621. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  1622. set_has_maxx();
  1623. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1624. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1625. input, &maxx_)));
  1626. } else {
  1627. goto handle_unusual;
  1628. }
  1629. break;
  1630. }
  1631. // required float miny = 3;
  1632. case 3: {
  1633. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1634. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  1635. set_has_miny();
  1636. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1637. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1638. input, &miny_)));
  1639. } else {
  1640. goto handle_unusual;
  1641. }
  1642. break;
  1643. }
  1644. // required float maxy = 4;
  1645. case 4: {
  1646. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1647. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  1648. set_has_maxy();
  1649. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1650. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1651. input, &maxy_)));
  1652. } else {
  1653. goto handle_unusual;
  1654. }
  1655. break;
  1656. }
  1657. // required float minz = 5;
  1658. case 5: {
  1659. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1660. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  1661. set_has_minz();
  1662. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1663. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1664. input, &minz_)));
  1665. } else {
  1666. goto handle_unusual;
  1667. }
  1668. break;
  1669. }
  1670. // required float maxz = 6;
  1671. case 6: {
  1672. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1673. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  1674. set_has_maxz();
  1675. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1676. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1677. input, &maxz_)));
  1678. } else {
  1679. goto handle_unusual;
  1680. }
  1681. break;
  1682. }
  1683. // required int32 region_id = 7;
  1684. case 7: {
  1685. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1686. static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
  1687. set_has_region_id();
  1688. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1689. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  1690. input, &region_id_)));
  1691. } else {
  1692. goto handle_unusual;
  1693. }
  1694. break;
  1695. }
  1696. // repeated .wj.lidarExtrinsic lidar_exts = 8;
  1697. case 8: {
  1698. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1699. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  1700. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1701. input, add_lidar_exts()));
  1702. } else {
  1703. goto handle_unusual;
  1704. }
  1705. break;
  1706. }
  1707. // required float turnplate_cx = 9;
  1708. case 9: {
  1709. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1710. static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
  1711. set_has_turnplate_cx();
  1712. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1713. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1714. input, &turnplate_cx_)));
  1715. } else {
  1716. goto handle_unusual;
  1717. }
  1718. break;
  1719. }
  1720. // required float turnplate_cy = 10;
  1721. case 10: {
  1722. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1723. static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
  1724. set_has_turnplate_cy();
  1725. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1726. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1727. input, &turnplate_cy_)));
  1728. } else {
  1729. goto handle_unusual;
  1730. }
  1731. break;
  1732. }
  1733. // required float border_minx = 11;
  1734. case 11: {
  1735. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1736. static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
  1737. set_has_border_minx();
  1738. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1739. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1740. input, &border_minx_)));
  1741. } else {
  1742. goto handle_unusual;
  1743. }
  1744. break;
  1745. }
  1746. // required float border_maxx = 12;
  1747. case 12: {
  1748. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1749. static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
  1750. set_has_border_maxx();
  1751. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1752. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1753. input, &border_maxx_)));
  1754. } else {
  1755. goto handle_unusual;
  1756. }
  1757. break;
  1758. }
  1759. // required float plc_offsetx = 13;
  1760. case 13: {
  1761. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1762. static_cast< ::google::protobuf::uint8>(109u /* 109 & 0xFF */)) {
  1763. set_has_plc_offsetx();
  1764. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1765. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1766. input, &plc_offsetx_)));
  1767. } else {
  1768. goto handle_unusual;
  1769. }
  1770. break;
  1771. }
  1772. // required float plc_offsety = 14;
  1773. case 14: {
  1774. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1775. static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) {
  1776. set_has_plc_offsety();
  1777. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1778. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1779. input, &plc_offsety_)));
  1780. } else {
  1781. goto handle_unusual;
  1782. }
  1783. break;
  1784. }
  1785. // required float plc_offset_degree = 15;
  1786. case 15: {
  1787. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1788. static_cast< ::google::protobuf::uint8>(125u /* 125 & 0xFF */)) {
  1789. set_has_plc_offset_degree();
  1790. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1791. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1792. input, &plc_offset_degree_)));
  1793. } else {
  1794. goto handle_unusual;
  1795. }
  1796. break;
  1797. }
  1798. // required float plc_border_miny = 16;
  1799. case 16: {
  1800. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1801. static_cast< ::google::protobuf::uint8>(133u /* 133 & 0xFF */)) {
  1802. set_has_plc_border_miny();
  1803. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1804. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1805. input, &plc_border_miny_)));
  1806. } else {
  1807. goto handle_unusual;
  1808. }
  1809. break;
  1810. }
  1811. // required float car_min_width = 17;
  1812. case 17: {
  1813. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1814. static_cast< ::google::protobuf::uint8>(141u /* 141 & 0xFF */)) {
  1815. set_has_car_min_width();
  1816. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1817. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1818. input, &car_min_width_)));
  1819. } else {
  1820. goto handle_unusual;
  1821. }
  1822. break;
  1823. }
  1824. // required float car_max_width = 18;
  1825. case 18: {
  1826. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1827. static_cast< ::google::protobuf::uint8>(149u /* 149 & 0xFF */)) {
  1828. set_has_car_max_width();
  1829. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1830. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1831. input, &car_max_width_)));
  1832. } else {
  1833. goto handle_unusual;
  1834. }
  1835. break;
  1836. }
  1837. // required float car_min_wheelbase = 19;
  1838. case 19: {
  1839. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1840. static_cast< ::google::protobuf::uint8>(157u /* 157 & 0xFF */)) {
  1841. set_has_car_min_wheelbase();
  1842. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1843. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1844. input, &car_min_wheelbase_)));
  1845. } else {
  1846. goto handle_unusual;
  1847. }
  1848. break;
  1849. }
  1850. // required float car_max_wheelbase = 20;
  1851. case 20: {
  1852. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1853. static_cast< ::google::protobuf::uint8>(165u /* 165 & 0xFF */)) {
  1854. set_has_car_max_wheelbase();
  1855. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1856. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1857. input, &car_max_wheelbase_)));
  1858. } else {
  1859. goto handle_unusual;
  1860. }
  1861. break;
  1862. }
  1863. // required float turnplate_angle_limit_anti_clockwise = 21;
  1864. case 21: {
  1865. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1866. static_cast< ::google::protobuf::uint8>(173u /* 173 & 0xFF */)) {
  1867. set_has_turnplate_angle_limit_anti_clockwise();
  1868. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1869. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1870. input, &turnplate_angle_limit_anti_clockwise_)));
  1871. } else {
  1872. goto handle_unusual;
  1873. }
  1874. break;
  1875. }
  1876. // required float turnplate_angle_limit_clockwise = 22;
  1877. case 22: {
  1878. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1879. static_cast< ::google::protobuf::uint8>(181u /* 181 & 0xFF */)) {
  1880. set_has_turnplate_angle_limit_clockwise();
  1881. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  1882. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  1883. input, &turnplate_angle_limit_clockwise_)));
  1884. } else {
  1885. goto handle_unusual;
  1886. }
  1887. break;
  1888. }
  1889. default: {
  1890. handle_unusual:
  1891. if (tag == 0) {
  1892. goto success;
  1893. }
  1894. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1895. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1896. break;
  1897. }
  1898. }
  1899. }
  1900. success:
  1901. // @@protoc_insertion_point(parse_success:wj.Region)
  1902. return true;
  1903. failure:
  1904. // @@protoc_insertion_point(parse_failure:wj.Region)
  1905. return false;
  1906. #undef DO_
  1907. }
  1908. void Region::SerializeWithCachedSizes(
  1909. ::google::protobuf::io::CodedOutputStream* output) const {
  1910. // @@protoc_insertion_point(serialize_start:wj.Region)
  1911. ::google::protobuf::uint32 cached_has_bits = 0;
  1912. (void) cached_has_bits;
  1913. cached_has_bits = _has_bits_[0];
  1914. // required float minx = 1;
  1915. if (cached_has_bits & 0x00000001u) {
  1916. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->minx(), output);
  1917. }
  1918. // required float maxx = 2;
  1919. if (cached_has_bits & 0x00000002u) {
  1920. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->maxx(), output);
  1921. }
  1922. // required float miny = 3;
  1923. if (cached_has_bits & 0x00000004u) {
  1924. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->miny(), output);
  1925. }
  1926. // required float maxy = 4;
  1927. if (cached_has_bits & 0x00000008u) {
  1928. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->maxy(), output);
  1929. }
  1930. // required float minz = 5;
  1931. if (cached_has_bits & 0x00000010u) {
  1932. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->minz(), output);
  1933. }
  1934. // required float maxz = 6;
  1935. if (cached_has_bits & 0x00000020u) {
  1936. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->maxz(), output);
  1937. }
  1938. // required int32 region_id = 7;
  1939. if (cached_has_bits & 0x00000040u) {
  1940. ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->region_id(), output);
  1941. }
  1942. // repeated .wj.lidarExtrinsic lidar_exts = 8;
  1943. for (unsigned int i = 0,
  1944. n = static_cast<unsigned int>(this->lidar_exts_size()); i < n; i++) {
  1945. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1946. 8,
  1947. this->lidar_exts(static_cast<int>(i)),
  1948. output);
  1949. }
  1950. // required float turnplate_cx = 9;
  1951. if (cached_has_bits & 0x00000080u) {
  1952. ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->turnplate_cx(), output);
  1953. }
  1954. // required float turnplate_cy = 10;
  1955. if (cached_has_bits & 0x00000100u) {
  1956. ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->turnplate_cy(), output);
  1957. }
  1958. // required float border_minx = 11;
  1959. if (cached_has_bits & 0x00000200u) {
  1960. ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->border_minx(), output);
  1961. }
  1962. // required float border_maxx = 12;
  1963. if (cached_has_bits & 0x00000400u) {
  1964. ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->border_maxx(), output);
  1965. }
  1966. // required float plc_offsetx = 13;
  1967. if (cached_has_bits & 0x00000800u) {
  1968. ::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->plc_offsetx(), output);
  1969. }
  1970. // required float plc_offsety = 14;
  1971. if (cached_has_bits & 0x00001000u) {
  1972. ::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->plc_offsety(), output);
  1973. }
  1974. // required float plc_offset_degree = 15;
  1975. if (cached_has_bits & 0x00002000u) {
  1976. ::google::protobuf::internal::WireFormatLite::WriteFloat(15, this->plc_offset_degree(), output);
  1977. }
  1978. // required float plc_border_miny = 16;
  1979. if (cached_has_bits & 0x00004000u) {
  1980. ::google::protobuf::internal::WireFormatLite::WriteFloat(16, this->plc_border_miny(), output);
  1981. }
  1982. // required float car_min_width = 17;
  1983. if (cached_has_bits & 0x00008000u) {
  1984. ::google::protobuf::internal::WireFormatLite::WriteFloat(17, this->car_min_width(), output);
  1985. }
  1986. // required float car_max_width = 18;
  1987. if (cached_has_bits & 0x00010000u) {
  1988. ::google::protobuf::internal::WireFormatLite::WriteFloat(18, this->car_max_width(), output);
  1989. }
  1990. // required float car_min_wheelbase = 19;
  1991. if (cached_has_bits & 0x00020000u) {
  1992. ::google::protobuf::internal::WireFormatLite::WriteFloat(19, this->car_min_wheelbase(), output);
  1993. }
  1994. // required float car_max_wheelbase = 20;
  1995. if (cached_has_bits & 0x00040000u) {
  1996. ::google::protobuf::internal::WireFormatLite::WriteFloat(20, this->car_max_wheelbase(), output);
  1997. }
  1998. // required float turnplate_angle_limit_anti_clockwise = 21;
  1999. if (cached_has_bits & 0x00080000u) {
  2000. ::google::protobuf::internal::WireFormatLite::WriteFloat(21, this->turnplate_angle_limit_anti_clockwise(), output);
  2001. }
  2002. // required float turnplate_angle_limit_clockwise = 22;
  2003. if (cached_has_bits & 0x00100000u) {
  2004. ::google::protobuf::internal::WireFormatLite::WriteFloat(22, this->turnplate_angle_limit_clockwise(), output);
  2005. }
  2006. if (_internal_metadata_.have_unknown_fields()) {
  2007. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2008. _internal_metadata_.unknown_fields(), output);
  2009. }
  2010. // @@protoc_insertion_point(serialize_end:wj.Region)
  2011. }
  2012. ::google::protobuf::uint8* Region::InternalSerializeWithCachedSizesToArray(
  2013. bool deterministic, ::google::protobuf::uint8* target) const {
  2014. (void)deterministic; // Unused
  2015. // @@protoc_insertion_point(serialize_to_array_start:wj.Region)
  2016. ::google::protobuf::uint32 cached_has_bits = 0;
  2017. (void) cached_has_bits;
  2018. cached_has_bits = _has_bits_[0];
  2019. // required float minx = 1;
  2020. if (cached_has_bits & 0x00000001u) {
  2021. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->minx(), target);
  2022. }
  2023. // required float maxx = 2;
  2024. if (cached_has_bits & 0x00000002u) {
  2025. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->maxx(), target);
  2026. }
  2027. // required float miny = 3;
  2028. if (cached_has_bits & 0x00000004u) {
  2029. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->miny(), target);
  2030. }
  2031. // required float maxy = 4;
  2032. if (cached_has_bits & 0x00000008u) {
  2033. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->maxy(), target);
  2034. }
  2035. // required float minz = 5;
  2036. if (cached_has_bits & 0x00000010u) {
  2037. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->minz(), target);
  2038. }
  2039. // required float maxz = 6;
  2040. if (cached_has_bits & 0x00000020u) {
  2041. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->maxz(), target);
  2042. }
  2043. // required int32 region_id = 7;
  2044. if (cached_has_bits & 0x00000040u) {
  2045. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->region_id(), target);
  2046. }
  2047. // repeated .wj.lidarExtrinsic lidar_exts = 8;
  2048. for (unsigned int i = 0,
  2049. n = static_cast<unsigned int>(this->lidar_exts_size()); i < n; i++) {
  2050. target = ::google::protobuf::internal::WireFormatLite::
  2051. InternalWriteMessageToArray(
  2052. 8, this->lidar_exts(static_cast<int>(i)), deterministic, target);
  2053. }
  2054. // required float turnplate_cx = 9;
  2055. if (cached_has_bits & 0x00000080u) {
  2056. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->turnplate_cx(), target);
  2057. }
  2058. // required float turnplate_cy = 10;
  2059. if (cached_has_bits & 0x00000100u) {
  2060. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->turnplate_cy(), target);
  2061. }
  2062. // required float border_minx = 11;
  2063. if (cached_has_bits & 0x00000200u) {
  2064. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->border_minx(), target);
  2065. }
  2066. // required float border_maxx = 12;
  2067. if (cached_has_bits & 0x00000400u) {
  2068. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->border_maxx(), target);
  2069. }
  2070. // required float plc_offsetx = 13;
  2071. if (cached_has_bits & 0x00000800u) {
  2072. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->plc_offsetx(), target);
  2073. }
  2074. // required float plc_offsety = 14;
  2075. if (cached_has_bits & 0x00001000u) {
  2076. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(14, this->plc_offsety(), target);
  2077. }
  2078. // required float plc_offset_degree = 15;
  2079. if (cached_has_bits & 0x00002000u) {
  2080. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(15, this->plc_offset_degree(), target);
  2081. }
  2082. // required float plc_border_miny = 16;
  2083. if (cached_has_bits & 0x00004000u) {
  2084. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(16, this->plc_border_miny(), target);
  2085. }
  2086. // required float car_min_width = 17;
  2087. if (cached_has_bits & 0x00008000u) {
  2088. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(17, this->car_min_width(), target);
  2089. }
  2090. // required float car_max_width = 18;
  2091. if (cached_has_bits & 0x00010000u) {
  2092. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(18, this->car_max_width(), target);
  2093. }
  2094. // required float car_min_wheelbase = 19;
  2095. if (cached_has_bits & 0x00020000u) {
  2096. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(19, this->car_min_wheelbase(), target);
  2097. }
  2098. // required float car_max_wheelbase = 20;
  2099. if (cached_has_bits & 0x00040000u) {
  2100. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(20, this->car_max_wheelbase(), target);
  2101. }
  2102. // required float turnplate_angle_limit_anti_clockwise = 21;
  2103. if (cached_has_bits & 0x00080000u) {
  2104. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(21, this->turnplate_angle_limit_anti_clockwise(), target);
  2105. }
  2106. // required float turnplate_angle_limit_clockwise = 22;
  2107. if (cached_has_bits & 0x00100000u) {
  2108. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(22, this->turnplate_angle_limit_clockwise(), target);
  2109. }
  2110. if (_internal_metadata_.have_unknown_fields()) {
  2111. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2112. _internal_metadata_.unknown_fields(), target);
  2113. }
  2114. // @@protoc_insertion_point(serialize_to_array_end:wj.Region)
  2115. return target;
  2116. }
  2117. size_t Region::RequiredFieldsByteSizeFallback() const {
  2118. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:wj.Region)
  2119. size_t total_size = 0;
  2120. if (has_minx()) {
  2121. // required float minx = 1;
  2122. total_size += 1 + 4;
  2123. }
  2124. if (has_maxx()) {
  2125. // required float maxx = 2;
  2126. total_size += 1 + 4;
  2127. }
  2128. if (has_miny()) {
  2129. // required float miny = 3;
  2130. total_size += 1 + 4;
  2131. }
  2132. if (has_maxy()) {
  2133. // required float maxy = 4;
  2134. total_size += 1 + 4;
  2135. }
  2136. if (has_minz()) {
  2137. // required float minz = 5;
  2138. total_size += 1 + 4;
  2139. }
  2140. if (has_maxz()) {
  2141. // required float maxz = 6;
  2142. total_size += 1 + 4;
  2143. }
  2144. if (has_region_id()) {
  2145. // required int32 region_id = 7;
  2146. total_size += 1 +
  2147. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2148. this->region_id());
  2149. }
  2150. if (has_turnplate_cx()) {
  2151. // required float turnplate_cx = 9;
  2152. total_size += 1 + 4;
  2153. }
  2154. if (has_turnplate_cy()) {
  2155. // required float turnplate_cy = 10;
  2156. total_size += 1 + 4;
  2157. }
  2158. if (has_border_minx()) {
  2159. // required float border_minx = 11;
  2160. total_size += 1 + 4;
  2161. }
  2162. if (has_border_maxx()) {
  2163. // required float border_maxx = 12;
  2164. total_size += 1 + 4;
  2165. }
  2166. if (has_plc_offsetx()) {
  2167. // required float plc_offsetx = 13;
  2168. total_size += 1 + 4;
  2169. }
  2170. if (has_plc_offsety()) {
  2171. // required float plc_offsety = 14;
  2172. total_size += 1 + 4;
  2173. }
  2174. if (has_plc_offset_degree()) {
  2175. // required float plc_offset_degree = 15;
  2176. total_size += 1 + 4;
  2177. }
  2178. if (has_plc_border_miny()) {
  2179. // required float plc_border_miny = 16;
  2180. total_size += 2 + 4;
  2181. }
  2182. if (has_car_min_width()) {
  2183. // required float car_min_width = 17;
  2184. total_size += 2 + 4;
  2185. }
  2186. if (has_car_max_width()) {
  2187. // required float car_max_width = 18;
  2188. total_size += 2 + 4;
  2189. }
  2190. if (has_car_min_wheelbase()) {
  2191. // required float car_min_wheelbase = 19;
  2192. total_size += 2 + 4;
  2193. }
  2194. if (has_car_max_wheelbase()) {
  2195. // required float car_max_wheelbase = 20;
  2196. total_size += 2 + 4;
  2197. }
  2198. if (has_turnplate_angle_limit_anti_clockwise()) {
  2199. // required float turnplate_angle_limit_anti_clockwise = 21;
  2200. total_size += 2 + 4;
  2201. }
  2202. if (has_turnplate_angle_limit_clockwise()) {
  2203. // required float turnplate_angle_limit_clockwise = 22;
  2204. total_size += 2 + 4;
  2205. }
  2206. return total_size;
  2207. }
  2208. size_t Region::ByteSizeLong() const {
  2209. // @@protoc_insertion_point(message_byte_size_start:wj.Region)
  2210. size_t total_size = 0;
  2211. if (_internal_metadata_.have_unknown_fields()) {
  2212. total_size +=
  2213. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2214. _internal_metadata_.unknown_fields());
  2215. }
  2216. if (((_has_bits_[0] & 0x001fffff) ^ 0x001fffff) == 0) { // All required fields are present.
  2217. // required float minx = 1;
  2218. total_size += 1 + 4;
  2219. // required float maxx = 2;
  2220. total_size += 1 + 4;
  2221. // required float miny = 3;
  2222. total_size += 1 + 4;
  2223. // required float maxy = 4;
  2224. total_size += 1 + 4;
  2225. // required float minz = 5;
  2226. total_size += 1 + 4;
  2227. // required float maxz = 6;
  2228. total_size += 1 + 4;
  2229. // required int32 region_id = 7;
  2230. total_size += 1 +
  2231. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2232. this->region_id());
  2233. // required float turnplate_cx = 9;
  2234. total_size += 1 + 4;
  2235. // required float turnplate_cy = 10;
  2236. total_size += 1 + 4;
  2237. // required float border_minx = 11;
  2238. total_size += 1 + 4;
  2239. // required float border_maxx = 12;
  2240. total_size += 1 + 4;
  2241. // required float plc_offsetx = 13;
  2242. total_size += 1 + 4;
  2243. // required float plc_offsety = 14;
  2244. total_size += 1 + 4;
  2245. // required float plc_offset_degree = 15;
  2246. total_size += 1 + 4;
  2247. // required float plc_border_miny = 16;
  2248. total_size += 2 + 4;
  2249. // required float car_min_width = 17;
  2250. total_size += 2 + 4;
  2251. // required float car_max_width = 18;
  2252. total_size += 2 + 4;
  2253. // required float car_min_wheelbase = 19;
  2254. total_size += 2 + 4;
  2255. // required float car_max_wheelbase = 20;
  2256. total_size += 2 + 4;
  2257. // required float turnplate_angle_limit_anti_clockwise = 21;
  2258. total_size += 2 + 4;
  2259. // required float turnplate_angle_limit_clockwise = 22;
  2260. total_size += 2 + 4;
  2261. } else {
  2262. total_size += RequiredFieldsByteSizeFallback();
  2263. }
  2264. // repeated .wj.lidarExtrinsic lidar_exts = 8;
  2265. {
  2266. unsigned int count = static_cast<unsigned int>(this->lidar_exts_size());
  2267. total_size += 1UL * count;
  2268. for (unsigned int i = 0; i < count; i++) {
  2269. total_size +=
  2270. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2271. this->lidar_exts(static_cast<int>(i)));
  2272. }
  2273. }
  2274. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2275. SetCachedSize(cached_size);
  2276. return total_size;
  2277. }
  2278. void Region::MergeFrom(const ::google::protobuf::Message& from) {
  2279. // @@protoc_insertion_point(generalized_merge_from_start:wj.Region)
  2280. GOOGLE_DCHECK_NE(&from, this);
  2281. const Region* source =
  2282. ::google::protobuf::internal::DynamicCastToGenerated<const Region>(
  2283. &from);
  2284. if (source == NULL) {
  2285. // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.Region)
  2286. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2287. } else {
  2288. // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.Region)
  2289. MergeFrom(*source);
  2290. }
  2291. }
  2292. void Region::MergeFrom(const Region& from) {
  2293. // @@protoc_insertion_point(class_specific_merge_from_start:wj.Region)
  2294. GOOGLE_DCHECK_NE(&from, this);
  2295. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2296. ::google::protobuf::uint32 cached_has_bits = 0;
  2297. (void) cached_has_bits;
  2298. lidar_exts_.MergeFrom(from.lidar_exts_);
  2299. cached_has_bits = from._has_bits_[0];
  2300. if (cached_has_bits & 255u) {
  2301. if (cached_has_bits & 0x00000001u) {
  2302. minx_ = from.minx_;
  2303. }
  2304. if (cached_has_bits & 0x00000002u) {
  2305. maxx_ = from.maxx_;
  2306. }
  2307. if (cached_has_bits & 0x00000004u) {
  2308. miny_ = from.miny_;
  2309. }
  2310. if (cached_has_bits & 0x00000008u) {
  2311. maxy_ = from.maxy_;
  2312. }
  2313. if (cached_has_bits & 0x00000010u) {
  2314. minz_ = from.minz_;
  2315. }
  2316. if (cached_has_bits & 0x00000020u) {
  2317. maxz_ = from.maxz_;
  2318. }
  2319. if (cached_has_bits & 0x00000040u) {
  2320. region_id_ = from.region_id_;
  2321. }
  2322. if (cached_has_bits & 0x00000080u) {
  2323. turnplate_cx_ = from.turnplate_cx_;
  2324. }
  2325. _has_bits_[0] |= cached_has_bits;
  2326. }
  2327. if (cached_has_bits & 65280u) {
  2328. if (cached_has_bits & 0x00000100u) {
  2329. turnplate_cy_ = from.turnplate_cy_;
  2330. }
  2331. if (cached_has_bits & 0x00000200u) {
  2332. border_minx_ = from.border_minx_;
  2333. }
  2334. if (cached_has_bits & 0x00000400u) {
  2335. border_maxx_ = from.border_maxx_;
  2336. }
  2337. if (cached_has_bits & 0x00000800u) {
  2338. plc_offsetx_ = from.plc_offsetx_;
  2339. }
  2340. if (cached_has_bits & 0x00001000u) {
  2341. plc_offsety_ = from.plc_offsety_;
  2342. }
  2343. if (cached_has_bits & 0x00002000u) {
  2344. plc_offset_degree_ = from.plc_offset_degree_;
  2345. }
  2346. if (cached_has_bits & 0x00004000u) {
  2347. plc_border_miny_ = from.plc_border_miny_;
  2348. }
  2349. if (cached_has_bits & 0x00008000u) {
  2350. car_min_width_ = from.car_min_width_;
  2351. }
  2352. _has_bits_[0] |= cached_has_bits;
  2353. }
  2354. if (cached_has_bits & 2031616u) {
  2355. if (cached_has_bits & 0x00010000u) {
  2356. car_max_width_ = from.car_max_width_;
  2357. }
  2358. if (cached_has_bits & 0x00020000u) {
  2359. car_min_wheelbase_ = from.car_min_wheelbase_;
  2360. }
  2361. if (cached_has_bits & 0x00040000u) {
  2362. car_max_wheelbase_ = from.car_max_wheelbase_;
  2363. }
  2364. if (cached_has_bits & 0x00080000u) {
  2365. turnplate_angle_limit_anti_clockwise_ = from.turnplate_angle_limit_anti_clockwise_;
  2366. }
  2367. if (cached_has_bits & 0x00100000u) {
  2368. turnplate_angle_limit_clockwise_ = from.turnplate_angle_limit_clockwise_;
  2369. }
  2370. _has_bits_[0] |= cached_has_bits;
  2371. }
  2372. }
  2373. void Region::CopyFrom(const ::google::protobuf::Message& from) {
  2374. // @@protoc_insertion_point(generalized_copy_from_start:wj.Region)
  2375. if (&from == this) return;
  2376. Clear();
  2377. MergeFrom(from);
  2378. }
  2379. void Region::CopyFrom(const Region& from) {
  2380. // @@protoc_insertion_point(class_specific_copy_from_start:wj.Region)
  2381. if (&from == this) return;
  2382. Clear();
  2383. MergeFrom(from);
  2384. }
  2385. bool Region::IsInitialized() const {
  2386. if ((_has_bits_[0] & 0x001fffff) != 0x001fffff) return false;
  2387. if (!::google::protobuf::internal::AllAreInitialized(this->lidar_exts())) return false;
  2388. return true;
  2389. }
  2390. void Region::Swap(Region* other) {
  2391. if (other == this) return;
  2392. InternalSwap(other);
  2393. }
  2394. void Region::InternalSwap(Region* other) {
  2395. using std::swap;
  2396. CastToBase(&lidar_exts_)->InternalSwap(CastToBase(&other->lidar_exts_));
  2397. swap(minx_, other->minx_);
  2398. swap(maxx_, other->maxx_);
  2399. swap(miny_, other->miny_);
  2400. swap(maxy_, other->maxy_);
  2401. swap(minz_, other->minz_);
  2402. swap(maxz_, other->maxz_);
  2403. swap(region_id_, other->region_id_);
  2404. swap(turnplate_cx_, other->turnplate_cx_);
  2405. swap(turnplate_cy_, other->turnplate_cy_);
  2406. swap(border_minx_, other->border_minx_);
  2407. swap(border_maxx_, other->border_maxx_);
  2408. swap(plc_offsetx_, other->plc_offsetx_);
  2409. swap(plc_offsety_, other->plc_offsety_);
  2410. swap(plc_offset_degree_, other->plc_offset_degree_);
  2411. swap(plc_border_miny_, other->plc_border_miny_);
  2412. swap(car_min_width_, other->car_min_width_);
  2413. swap(car_max_width_, other->car_max_width_);
  2414. swap(car_min_wheelbase_, other->car_min_wheelbase_);
  2415. swap(car_max_wheelbase_, other->car_max_wheelbase_);
  2416. swap(turnplate_angle_limit_anti_clockwise_, other->turnplate_angle_limit_anti_clockwise_);
  2417. swap(turnplate_angle_limit_clockwise_, other->turnplate_angle_limit_clockwise_);
  2418. swap(_has_bits_[0], other->_has_bits_[0]);
  2419. _internal_metadata_.Swap(&other->_internal_metadata_);
  2420. }
  2421. ::google::protobuf::Metadata Region::GetMetadata() const {
  2422. protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  2423. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
  2424. }
  2425. // ===================================================================
  2426. void wjLidarParams::InitAsDefaultInstance() {
  2427. ::wj::_wjLidarParams_default_instance_._instance.get_mutable()->net_config_ = const_cast< ::wj::netConfig*>(
  2428. ::wj::netConfig::internal_default_instance());
  2429. ::wj::_wjLidarParams_default_instance_._instance.get_mutable()->transform_ = const_cast< ::wj::Transform2d*>(
  2430. ::wj::Transform2d::internal_default_instance());
  2431. ::wj::_wjLidarParams_default_instance_._instance.get_mutable()->scan_limit_ = const_cast< ::wj::scanLimit*>(
  2432. ::wj::scanLimit::internal_default_instance());
  2433. }
  2434. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  2435. const int wjLidarParams::kAngleMinFieldNumber;
  2436. const int wjLidarParams::kAngleMaxFieldNumber;
  2437. const int wjLidarParams::kAngleIncrementFieldNumber;
  2438. const int wjLidarParams::kTimeIncrementFieldNumber;
  2439. const int wjLidarParams::kRangeMinFieldNumber;
  2440. const int wjLidarParams::kRangeMaxFieldNumber;
  2441. const int wjLidarParams::kNetConfigFieldNumber;
  2442. const int wjLidarParams::kTransformFieldNumber;
  2443. const int wjLidarParams::kScanLimitFieldNumber;
  2444. const int wjLidarParams::kLidarIdFieldNumber;
  2445. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  2446. wjLidarParams::wjLidarParams()
  2447. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  2448. ::google::protobuf::internal::InitSCC(
  2449. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjLidarParams.base);
  2450. SharedCtor();
  2451. // @@protoc_insertion_point(constructor:wj.wjLidarParams)
  2452. }
  2453. wjLidarParams::wjLidarParams(const wjLidarParams& from)
  2454. : ::google::protobuf::Message(),
  2455. _internal_metadata_(NULL),
  2456. _has_bits_(from._has_bits_) {
  2457. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2458. if (from.has_net_config()) {
  2459. net_config_ = new ::wj::netConfig(*from.net_config_);
  2460. } else {
  2461. net_config_ = NULL;
  2462. }
  2463. if (from.has_transform()) {
  2464. transform_ = new ::wj::Transform2d(*from.transform_);
  2465. } else {
  2466. transform_ = NULL;
  2467. }
  2468. if (from.has_scan_limit()) {
  2469. scan_limit_ = new ::wj::scanLimit(*from.scan_limit_);
  2470. } else {
  2471. scan_limit_ = NULL;
  2472. }
  2473. ::memcpy(&range_min_, &from.range_min_,
  2474. static_cast<size_t>(reinterpret_cast<char*>(&time_increment_) -
  2475. reinterpret_cast<char*>(&range_min_)) + sizeof(time_increment_));
  2476. // @@protoc_insertion_point(copy_constructor:wj.wjLidarParams)
  2477. }
  2478. void wjLidarParams::SharedCtor() {
  2479. ::memset(&net_config_, 0, static_cast<size_t>(
  2480. reinterpret_cast<char*>(&lidar_id_) -
  2481. reinterpret_cast<char*>(&net_config_)) + sizeof(lidar_id_));
  2482. range_max_ = 30;
  2483. angle_min_ = -2.3561945f;
  2484. angle_max_ = 2.3561945f;
  2485. angle_increment_ = 0.00582f;
  2486. time_increment_ = 6.2e-05f;
  2487. }
  2488. wjLidarParams::~wjLidarParams() {
  2489. // @@protoc_insertion_point(destructor:wj.wjLidarParams)
  2490. SharedDtor();
  2491. }
  2492. void wjLidarParams::SharedDtor() {
  2493. if (this != internal_default_instance()) delete net_config_;
  2494. if (this != internal_default_instance()) delete transform_;
  2495. if (this != internal_default_instance()) delete scan_limit_;
  2496. }
  2497. void wjLidarParams::SetCachedSize(int size) const {
  2498. _cached_size_.Set(size);
  2499. }
  2500. const ::google::protobuf::Descriptor* wjLidarParams::descriptor() {
  2501. ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  2502. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  2503. }
  2504. const wjLidarParams& wjLidarParams::default_instance() {
  2505. ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjLidarParams.base);
  2506. return *internal_default_instance();
  2507. }
  2508. void wjLidarParams::Clear() {
  2509. // @@protoc_insertion_point(message_clear_start:wj.wjLidarParams)
  2510. ::google::protobuf::uint32 cached_has_bits = 0;
  2511. // Prevent compiler warnings about cached_has_bits being unused
  2512. (void) cached_has_bits;
  2513. cached_has_bits = _has_bits_[0];
  2514. if (cached_has_bits & 7u) {
  2515. if (cached_has_bits & 0x00000001u) {
  2516. GOOGLE_DCHECK(net_config_ != NULL);
  2517. net_config_->Clear();
  2518. }
  2519. if (cached_has_bits & 0x00000002u) {
  2520. GOOGLE_DCHECK(transform_ != NULL);
  2521. transform_->Clear();
  2522. }
  2523. if (cached_has_bits & 0x00000004u) {
  2524. GOOGLE_DCHECK(scan_limit_ != NULL);
  2525. scan_limit_->Clear();
  2526. }
  2527. }
  2528. if (cached_has_bits & 248u) {
  2529. ::memset(&range_min_, 0, static_cast<size_t>(
  2530. reinterpret_cast<char*>(&lidar_id_) -
  2531. reinterpret_cast<char*>(&range_min_)) + sizeof(lidar_id_));
  2532. range_max_ = 30;
  2533. angle_min_ = -2.3561945f;
  2534. angle_max_ = 2.3561945f;
  2535. }
  2536. if (cached_has_bits & 768u) {
  2537. angle_increment_ = 0.00582f;
  2538. time_increment_ = 6.2e-05f;
  2539. }
  2540. _has_bits_.Clear();
  2541. _internal_metadata_.Clear();
  2542. }
  2543. bool wjLidarParams::MergePartialFromCodedStream(
  2544. ::google::protobuf::io::CodedInputStream* input) {
  2545. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  2546. ::google::protobuf::uint32 tag;
  2547. // @@protoc_insertion_point(parse_start:wj.wjLidarParams)
  2548. for (;;) {
  2549. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  2550. tag = p.first;
  2551. if (!p.second) goto handle_unusual;
  2552. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  2553. // optional float angle_min = 1 [default = -2.3561945];
  2554. case 1: {
  2555. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2556. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  2557. set_has_angle_min();
  2558. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2559. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2560. input, &angle_min_)));
  2561. } else {
  2562. goto handle_unusual;
  2563. }
  2564. break;
  2565. }
  2566. // optional float angle_max = 2 [default = 2.3561945];
  2567. case 2: {
  2568. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2569. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  2570. set_has_angle_max();
  2571. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2572. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2573. input, &angle_max_)));
  2574. } else {
  2575. goto handle_unusual;
  2576. }
  2577. break;
  2578. }
  2579. // optional float angle_increment = 3 [default = 0.00582];
  2580. case 3: {
  2581. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2582. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  2583. set_has_angle_increment();
  2584. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2585. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2586. input, &angle_increment_)));
  2587. } else {
  2588. goto handle_unusual;
  2589. }
  2590. break;
  2591. }
  2592. // optional float time_increment = 4 [default = 6.2e-05];
  2593. case 4: {
  2594. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2595. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  2596. set_has_time_increment();
  2597. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2598. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  2599. input, &time_increment_)));
  2600. } else {
  2601. goto handle_unusual;
  2602. }
  2603. break;
  2604. }
  2605. // optional int32 range_min = 5 [default = 0];
  2606. case 5: {
  2607. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2608. static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
  2609. set_has_range_min();
  2610. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2611. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2612. input, &range_min_)));
  2613. } else {
  2614. goto handle_unusual;
  2615. }
  2616. break;
  2617. }
  2618. // optional int32 range_max = 6 [default = 30];
  2619. case 6: {
  2620. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2621. static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
  2622. set_has_range_max();
  2623. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2624. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2625. input, &range_max_)));
  2626. } else {
  2627. goto handle_unusual;
  2628. }
  2629. break;
  2630. }
  2631. // required .wj.netConfig net_config = 7;
  2632. case 7: {
  2633. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2634. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  2635. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2636. input, mutable_net_config()));
  2637. } else {
  2638. goto handle_unusual;
  2639. }
  2640. break;
  2641. }
  2642. // required .wj.Transform2d transform = 8;
  2643. case 8: {
  2644. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2645. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  2646. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2647. input, mutable_transform()));
  2648. } else {
  2649. goto handle_unusual;
  2650. }
  2651. break;
  2652. }
  2653. // required .wj.scanLimit scan_limit = 9;
  2654. case 9: {
  2655. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2656. static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
  2657. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  2658. input, mutable_scan_limit()));
  2659. } else {
  2660. goto handle_unusual;
  2661. }
  2662. break;
  2663. }
  2664. // required int32 lidar_id = 10 [default = 0];
  2665. case 10: {
  2666. if (static_cast< ::google::protobuf::uint8>(tag) ==
  2667. static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
  2668. set_has_lidar_id();
  2669. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  2670. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  2671. input, &lidar_id_)));
  2672. } else {
  2673. goto handle_unusual;
  2674. }
  2675. break;
  2676. }
  2677. default: {
  2678. handle_unusual:
  2679. if (tag == 0) {
  2680. goto success;
  2681. }
  2682. DO_(::google::protobuf::internal::WireFormat::SkipField(
  2683. input, tag, _internal_metadata_.mutable_unknown_fields()));
  2684. break;
  2685. }
  2686. }
  2687. }
  2688. success:
  2689. // @@protoc_insertion_point(parse_success:wj.wjLidarParams)
  2690. return true;
  2691. failure:
  2692. // @@protoc_insertion_point(parse_failure:wj.wjLidarParams)
  2693. return false;
  2694. #undef DO_
  2695. }
  2696. void wjLidarParams::SerializeWithCachedSizes(
  2697. ::google::protobuf::io::CodedOutputStream* output) const {
  2698. // @@protoc_insertion_point(serialize_start:wj.wjLidarParams)
  2699. ::google::protobuf::uint32 cached_has_bits = 0;
  2700. (void) cached_has_bits;
  2701. cached_has_bits = _has_bits_[0];
  2702. // optional float angle_min = 1 [default = -2.3561945];
  2703. if (cached_has_bits & 0x00000040u) {
  2704. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->angle_min(), output);
  2705. }
  2706. // optional float angle_max = 2 [default = 2.3561945];
  2707. if (cached_has_bits & 0x00000080u) {
  2708. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->angle_max(), output);
  2709. }
  2710. // optional float angle_increment = 3 [default = 0.00582];
  2711. if (cached_has_bits & 0x00000100u) {
  2712. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->angle_increment(), output);
  2713. }
  2714. // optional float time_increment = 4 [default = 6.2e-05];
  2715. if (cached_has_bits & 0x00000200u) {
  2716. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->time_increment(), output);
  2717. }
  2718. // optional int32 range_min = 5 [default = 0];
  2719. if (cached_has_bits & 0x00000008u) {
  2720. ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->range_min(), output);
  2721. }
  2722. // optional int32 range_max = 6 [default = 30];
  2723. if (cached_has_bits & 0x00000020u) {
  2724. ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->range_max(), output);
  2725. }
  2726. // required .wj.netConfig net_config = 7;
  2727. if (cached_has_bits & 0x00000001u) {
  2728. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2729. 7, this->_internal_net_config(), output);
  2730. }
  2731. // required .wj.Transform2d transform = 8;
  2732. if (cached_has_bits & 0x00000002u) {
  2733. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2734. 8, this->_internal_transform(), output);
  2735. }
  2736. // required .wj.scanLimit scan_limit = 9;
  2737. if (cached_has_bits & 0x00000004u) {
  2738. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  2739. 9, this->_internal_scan_limit(), output);
  2740. }
  2741. // required int32 lidar_id = 10 [default = 0];
  2742. if (cached_has_bits & 0x00000010u) {
  2743. ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->lidar_id(), output);
  2744. }
  2745. if (_internal_metadata_.have_unknown_fields()) {
  2746. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  2747. _internal_metadata_.unknown_fields(), output);
  2748. }
  2749. // @@protoc_insertion_point(serialize_end:wj.wjLidarParams)
  2750. }
  2751. ::google::protobuf::uint8* wjLidarParams::InternalSerializeWithCachedSizesToArray(
  2752. bool deterministic, ::google::protobuf::uint8* target) const {
  2753. (void)deterministic; // Unused
  2754. // @@protoc_insertion_point(serialize_to_array_start:wj.wjLidarParams)
  2755. ::google::protobuf::uint32 cached_has_bits = 0;
  2756. (void) cached_has_bits;
  2757. cached_has_bits = _has_bits_[0];
  2758. // optional float angle_min = 1 [default = -2.3561945];
  2759. if (cached_has_bits & 0x00000040u) {
  2760. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->angle_min(), target);
  2761. }
  2762. // optional float angle_max = 2 [default = 2.3561945];
  2763. if (cached_has_bits & 0x00000080u) {
  2764. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->angle_max(), target);
  2765. }
  2766. // optional float angle_increment = 3 [default = 0.00582];
  2767. if (cached_has_bits & 0x00000100u) {
  2768. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->angle_increment(), target);
  2769. }
  2770. // optional float time_increment = 4 [default = 6.2e-05];
  2771. if (cached_has_bits & 0x00000200u) {
  2772. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->time_increment(), target);
  2773. }
  2774. // optional int32 range_min = 5 [default = 0];
  2775. if (cached_has_bits & 0x00000008u) {
  2776. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->range_min(), target);
  2777. }
  2778. // optional int32 range_max = 6 [default = 30];
  2779. if (cached_has_bits & 0x00000020u) {
  2780. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->range_max(), target);
  2781. }
  2782. // required .wj.netConfig net_config = 7;
  2783. if (cached_has_bits & 0x00000001u) {
  2784. target = ::google::protobuf::internal::WireFormatLite::
  2785. InternalWriteMessageToArray(
  2786. 7, this->_internal_net_config(), deterministic, target);
  2787. }
  2788. // required .wj.Transform2d transform = 8;
  2789. if (cached_has_bits & 0x00000002u) {
  2790. target = ::google::protobuf::internal::WireFormatLite::
  2791. InternalWriteMessageToArray(
  2792. 8, this->_internal_transform(), deterministic, target);
  2793. }
  2794. // required .wj.scanLimit scan_limit = 9;
  2795. if (cached_has_bits & 0x00000004u) {
  2796. target = ::google::protobuf::internal::WireFormatLite::
  2797. InternalWriteMessageToArray(
  2798. 9, this->_internal_scan_limit(), deterministic, target);
  2799. }
  2800. // required int32 lidar_id = 10 [default = 0];
  2801. if (cached_has_bits & 0x00000010u) {
  2802. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->lidar_id(), target);
  2803. }
  2804. if (_internal_metadata_.have_unknown_fields()) {
  2805. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  2806. _internal_metadata_.unknown_fields(), target);
  2807. }
  2808. // @@protoc_insertion_point(serialize_to_array_end:wj.wjLidarParams)
  2809. return target;
  2810. }
  2811. size_t wjLidarParams::RequiredFieldsByteSizeFallback() const {
  2812. // @@protoc_insertion_point(required_fields_byte_size_fallback_start:wj.wjLidarParams)
  2813. size_t total_size = 0;
  2814. if (has_net_config()) {
  2815. // required .wj.netConfig net_config = 7;
  2816. total_size += 1 +
  2817. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2818. *net_config_);
  2819. }
  2820. if (has_transform()) {
  2821. // required .wj.Transform2d transform = 8;
  2822. total_size += 1 +
  2823. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2824. *transform_);
  2825. }
  2826. if (has_scan_limit()) {
  2827. // required .wj.scanLimit scan_limit = 9;
  2828. total_size += 1 +
  2829. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2830. *scan_limit_);
  2831. }
  2832. if (has_lidar_id()) {
  2833. // required int32 lidar_id = 10 [default = 0];
  2834. total_size += 1 +
  2835. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2836. this->lidar_id());
  2837. }
  2838. return total_size;
  2839. }
  2840. size_t wjLidarParams::ByteSizeLong() const {
  2841. // @@protoc_insertion_point(message_byte_size_start:wj.wjLidarParams)
  2842. size_t total_size = 0;
  2843. if (_internal_metadata_.have_unknown_fields()) {
  2844. total_size +=
  2845. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  2846. _internal_metadata_.unknown_fields());
  2847. }
  2848. if (((_has_bits_[0] & 0x00000017) ^ 0x00000017) == 0) { // All required fields are present.
  2849. // required .wj.netConfig net_config = 7;
  2850. total_size += 1 +
  2851. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2852. *net_config_);
  2853. // required .wj.Transform2d transform = 8;
  2854. total_size += 1 +
  2855. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2856. *transform_);
  2857. // required .wj.scanLimit scan_limit = 9;
  2858. total_size += 1 +
  2859. ::google::protobuf::internal::WireFormatLite::MessageSize(
  2860. *scan_limit_);
  2861. // required int32 lidar_id = 10 [default = 0];
  2862. total_size += 1 +
  2863. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2864. this->lidar_id());
  2865. } else {
  2866. total_size += RequiredFieldsByteSizeFallback();
  2867. }
  2868. // optional int32 range_min = 5 [default = 0];
  2869. if (has_range_min()) {
  2870. total_size += 1 +
  2871. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2872. this->range_min());
  2873. }
  2874. if (_has_bits_[0 / 32] & 224u) {
  2875. // optional int32 range_max = 6 [default = 30];
  2876. if (has_range_max()) {
  2877. total_size += 1 +
  2878. ::google::protobuf::internal::WireFormatLite::Int32Size(
  2879. this->range_max());
  2880. }
  2881. // optional float angle_min = 1 [default = -2.3561945];
  2882. if (has_angle_min()) {
  2883. total_size += 1 + 4;
  2884. }
  2885. // optional float angle_max = 2 [default = 2.3561945];
  2886. if (has_angle_max()) {
  2887. total_size += 1 + 4;
  2888. }
  2889. }
  2890. if (_has_bits_[8 / 32] & 768u) {
  2891. // optional float angle_increment = 3 [default = 0.00582];
  2892. if (has_angle_increment()) {
  2893. total_size += 1 + 4;
  2894. }
  2895. // optional float time_increment = 4 [default = 6.2e-05];
  2896. if (has_time_increment()) {
  2897. total_size += 1 + 4;
  2898. }
  2899. }
  2900. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  2901. SetCachedSize(cached_size);
  2902. return total_size;
  2903. }
  2904. void wjLidarParams::MergeFrom(const ::google::protobuf::Message& from) {
  2905. // @@protoc_insertion_point(generalized_merge_from_start:wj.wjLidarParams)
  2906. GOOGLE_DCHECK_NE(&from, this);
  2907. const wjLidarParams* source =
  2908. ::google::protobuf::internal::DynamicCastToGenerated<const wjLidarParams>(
  2909. &from);
  2910. if (source == NULL) {
  2911. // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.wjLidarParams)
  2912. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2913. } else {
  2914. // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.wjLidarParams)
  2915. MergeFrom(*source);
  2916. }
  2917. }
  2918. void wjLidarParams::MergeFrom(const wjLidarParams& from) {
  2919. // @@protoc_insertion_point(class_specific_merge_from_start:wj.wjLidarParams)
  2920. GOOGLE_DCHECK_NE(&from, this);
  2921. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2922. ::google::protobuf::uint32 cached_has_bits = 0;
  2923. (void) cached_has_bits;
  2924. cached_has_bits = from._has_bits_[0];
  2925. if (cached_has_bits & 255u) {
  2926. if (cached_has_bits & 0x00000001u) {
  2927. mutable_net_config()->::wj::netConfig::MergeFrom(from.net_config());
  2928. }
  2929. if (cached_has_bits & 0x00000002u) {
  2930. mutable_transform()->::wj::Transform2d::MergeFrom(from.transform());
  2931. }
  2932. if (cached_has_bits & 0x00000004u) {
  2933. mutable_scan_limit()->::wj::scanLimit::MergeFrom(from.scan_limit());
  2934. }
  2935. if (cached_has_bits & 0x00000008u) {
  2936. range_min_ = from.range_min_;
  2937. }
  2938. if (cached_has_bits & 0x00000010u) {
  2939. lidar_id_ = from.lidar_id_;
  2940. }
  2941. if (cached_has_bits & 0x00000020u) {
  2942. range_max_ = from.range_max_;
  2943. }
  2944. if (cached_has_bits & 0x00000040u) {
  2945. angle_min_ = from.angle_min_;
  2946. }
  2947. if (cached_has_bits & 0x00000080u) {
  2948. angle_max_ = from.angle_max_;
  2949. }
  2950. _has_bits_[0] |= cached_has_bits;
  2951. }
  2952. if (cached_has_bits & 768u) {
  2953. if (cached_has_bits & 0x00000100u) {
  2954. angle_increment_ = from.angle_increment_;
  2955. }
  2956. if (cached_has_bits & 0x00000200u) {
  2957. time_increment_ = from.time_increment_;
  2958. }
  2959. _has_bits_[0] |= cached_has_bits;
  2960. }
  2961. }
  2962. void wjLidarParams::CopyFrom(const ::google::protobuf::Message& from) {
  2963. // @@protoc_insertion_point(generalized_copy_from_start:wj.wjLidarParams)
  2964. if (&from == this) return;
  2965. Clear();
  2966. MergeFrom(from);
  2967. }
  2968. void wjLidarParams::CopyFrom(const wjLidarParams& from) {
  2969. // @@protoc_insertion_point(class_specific_copy_from_start:wj.wjLidarParams)
  2970. if (&from == this) return;
  2971. Clear();
  2972. MergeFrom(from);
  2973. }
  2974. bool wjLidarParams::IsInitialized() const {
  2975. if ((_has_bits_[0] & 0x00000017) != 0x00000017) return false;
  2976. return true;
  2977. }
  2978. void wjLidarParams::Swap(wjLidarParams* other) {
  2979. if (other == this) return;
  2980. InternalSwap(other);
  2981. }
  2982. void wjLidarParams::InternalSwap(wjLidarParams* other) {
  2983. using std::swap;
  2984. swap(net_config_, other->net_config_);
  2985. swap(transform_, other->transform_);
  2986. swap(scan_limit_, other->scan_limit_);
  2987. swap(range_min_, other->range_min_);
  2988. swap(lidar_id_, other->lidar_id_);
  2989. swap(range_max_, other->range_max_);
  2990. swap(angle_min_, other->angle_min_);
  2991. swap(angle_max_, other->angle_max_);
  2992. swap(angle_increment_, other->angle_increment_);
  2993. swap(time_increment_, other->time_increment_);
  2994. swap(_has_bits_[0], other->_has_bits_[0]);
  2995. _internal_metadata_.Swap(&other->_internal_metadata_);
  2996. }
  2997. ::google::protobuf::Metadata wjLidarParams::GetMetadata() const {
  2998. protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  2999. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
  3000. }
  3001. // ===================================================================
  3002. void netConfig::InitAsDefaultInstance() {
  3003. }
  3004. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  3005. const int netConfig::kIpAddressFieldNumber;
  3006. const int netConfig::kPortFieldNumber;
  3007. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3008. netConfig::netConfig()
  3009. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3010. ::google::protobuf::internal::InitSCC(
  3011. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_netConfig.base);
  3012. SharedCtor();
  3013. // @@protoc_insertion_point(constructor:wj.netConfig)
  3014. }
  3015. netConfig::netConfig(const netConfig& from)
  3016. : ::google::protobuf::Message(),
  3017. _internal_metadata_(NULL),
  3018. _has_bits_(from._has_bits_) {
  3019. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3020. ip_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3021. if (from.has_ip_address()) {
  3022. ip_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_address_);
  3023. }
  3024. port_ = from.port_;
  3025. // @@protoc_insertion_point(copy_constructor:wj.netConfig)
  3026. }
  3027. void netConfig::SharedCtor() {
  3028. ip_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3029. port_ = 8000;
  3030. }
  3031. netConfig::~netConfig() {
  3032. // @@protoc_insertion_point(destructor:wj.netConfig)
  3033. SharedDtor();
  3034. }
  3035. void netConfig::SharedDtor() {
  3036. ip_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  3037. }
  3038. void netConfig::SetCachedSize(int size) const {
  3039. _cached_size_.Set(size);
  3040. }
  3041. const ::google::protobuf::Descriptor* netConfig::descriptor() {
  3042. ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  3043. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3044. }
  3045. const netConfig& netConfig::default_instance() {
  3046. ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_netConfig.base);
  3047. return *internal_default_instance();
  3048. }
  3049. void netConfig::Clear() {
  3050. // @@protoc_insertion_point(message_clear_start:wj.netConfig)
  3051. ::google::protobuf::uint32 cached_has_bits = 0;
  3052. // Prevent compiler warnings about cached_has_bits being unused
  3053. (void) cached_has_bits;
  3054. cached_has_bits = _has_bits_[0];
  3055. if (cached_has_bits & 3u) {
  3056. if (cached_has_bits & 0x00000001u) {
  3057. ip_address_.ClearNonDefaultToEmptyNoArena();
  3058. }
  3059. port_ = 8000;
  3060. }
  3061. _has_bits_.Clear();
  3062. _internal_metadata_.Clear();
  3063. }
  3064. bool netConfig::MergePartialFromCodedStream(
  3065. ::google::protobuf::io::CodedInputStream* input) {
  3066. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3067. ::google::protobuf::uint32 tag;
  3068. // @@protoc_insertion_point(parse_start:wj.netConfig)
  3069. for (;;) {
  3070. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  3071. tag = p.first;
  3072. if (!p.second) goto handle_unusual;
  3073. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3074. // optional string ip_address = 1 [default = ""];
  3075. case 1: {
  3076. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3077. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  3078. DO_(::google::protobuf::internal::WireFormatLite::ReadString(
  3079. input, this->mutable_ip_address()));
  3080. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3081. this->ip_address().data(), static_cast<int>(this->ip_address().length()),
  3082. ::google::protobuf::internal::WireFormat::PARSE,
  3083. "wj.netConfig.ip_address");
  3084. } else {
  3085. goto handle_unusual;
  3086. }
  3087. break;
  3088. }
  3089. // optional int32 port = 2 [default = 8000];
  3090. case 2: {
  3091. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3092. static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
  3093. set_has_port();
  3094. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3095. ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
  3096. input, &port_)));
  3097. } else {
  3098. goto handle_unusual;
  3099. }
  3100. break;
  3101. }
  3102. default: {
  3103. handle_unusual:
  3104. if (tag == 0) {
  3105. goto success;
  3106. }
  3107. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3108. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3109. break;
  3110. }
  3111. }
  3112. }
  3113. success:
  3114. // @@protoc_insertion_point(parse_success:wj.netConfig)
  3115. return true;
  3116. failure:
  3117. // @@protoc_insertion_point(parse_failure:wj.netConfig)
  3118. return false;
  3119. #undef DO_
  3120. }
  3121. void netConfig::SerializeWithCachedSizes(
  3122. ::google::protobuf::io::CodedOutputStream* output) const {
  3123. // @@protoc_insertion_point(serialize_start:wj.netConfig)
  3124. ::google::protobuf::uint32 cached_has_bits = 0;
  3125. (void) cached_has_bits;
  3126. cached_has_bits = _has_bits_[0];
  3127. // optional string ip_address = 1 [default = ""];
  3128. if (cached_has_bits & 0x00000001u) {
  3129. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3130. this->ip_address().data(), static_cast<int>(this->ip_address().length()),
  3131. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3132. "wj.netConfig.ip_address");
  3133. ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
  3134. 1, this->ip_address(), output);
  3135. }
  3136. // optional int32 port = 2 [default = 8000];
  3137. if (cached_has_bits & 0x00000002u) {
  3138. ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->port(), output);
  3139. }
  3140. if (_internal_metadata_.have_unknown_fields()) {
  3141. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3142. _internal_metadata_.unknown_fields(), output);
  3143. }
  3144. // @@protoc_insertion_point(serialize_end:wj.netConfig)
  3145. }
  3146. ::google::protobuf::uint8* netConfig::InternalSerializeWithCachedSizesToArray(
  3147. bool deterministic, ::google::protobuf::uint8* target) const {
  3148. (void)deterministic; // Unused
  3149. // @@protoc_insertion_point(serialize_to_array_start:wj.netConfig)
  3150. ::google::protobuf::uint32 cached_has_bits = 0;
  3151. (void) cached_has_bits;
  3152. cached_has_bits = _has_bits_[0];
  3153. // optional string ip_address = 1 [default = ""];
  3154. if (cached_has_bits & 0x00000001u) {
  3155. ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
  3156. this->ip_address().data(), static_cast<int>(this->ip_address().length()),
  3157. ::google::protobuf::internal::WireFormat::SERIALIZE,
  3158. "wj.netConfig.ip_address");
  3159. target =
  3160. ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
  3161. 1, this->ip_address(), target);
  3162. }
  3163. // optional int32 port = 2 [default = 8000];
  3164. if (cached_has_bits & 0x00000002u) {
  3165. target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->port(), target);
  3166. }
  3167. if (_internal_metadata_.have_unknown_fields()) {
  3168. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3169. _internal_metadata_.unknown_fields(), target);
  3170. }
  3171. // @@protoc_insertion_point(serialize_to_array_end:wj.netConfig)
  3172. return target;
  3173. }
  3174. size_t netConfig::ByteSizeLong() const {
  3175. // @@protoc_insertion_point(message_byte_size_start:wj.netConfig)
  3176. size_t total_size = 0;
  3177. if (_internal_metadata_.have_unknown_fields()) {
  3178. total_size +=
  3179. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3180. _internal_metadata_.unknown_fields());
  3181. }
  3182. if (_has_bits_[0 / 32] & 3u) {
  3183. // optional string ip_address = 1 [default = ""];
  3184. if (has_ip_address()) {
  3185. total_size += 1 +
  3186. ::google::protobuf::internal::WireFormatLite::StringSize(
  3187. this->ip_address());
  3188. }
  3189. // optional int32 port = 2 [default = 8000];
  3190. if (has_port()) {
  3191. total_size += 1 +
  3192. ::google::protobuf::internal::WireFormatLite::Int32Size(
  3193. this->port());
  3194. }
  3195. }
  3196. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3197. SetCachedSize(cached_size);
  3198. return total_size;
  3199. }
  3200. void netConfig::MergeFrom(const ::google::protobuf::Message& from) {
  3201. // @@protoc_insertion_point(generalized_merge_from_start:wj.netConfig)
  3202. GOOGLE_DCHECK_NE(&from, this);
  3203. const netConfig* source =
  3204. ::google::protobuf::internal::DynamicCastToGenerated<const netConfig>(
  3205. &from);
  3206. if (source == NULL) {
  3207. // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.netConfig)
  3208. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3209. } else {
  3210. // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.netConfig)
  3211. MergeFrom(*source);
  3212. }
  3213. }
  3214. void netConfig::MergeFrom(const netConfig& from) {
  3215. // @@protoc_insertion_point(class_specific_merge_from_start:wj.netConfig)
  3216. GOOGLE_DCHECK_NE(&from, this);
  3217. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3218. ::google::protobuf::uint32 cached_has_bits = 0;
  3219. (void) cached_has_bits;
  3220. cached_has_bits = from._has_bits_[0];
  3221. if (cached_has_bits & 3u) {
  3222. if (cached_has_bits & 0x00000001u) {
  3223. set_has_ip_address();
  3224. ip_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_address_);
  3225. }
  3226. if (cached_has_bits & 0x00000002u) {
  3227. port_ = from.port_;
  3228. }
  3229. _has_bits_[0] |= cached_has_bits;
  3230. }
  3231. }
  3232. void netConfig::CopyFrom(const ::google::protobuf::Message& from) {
  3233. // @@protoc_insertion_point(generalized_copy_from_start:wj.netConfig)
  3234. if (&from == this) return;
  3235. Clear();
  3236. MergeFrom(from);
  3237. }
  3238. void netConfig::CopyFrom(const netConfig& from) {
  3239. // @@protoc_insertion_point(class_specific_copy_from_start:wj.netConfig)
  3240. if (&from == this) return;
  3241. Clear();
  3242. MergeFrom(from);
  3243. }
  3244. bool netConfig::IsInitialized() const {
  3245. return true;
  3246. }
  3247. void netConfig::Swap(netConfig* other) {
  3248. if (other == this) return;
  3249. InternalSwap(other);
  3250. }
  3251. void netConfig::InternalSwap(netConfig* other) {
  3252. using std::swap;
  3253. ip_address_.Swap(&other->ip_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  3254. GetArenaNoVirtual());
  3255. swap(port_, other->port_);
  3256. swap(_has_bits_[0], other->_has_bits_[0]);
  3257. _internal_metadata_.Swap(&other->_internal_metadata_);
  3258. }
  3259. ::google::protobuf::Metadata netConfig::GetMetadata() const {
  3260. protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  3261. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
  3262. }
  3263. // ===================================================================
  3264. void Transform2d::InitAsDefaultInstance() {
  3265. }
  3266. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  3267. const int Transform2d::kM00FieldNumber;
  3268. const int Transform2d::kM01FieldNumber;
  3269. const int Transform2d::kM02FieldNumber;
  3270. const int Transform2d::kM10FieldNumber;
  3271. const int Transform2d::kM11FieldNumber;
  3272. const int Transform2d::kM12FieldNumber;
  3273. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3274. Transform2d::Transform2d()
  3275. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3276. ::google::protobuf::internal::InitSCC(
  3277. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Transform2d.base);
  3278. SharedCtor();
  3279. // @@protoc_insertion_point(constructor:wj.Transform2d)
  3280. }
  3281. Transform2d::Transform2d(const Transform2d& from)
  3282. : ::google::protobuf::Message(),
  3283. _internal_metadata_(NULL),
  3284. _has_bits_(from._has_bits_) {
  3285. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3286. ::memcpy(&m01_, &from.m01_,
  3287. static_cast<size_t>(reinterpret_cast<char*>(&m11_) -
  3288. reinterpret_cast<char*>(&m01_)) + sizeof(m11_));
  3289. // @@protoc_insertion_point(copy_constructor:wj.Transform2d)
  3290. }
  3291. void Transform2d::SharedCtor() {
  3292. ::memset(&m01_, 0, static_cast<size_t>(
  3293. reinterpret_cast<char*>(&m12_) -
  3294. reinterpret_cast<char*>(&m01_)) + sizeof(m12_));
  3295. m00_ = 1;
  3296. m11_ = 1;
  3297. }
  3298. Transform2d::~Transform2d() {
  3299. // @@protoc_insertion_point(destructor:wj.Transform2d)
  3300. SharedDtor();
  3301. }
  3302. void Transform2d::SharedDtor() {
  3303. }
  3304. void Transform2d::SetCachedSize(int size) const {
  3305. _cached_size_.Set(size);
  3306. }
  3307. const ::google::protobuf::Descriptor* Transform2d::descriptor() {
  3308. ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  3309. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3310. }
  3311. const Transform2d& Transform2d::default_instance() {
  3312. ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_Transform2d.base);
  3313. return *internal_default_instance();
  3314. }
  3315. void Transform2d::Clear() {
  3316. // @@protoc_insertion_point(message_clear_start:wj.Transform2d)
  3317. ::google::protobuf::uint32 cached_has_bits = 0;
  3318. // Prevent compiler warnings about cached_has_bits being unused
  3319. (void) cached_has_bits;
  3320. cached_has_bits = _has_bits_[0];
  3321. if (cached_has_bits & 63u) {
  3322. ::memset(&m01_, 0, static_cast<size_t>(
  3323. reinterpret_cast<char*>(&m12_) -
  3324. reinterpret_cast<char*>(&m01_)) + sizeof(m12_));
  3325. m00_ = 1;
  3326. m11_ = 1;
  3327. }
  3328. _has_bits_.Clear();
  3329. _internal_metadata_.Clear();
  3330. }
  3331. bool Transform2d::MergePartialFromCodedStream(
  3332. ::google::protobuf::io::CodedInputStream* input) {
  3333. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3334. ::google::protobuf::uint32 tag;
  3335. // @@protoc_insertion_point(parse_start:wj.Transform2d)
  3336. for (;;) {
  3337. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  3338. tag = p.first;
  3339. if (!p.second) goto handle_unusual;
  3340. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3341. // optional float m00 = 1 [default = 1];
  3342. case 1: {
  3343. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3344. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  3345. set_has_m00();
  3346. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3347. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3348. input, &m00_)));
  3349. } else {
  3350. goto handle_unusual;
  3351. }
  3352. break;
  3353. }
  3354. // optional float m01 = 2 [default = 0];
  3355. case 2: {
  3356. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3357. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  3358. set_has_m01();
  3359. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3360. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3361. input, &m01_)));
  3362. } else {
  3363. goto handle_unusual;
  3364. }
  3365. break;
  3366. }
  3367. // optional float m02 = 3 [default = 0];
  3368. case 3: {
  3369. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3370. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  3371. set_has_m02();
  3372. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3373. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3374. input, &m02_)));
  3375. } else {
  3376. goto handle_unusual;
  3377. }
  3378. break;
  3379. }
  3380. // optional float m10 = 4 [default = 0];
  3381. case 4: {
  3382. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3383. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  3384. set_has_m10();
  3385. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3386. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3387. input, &m10_)));
  3388. } else {
  3389. goto handle_unusual;
  3390. }
  3391. break;
  3392. }
  3393. // optional float m11 = 5 [default = 1];
  3394. case 5: {
  3395. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3396. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  3397. set_has_m11();
  3398. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3399. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3400. input, &m11_)));
  3401. } else {
  3402. goto handle_unusual;
  3403. }
  3404. break;
  3405. }
  3406. // optional float m12 = 6 [default = 0];
  3407. case 6: {
  3408. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3409. static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
  3410. set_has_m12();
  3411. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3412. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3413. input, &m12_)));
  3414. } else {
  3415. goto handle_unusual;
  3416. }
  3417. break;
  3418. }
  3419. default: {
  3420. handle_unusual:
  3421. if (tag == 0) {
  3422. goto success;
  3423. }
  3424. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3425. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3426. break;
  3427. }
  3428. }
  3429. }
  3430. success:
  3431. // @@protoc_insertion_point(parse_success:wj.Transform2d)
  3432. return true;
  3433. failure:
  3434. // @@protoc_insertion_point(parse_failure:wj.Transform2d)
  3435. return false;
  3436. #undef DO_
  3437. }
  3438. void Transform2d::SerializeWithCachedSizes(
  3439. ::google::protobuf::io::CodedOutputStream* output) const {
  3440. // @@protoc_insertion_point(serialize_start:wj.Transform2d)
  3441. ::google::protobuf::uint32 cached_has_bits = 0;
  3442. (void) cached_has_bits;
  3443. cached_has_bits = _has_bits_[0];
  3444. // optional float m00 = 1 [default = 1];
  3445. if (cached_has_bits & 0x00000010u) {
  3446. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->m00(), output);
  3447. }
  3448. // optional float m01 = 2 [default = 0];
  3449. if (cached_has_bits & 0x00000001u) {
  3450. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->m01(), output);
  3451. }
  3452. // optional float m02 = 3 [default = 0];
  3453. if (cached_has_bits & 0x00000002u) {
  3454. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->m02(), output);
  3455. }
  3456. // optional float m10 = 4 [default = 0];
  3457. if (cached_has_bits & 0x00000004u) {
  3458. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->m10(), output);
  3459. }
  3460. // optional float m11 = 5 [default = 1];
  3461. if (cached_has_bits & 0x00000020u) {
  3462. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->m11(), output);
  3463. }
  3464. // optional float m12 = 6 [default = 0];
  3465. if (cached_has_bits & 0x00000008u) {
  3466. ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->m12(), output);
  3467. }
  3468. if (_internal_metadata_.have_unknown_fields()) {
  3469. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3470. _internal_metadata_.unknown_fields(), output);
  3471. }
  3472. // @@protoc_insertion_point(serialize_end:wj.Transform2d)
  3473. }
  3474. ::google::protobuf::uint8* Transform2d::InternalSerializeWithCachedSizesToArray(
  3475. bool deterministic, ::google::protobuf::uint8* target) const {
  3476. (void)deterministic; // Unused
  3477. // @@protoc_insertion_point(serialize_to_array_start:wj.Transform2d)
  3478. ::google::protobuf::uint32 cached_has_bits = 0;
  3479. (void) cached_has_bits;
  3480. cached_has_bits = _has_bits_[0];
  3481. // optional float m00 = 1 [default = 1];
  3482. if (cached_has_bits & 0x00000010u) {
  3483. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->m00(), target);
  3484. }
  3485. // optional float m01 = 2 [default = 0];
  3486. if (cached_has_bits & 0x00000001u) {
  3487. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->m01(), target);
  3488. }
  3489. // optional float m02 = 3 [default = 0];
  3490. if (cached_has_bits & 0x00000002u) {
  3491. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->m02(), target);
  3492. }
  3493. // optional float m10 = 4 [default = 0];
  3494. if (cached_has_bits & 0x00000004u) {
  3495. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->m10(), target);
  3496. }
  3497. // optional float m11 = 5 [default = 1];
  3498. if (cached_has_bits & 0x00000020u) {
  3499. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->m11(), target);
  3500. }
  3501. // optional float m12 = 6 [default = 0];
  3502. if (cached_has_bits & 0x00000008u) {
  3503. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->m12(), target);
  3504. }
  3505. if (_internal_metadata_.have_unknown_fields()) {
  3506. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3507. _internal_metadata_.unknown_fields(), target);
  3508. }
  3509. // @@protoc_insertion_point(serialize_to_array_end:wj.Transform2d)
  3510. return target;
  3511. }
  3512. size_t Transform2d::ByteSizeLong() const {
  3513. // @@protoc_insertion_point(message_byte_size_start:wj.Transform2d)
  3514. size_t total_size = 0;
  3515. if (_internal_metadata_.have_unknown_fields()) {
  3516. total_size +=
  3517. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3518. _internal_metadata_.unknown_fields());
  3519. }
  3520. if (_has_bits_[0 / 32] & 63u) {
  3521. // optional float m01 = 2 [default = 0];
  3522. if (has_m01()) {
  3523. total_size += 1 + 4;
  3524. }
  3525. // optional float m02 = 3 [default = 0];
  3526. if (has_m02()) {
  3527. total_size += 1 + 4;
  3528. }
  3529. // optional float m10 = 4 [default = 0];
  3530. if (has_m10()) {
  3531. total_size += 1 + 4;
  3532. }
  3533. // optional float m12 = 6 [default = 0];
  3534. if (has_m12()) {
  3535. total_size += 1 + 4;
  3536. }
  3537. // optional float m00 = 1 [default = 1];
  3538. if (has_m00()) {
  3539. total_size += 1 + 4;
  3540. }
  3541. // optional float m11 = 5 [default = 1];
  3542. if (has_m11()) {
  3543. total_size += 1 + 4;
  3544. }
  3545. }
  3546. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3547. SetCachedSize(cached_size);
  3548. return total_size;
  3549. }
  3550. void Transform2d::MergeFrom(const ::google::protobuf::Message& from) {
  3551. // @@protoc_insertion_point(generalized_merge_from_start:wj.Transform2d)
  3552. GOOGLE_DCHECK_NE(&from, this);
  3553. const Transform2d* source =
  3554. ::google::protobuf::internal::DynamicCastToGenerated<const Transform2d>(
  3555. &from);
  3556. if (source == NULL) {
  3557. // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.Transform2d)
  3558. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3559. } else {
  3560. // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.Transform2d)
  3561. MergeFrom(*source);
  3562. }
  3563. }
  3564. void Transform2d::MergeFrom(const Transform2d& from) {
  3565. // @@protoc_insertion_point(class_specific_merge_from_start:wj.Transform2d)
  3566. GOOGLE_DCHECK_NE(&from, this);
  3567. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3568. ::google::protobuf::uint32 cached_has_bits = 0;
  3569. (void) cached_has_bits;
  3570. cached_has_bits = from._has_bits_[0];
  3571. if (cached_has_bits & 63u) {
  3572. if (cached_has_bits & 0x00000001u) {
  3573. m01_ = from.m01_;
  3574. }
  3575. if (cached_has_bits & 0x00000002u) {
  3576. m02_ = from.m02_;
  3577. }
  3578. if (cached_has_bits & 0x00000004u) {
  3579. m10_ = from.m10_;
  3580. }
  3581. if (cached_has_bits & 0x00000008u) {
  3582. m12_ = from.m12_;
  3583. }
  3584. if (cached_has_bits & 0x00000010u) {
  3585. m00_ = from.m00_;
  3586. }
  3587. if (cached_has_bits & 0x00000020u) {
  3588. m11_ = from.m11_;
  3589. }
  3590. _has_bits_[0] |= cached_has_bits;
  3591. }
  3592. }
  3593. void Transform2d::CopyFrom(const ::google::protobuf::Message& from) {
  3594. // @@protoc_insertion_point(generalized_copy_from_start:wj.Transform2d)
  3595. if (&from == this) return;
  3596. Clear();
  3597. MergeFrom(from);
  3598. }
  3599. void Transform2d::CopyFrom(const Transform2d& from) {
  3600. // @@protoc_insertion_point(class_specific_copy_from_start:wj.Transform2d)
  3601. if (&from == this) return;
  3602. Clear();
  3603. MergeFrom(from);
  3604. }
  3605. bool Transform2d::IsInitialized() const {
  3606. return true;
  3607. }
  3608. void Transform2d::Swap(Transform2d* other) {
  3609. if (other == this) return;
  3610. InternalSwap(other);
  3611. }
  3612. void Transform2d::InternalSwap(Transform2d* other) {
  3613. using std::swap;
  3614. swap(m01_, other->m01_);
  3615. swap(m02_, other->m02_);
  3616. swap(m10_, other->m10_);
  3617. swap(m12_, other->m12_);
  3618. swap(m00_, other->m00_);
  3619. swap(m11_, other->m11_);
  3620. swap(_has_bits_[0], other->_has_bits_[0]);
  3621. _internal_metadata_.Swap(&other->_internal_metadata_);
  3622. }
  3623. ::google::protobuf::Metadata Transform2d::GetMetadata() const {
  3624. protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  3625. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
  3626. }
  3627. // ===================================================================
  3628. void scanLimit::InitAsDefaultInstance() {
  3629. }
  3630. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  3631. const int scanLimit::kDistLimitFieldNumber;
  3632. const int scanLimit::kMinxFieldNumber;
  3633. const int scanLimit::kMaxxFieldNumber;
  3634. const int scanLimit::kMinyFieldNumber;
  3635. const int scanLimit::kMaxyFieldNumber;
  3636. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  3637. scanLimit::scanLimit()
  3638. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  3639. ::google::protobuf::internal::InitSCC(
  3640. &protobuf_wj_5flidar_5fconf_2eproto::scc_info_scanLimit.base);
  3641. SharedCtor();
  3642. // @@protoc_insertion_point(constructor:wj.scanLimit)
  3643. }
  3644. scanLimit::scanLimit(const scanLimit& from)
  3645. : ::google::protobuf::Message(),
  3646. _internal_metadata_(NULL),
  3647. _has_bits_(from._has_bits_) {
  3648. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3649. ::memcpy(&maxy_, &from.maxy_,
  3650. static_cast<size_t>(reinterpret_cast<char*>(&miny_) -
  3651. reinterpret_cast<char*>(&maxy_)) + sizeof(miny_));
  3652. // @@protoc_insertion_point(copy_constructor:wj.scanLimit)
  3653. }
  3654. void scanLimit::SharedCtor() {
  3655. maxy_ = 3.5f;
  3656. dist_limit_ = 8;
  3657. minx_ = -6;
  3658. maxx_ = -0.2f;
  3659. miny_ = -3.5f;
  3660. }
  3661. scanLimit::~scanLimit() {
  3662. // @@protoc_insertion_point(destructor:wj.scanLimit)
  3663. SharedDtor();
  3664. }
  3665. void scanLimit::SharedDtor() {
  3666. }
  3667. void scanLimit::SetCachedSize(int size) const {
  3668. _cached_size_.Set(size);
  3669. }
  3670. const ::google::protobuf::Descriptor* scanLimit::descriptor() {
  3671. ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  3672. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  3673. }
  3674. const scanLimit& scanLimit::default_instance() {
  3675. ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_scanLimit.base);
  3676. return *internal_default_instance();
  3677. }
  3678. void scanLimit::Clear() {
  3679. // @@protoc_insertion_point(message_clear_start:wj.scanLimit)
  3680. ::google::protobuf::uint32 cached_has_bits = 0;
  3681. // Prevent compiler warnings about cached_has_bits being unused
  3682. (void) cached_has_bits;
  3683. cached_has_bits = _has_bits_[0];
  3684. if (cached_has_bits & 31u) {
  3685. maxy_ = 3.5f;
  3686. dist_limit_ = 8;
  3687. minx_ = -6;
  3688. maxx_ = -0.2f;
  3689. miny_ = -3.5f;
  3690. }
  3691. _has_bits_.Clear();
  3692. _internal_metadata_.Clear();
  3693. }
  3694. bool scanLimit::MergePartialFromCodedStream(
  3695. ::google::protobuf::io::CodedInputStream* input) {
  3696. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  3697. ::google::protobuf::uint32 tag;
  3698. // @@protoc_insertion_point(parse_start:wj.scanLimit)
  3699. for (;;) {
  3700. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  3701. tag = p.first;
  3702. if (!p.second) goto handle_unusual;
  3703. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  3704. // optional float dist_limit = 1 [default = 8];
  3705. case 1: {
  3706. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3707. static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
  3708. set_has_dist_limit();
  3709. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3710. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3711. input, &dist_limit_)));
  3712. } else {
  3713. goto handle_unusual;
  3714. }
  3715. break;
  3716. }
  3717. // optional float minx = 2 [default = -6];
  3718. case 2: {
  3719. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3720. static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
  3721. set_has_minx();
  3722. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3723. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3724. input, &minx_)));
  3725. } else {
  3726. goto handle_unusual;
  3727. }
  3728. break;
  3729. }
  3730. // optional float maxx = 3 [default = -0.2];
  3731. case 3: {
  3732. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3733. static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
  3734. set_has_maxx();
  3735. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3736. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3737. input, &maxx_)));
  3738. } else {
  3739. goto handle_unusual;
  3740. }
  3741. break;
  3742. }
  3743. // optional float miny = 4 [default = -3.5];
  3744. case 4: {
  3745. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3746. static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
  3747. set_has_miny();
  3748. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3749. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3750. input, &miny_)));
  3751. } else {
  3752. goto handle_unusual;
  3753. }
  3754. break;
  3755. }
  3756. // optional float maxy = 5 [default = 3.5];
  3757. case 5: {
  3758. if (static_cast< ::google::protobuf::uint8>(tag) ==
  3759. static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
  3760. set_has_maxy();
  3761. DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
  3762. float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
  3763. input, &maxy_)));
  3764. } else {
  3765. goto handle_unusual;
  3766. }
  3767. break;
  3768. }
  3769. default: {
  3770. handle_unusual:
  3771. if (tag == 0) {
  3772. goto success;
  3773. }
  3774. DO_(::google::protobuf::internal::WireFormat::SkipField(
  3775. input, tag, _internal_metadata_.mutable_unknown_fields()));
  3776. break;
  3777. }
  3778. }
  3779. }
  3780. success:
  3781. // @@protoc_insertion_point(parse_success:wj.scanLimit)
  3782. return true;
  3783. failure:
  3784. // @@protoc_insertion_point(parse_failure:wj.scanLimit)
  3785. return false;
  3786. #undef DO_
  3787. }
  3788. void scanLimit::SerializeWithCachedSizes(
  3789. ::google::protobuf::io::CodedOutputStream* output) const {
  3790. // @@protoc_insertion_point(serialize_start:wj.scanLimit)
  3791. ::google::protobuf::uint32 cached_has_bits = 0;
  3792. (void) cached_has_bits;
  3793. cached_has_bits = _has_bits_[0];
  3794. // optional float dist_limit = 1 [default = 8];
  3795. if (cached_has_bits & 0x00000002u) {
  3796. ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->dist_limit(), output);
  3797. }
  3798. // optional float minx = 2 [default = -6];
  3799. if (cached_has_bits & 0x00000004u) {
  3800. ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->minx(), output);
  3801. }
  3802. // optional float maxx = 3 [default = -0.2];
  3803. if (cached_has_bits & 0x00000008u) {
  3804. ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->maxx(), output);
  3805. }
  3806. // optional float miny = 4 [default = -3.5];
  3807. if (cached_has_bits & 0x00000010u) {
  3808. ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->miny(), output);
  3809. }
  3810. // optional float maxy = 5 [default = 3.5];
  3811. if (cached_has_bits & 0x00000001u) {
  3812. ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->maxy(), output);
  3813. }
  3814. if (_internal_metadata_.have_unknown_fields()) {
  3815. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  3816. _internal_metadata_.unknown_fields(), output);
  3817. }
  3818. // @@protoc_insertion_point(serialize_end:wj.scanLimit)
  3819. }
  3820. ::google::protobuf::uint8* scanLimit::InternalSerializeWithCachedSizesToArray(
  3821. bool deterministic, ::google::protobuf::uint8* target) const {
  3822. (void)deterministic; // Unused
  3823. // @@protoc_insertion_point(serialize_to_array_start:wj.scanLimit)
  3824. ::google::protobuf::uint32 cached_has_bits = 0;
  3825. (void) cached_has_bits;
  3826. cached_has_bits = _has_bits_[0];
  3827. // optional float dist_limit = 1 [default = 8];
  3828. if (cached_has_bits & 0x00000002u) {
  3829. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->dist_limit(), target);
  3830. }
  3831. // optional float minx = 2 [default = -6];
  3832. if (cached_has_bits & 0x00000004u) {
  3833. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->minx(), target);
  3834. }
  3835. // optional float maxx = 3 [default = -0.2];
  3836. if (cached_has_bits & 0x00000008u) {
  3837. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->maxx(), target);
  3838. }
  3839. // optional float miny = 4 [default = -3.5];
  3840. if (cached_has_bits & 0x00000010u) {
  3841. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->miny(), target);
  3842. }
  3843. // optional float maxy = 5 [default = 3.5];
  3844. if (cached_has_bits & 0x00000001u) {
  3845. target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->maxy(), target);
  3846. }
  3847. if (_internal_metadata_.have_unknown_fields()) {
  3848. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  3849. _internal_metadata_.unknown_fields(), target);
  3850. }
  3851. // @@protoc_insertion_point(serialize_to_array_end:wj.scanLimit)
  3852. return target;
  3853. }
  3854. size_t scanLimit::ByteSizeLong() const {
  3855. // @@protoc_insertion_point(message_byte_size_start:wj.scanLimit)
  3856. size_t total_size = 0;
  3857. if (_internal_metadata_.have_unknown_fields()) {
  3858. total_size +=
  3859. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  3860. _internal_metadata_.unknown_fields());
  3861. }
  3862. if (_has_bits_[0 / 32] & 31u) {
  3863. // optional float maxy = 5 [default = 3.5];
  3864. if (has_maxy()) {
  3865. total_size += 1 + 4;
  3866. }
  3867. // optional float dist_limit = 1 [default = 8];
  3868. if (has_dist_limit()) {
  3869. total_size += 1 + 4;
  3870. }
  3871. // optional float minx = 2 [default = -6];
  3872. if (has_minx()) {
  3873. total_size += 1 + 4;
  3874. }
  3875. // optional float maxx = 3 [default = -0.2];
  3876. if (has_maxx()) {
  3877. total_size += 1 + 4;
  3878. }
  3879. // optional float miny = 4 [default = -3.5];
  3880. if (has_miny()) {
  3881. total_size += 1 + 4;
  3882. }
  3883. }
  3884. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  3885. SetCachedSize(cached_size);
  3886. return total_size;
  3887. }
  3888. void scanLimit::MergeFrom(const ::google::protobuf::Message& from) {
  3889. // @@protoc_insertion_point(generalized_merge_from_start:wj.scanLimit)
  3890. GOOGLE_DCHECK_NE(&from, this);
  3891. const scanLimit* source =
  3892. ::google::protobuf::internal::DynamicCastToGenerated<const scanLimit>(
  3893. &from);
  3894. if (source == NULL) {
  3895. // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.scanLimit)
  3896. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  3897. } else {
  3898. // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.scanLimit)
  3899. MergeFrom(*source);
  3900. }
  3901. }
  3902. void scanLimit::MergeFrom(const scanLimit& from) {
  3903. // @@protoc_insertion_point(class_specific_merge_from_start:wj.scanLimit)
  3904. GOOGLE_DCHECK_NE(&from, this);
  3905. _internal_metadata_.MergeFrom(from._internal_metadata_);
  3906. ::google::protobuf::uint32 cached_has_bits = 0;
  3907. (void) cached_has_bits;
  3908. cached_has_bits = from._has_bits_[0];
  3909. if (cached_has_bits & 31u) {
  3910. if (cached_has_bits & 0x00000001u) {
  3911. maxy_ = from.maxy_;
  3912. }
  3913. if (cached_has_bits & 0x00000002u) {
  3914. dist_limit_ = from.dist_limit_;
  3915. }
  3916. if (cached_has_bits & 0x00000004u) {
  3917. minx_ = from.minx_;
  3918. }
  3919. if (cached_has_bits & 0x00000008u) {
  3920. maxx_ = from.maxx_;
  3921. }
  3922. if (cached_has_bits & 0x00000010u) {
  3923. miny_ = from.miny_;
  3924. }
  3925. _has_bits_[0] |= cached_has_bits;
  3926. }
  3927. }
  3928. void scanLimit::CopyFrom(const ::google::protobuf::Message& from) {
  3929. // @@protoc_insertion_point(generalized_copy_from_start:wj.scanLimit)
  3930. if (&from == this) return;
  3931. Clear();
  3932. MergeFrom(from);
  3933. }
  3934. void scanLimit::CopyFrom(const scanLimit& from) {
  3935. // @@protoc_insertion_point(class_specific_copy_from_start:wj.scanLimit)
  3936. if (&from == this) return;
  3937. Clear();
  3938. MergeFrom(from);
  3939. }
  3940. bool scanLimit::IsInitialized() const {
  3941. return true;
  3942. }
  3943. void scanLimit::Swap(scanLimit* other) {
  3944. if (other == this) return;
  3945. InternalSwap(other);
  3946. }
  3947. void scanLimit::InternalSwap(scanLimit* other) {
  3948. using std::swap;
  3949. swap(maxy_, other->maxy_);
  3950. swap(dist_limit_, other->dist_limit_);
  3951. swap(minx_, other->minx_);
  3952. swap(maxx_, other->maxx_);
  3953. swap(miny_, other->miny_);
  3954. swap(_has_bits_[0], other->_has_bits_[0]);
  3955. _internal_metadata_.Swap(&other->_internal_metadata_);
  3956. }
  3957. ::google::protobuf::Metadata scanLimit::GetMetadata() const {
  3958. protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
  3959. return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
  3960. }
  3961. // @@protoc_insertion_point(namespace_scope)
  3962. } // namespace wj
  3963. namespace google {
  3964. namespace protobuf {
  3965. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::wjManagerParams* Arena::CreateMaybeMessage< ::wj::wjManagerParams >(Arena* arena) {
  3966. return Arena::CreateInternal< ::wj::wjManagerParams >(arena);
  3967. }
  3968. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::CalibParameter* Arena::CreateMaybeMessage< ::wj::CalibParameter >(Arena* arena) {
  3969. return Arena::CreateInternal< ::wj::CalibParameter >(arena);
  3970. }
  3971. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::lidarExtrinsic* Arena::CreateMaybeMessage< ::wj::lidarExtrinsic >(Arena* arena) {
  3972. return Arena::CreateInternal< ::wj::lidarExtrinsic >(arena);
  3973. }
  3974. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::Region* Arena::CreateMaybeMessage< ::wj::Region >(Arena* arena) {
  3975. return Arena::CreateInternal< ::wj::Region >(arena);
  3976. }
  3977. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::wjLidarParams* Arena::CreateMaybeMessage< ::wj::wjLidarParams >(Arena* arena) {
  3978. return Arena::CreateInternal< ::wj::wjLidarParams >(arena);
  3979. }
  3980. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::netConfig* Arena::CreateMaybeMessage< ::wj::netConfig >(Arena* arena) {
  3981. return Arena::CreateInternal< ::wj::netConfig >(arena);
  3982. }
  3983. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::Transform2d* Arena::CreateMaybeMessage< ::wj::Transform2d >(Arena* arena) {
  3984. return Arena::CreateInternal< ::wj::Transform2d >(arena);
  3985. }
  3986. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::scanLimit* Arena::CreateMaybeMessage< ::wj::scanLimit >(Arena* arena) {
  3987. return Arena::CreateInternal< ::wj::scanLimit >(arena);
  3988. }
  3989. } // namespace protobuf
  3990. } // namespace google
  3991. // @@protoc_insertion_point(global_scope)