123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: wj_lidar_conf.proto
- #include "wj_lidar_conf.pb.h"
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace protobuf_wj_5flidar_5fconf_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_CalibParameter;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Transform2d;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_netConfig;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_scanLimit;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_Region;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_lidarExtrinsic;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_wj_5flidar_5fconf_2eproto ::google::protobuf::internal::SCCInfo<3> scc_info_wjLidarParams;
- } // namespace protobuf_wj_5flidar_5fconf_2eproto
- namespace wj {
- class wjManagerParamsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<wjManagerParams>
- _instance;
- } _wjManagerParams_default_instance_;
- class CalibParameterDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<CalibParameter>
- _instance;
- } _CalibParameter_default_instance_;
- class lidarExtrinsicDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<lidarExtrinsic>
- _instance;
- } _lidarExtrinsic_default_instance_;
- class RegionDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Region>
- _instance;
- } _Region_default_instance_;
- class wjLidarParamsDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<wjLidarParams>
- _instance;
- } _wjLidarParams_default_instance_;
- class netConfigDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<netConfig>
- _instance;
- } _netConfig_default_instance_;
- class Transform2dDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<Transform2d>
- _instance;
- } _Transform2d_default_instance_;
- class scanLimitDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<scanLimit>
- _instance;
- } _scanLimit_default_instance_;
- } // namespace wj
- namespace protobuf_wj_5flidar_5fconf_2eproto {
- static void InitDefaultswjManagerParams() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- ::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.DefaultConstruct();
- *::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get_mutable() = ::std::string("192.168.0.1", 11);
- ::google::protobuf::internal::OnShutdownDestroyString(
- ::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get_mutable());
- {
- void* ptr = &::wj::_wjManagerParams_default_instance_;
- new (ptr) ::wj::wjManagerParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::wjManagerParams::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<2> scc_info_wjManagerParams =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultswjManagerParams}, {
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjLidarParams.base,
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Region.base,}};
- static void InitDefaultsCalibParameter() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_CalibParameter_default_instance_;
- new (ptr) ::wj::CalibParameter();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::CalibParameter::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_CalibParameter =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsCalibParameter}, {}};
- static void InitDefaultslidarExtrinsic() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_lidarExtrinsic_default_instance_;
- new (ptr) ::wj::lidarExtrinsic();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::lidarExtrinsic::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_lidarExtrinsic =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultslidarExtrinsic}, {
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_CalibParameter.base,}};
- static void InitDefaultsRegion() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_Region_default_instance_;
- new (ptr) ::wj::Region();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::Region::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_Region =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsRegion}, {
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_lidarExtrinsic.base,}};
- static void InitDefaultswjLidarParams() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_wjLidarParams_default_instance_;
- new (ptr) ::wj::wjLidarParams();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::wjLidarParams::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<3> scc_info_wjLidarParams =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 3, InitDefaultswjLidarParams}, {
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_netConfig.base,
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Transform2d.base,
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_scanLimit.base,}};
- static void InitDefaultsnetConfig() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_netConfig_default_instance_;
- new (ptr) ::wj::netConfig();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::netConfig::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_netConfig =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsnetConfig}, {}};
- static void InitDefaultsTransform2d() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_Transform2d_default_instance_;
- new (ptr) ::wj::Transform2d();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::Transform2d::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_Transform2d =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTransform2d}, {}};
- static void InitDefaultsscanLimit() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::wj::_scanLimit_default_instance_;
- new (ptr) ::wj::scanLimit();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::wj::scanLimit::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<0> scc_info_scanLimit =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscanLimit}, {}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_wjManagerParams.base);
- ::google::protobuf::internal::InitSCC(&scc_info_CalibParameter.base);
- ::google::protobuf::internal::InitSCC(&scc_info_lidarExtrinsic.base);
- ::google::protobuf::internal::InitSCC(&scc_info_Region.base);
- ::google::protobuf::internal::InitSCC(&scc_info_wjLidarParams.base);
- ::google::protobuf::internal::InitSCC(&scc_info_netConfig.base);
- ::google::protobuf::internal::InitSCC(&scc_info_Transform2d.base);
- ::google::protobuf::internal::InitSCC(&scc_info_scanLimit.base);
- }
- ::google::protobuf::Metadata file_level_metadata[8];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, wj_lidar_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, regions_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, fence_data_path_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, fence_log_path_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, plc_ip_address_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjManagerParams, distribution_mode_),
- ~0u,
- ~0u,
- 0,
- 1,
- 2,
- 3,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, r_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, p_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, y_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, cx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, cy_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::CalibParameter, cz_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::lidarExtrinsic, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::lidarExtrinsic, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::lidarExtrinsic, lidar_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::lidarExtrinsic, calib_),
- 1,
- 0,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, minx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, maxx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, miny_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, maxy_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, minz_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, maxz_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, region_id_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, lidar_exts_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, turnplate_cx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, turnplate_cy_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, border_minx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, border_maxx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, plc_offsetx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, plc_offsety_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, plc_offset_degree_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, plc_border_miny_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, car_min_width_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, car_max_width_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, car_min_wheelbase_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, car_max_wheelbase_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, turnplate_angle_limit_anti_clockwise_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Region, turnplate_angle_limit_clockwise_),
- 0,
- 1,
- 2,
- 3,
- 4,
- 5,
- 6,
- ~0u,
- 7,
- 8,
- 9,
- 10,
- 11,
- 12,
- 13,
- 14,
- 15,
- 16,
- 17,
- 18,
- 19,
- 20,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, angle_min_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, angle_max_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, angle_increment_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, time_increment_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, range_min_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, range_max_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, net_config_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, transform_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, scan_limit_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::wjLidarParams, lidar_id_),
- 6,
- 7,
- 8,
- 9,
- 3,
- 5,
- 0,
- 1,
- 2,
- 4,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::netConfig, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::netConfig, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::netConfig, ip_address_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::netConfig, port_),
- 0,
- 1,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m00_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m01_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m02_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m10_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m11_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::Transform2d, m12_),
- 4,
- 0,
- 1,
- 2,
- 5,
- 3,
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, _has_bits_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, dist_limit_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, minx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, maxx_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, miny_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::wj::scanLimit, maxy_),
- 1,
- 2,
- 3,
- 4,
- 0,
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, 11, sizeof(::wj::wjManagerParams)},
- { 17, 28, sizeof(::wj::CalibParameter)},
- { 34, 41, sizeof(::wj::lidarExtrinsic)},
- { 43, 70, sizeof(::wj::Region)},
- { 92, 107, sizeof(::wj::wjLidarParams)},
- { 117, 124, sizeof(::wj::netConfig)},
- { 126, 137, sizeof(::wj::Transform2d)},
- { 143, 153, sizeof(::wj::scanLimit)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_wjManagerParams_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_CalibParameter_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_lidarExtrinsic_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_Region_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_wjLidarParams_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_netConfig_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_Transform2d_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::wj::_scanLimit_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "wj_lidar_conf.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 8);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\023wj_lidar_conf.proto\022\002wj\"\317\001\n\017wjManagerP"
- "arams\022#\n\010wj_lidar\030\001 \003(\0132\021.wj.wjLidarPara"
- "ms\022\033\n\007regions\030\002 \003(\0132\n.wj.Region\022\031\n\017fence"
- "_data_path\030\003 \001(\t:\000\022\030\n\016fence_log_path\030\004 \001"
- "(\t:\000\022#\n\016plc_ip_address\030\005 \001(\t:\013192.168.0."
- "1\022 \n\021distribution_mode\030\006 \002(\010:\005false\"g\n\016C"
- "alibParameter\022\014\n\001r\030\001 \001(\002:\0010\022\014\n\001p\030\002 \001(\002:\001"
- "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"
- "(\002:\0010\022\r\n\002cz\030\006 \001(\002:\0010\"E\n\016lidarExtrinsic\022\020"
- "\n\010lidar_id\030\001 \002(\005\022!\n\005calib\030\002 \001(\0132\022.wj.Cal"
- "ibParameter\"\206\004\n\006Region\022\014\n\004minx\030\001 \002(\002\022\014\n\004"
- "maxx\030\002 \002(\002\022\014\n\004miny\030\003 \002(\002\022\014\n\004maxy\030\004 \002(\002\022\014"
- "\n\004minz\030\005 \002(\002\022\014\n\004maxz\030\006 \002(\002\022\021\n\tregion_id\030"
- "\007 \002(\005\022&\n\nlidar_exts\030\010 \003(\0132\022.wj.lidarExtr"
- "insic\022\024\n\014turnplate_cx\030\t \002(\002\022\024\n\014turnplate"
- "_cy\030\n \002(\002\022\023\n\013border_minx\030\013 \002(\002\022\023\n\013border"
- "_maxx\030\014 \002(\002\022\023\n\013plc_offsetx\030\r \002(\002\022\023\n\013plc_"
- "offsety\030\016 \002(\002\022\031\n\021plc_offset_degree\030\017 \002(\002"
- "\022\027\n\017plc_border_miny\030\020 \002(\002\022\025\n\rcar_min_wid"
- "th\030\021 \002(\002\022\025\n\rcar_max_width\030\022 \002(\002\022\031\n\021car_m"
- "in_wheelbase\030\023 \002(\002\022\031\n\021car_max_wheelbase\030"
- "\024 \002(\002\022,\n$turnplate_angle_limit_anti_cloc"
- "kwise\030\025 \002(\002\022\'\n\037turnplate_angle_limit_clo"
- "ckwise\030\026 \002(\002\"\273\002\n\rwjLidarParams\022\035\n\tangle_"
- "min\030\001 \001(\002:\n-2.3561945\022\034\n\tangle_max\030\002 \001(\002"
- ":\t2.3561945\022 \n\017angle_increment\030\003 \001(\002:\0070."
- "00582\022\037\n\016time_increment\030\004 \001(\002:\0076.2e-05\022\024"
- "\n\trange_min\030\005 \001(\005:\0010\022\025\n\trange_max\030\006 \001(\005:"
- "\00230\022!\n\nnet_config\030\007 \002(\0132\r.wj.netConfig\022\""
- "\n\ttransform\030\010 \002(\0132\017.wj.Transform2d\022!\n\nsc"
- "an_limit\030\t \002(\0132\r.wj.scanLimit\022\023\n\010lidar_i"
- "d\030\n \002(\005:\0010\"5\n\tnetConfig\022\024\n\nip_address\030\001 "
- "\001(\t:\000\022\022\n\004port\030\002 \001(\005:\0048000\"m\n\013Transform2d"
- "\022\016\n\003m00\030\001 \001(\002:\0011\022\016\n\003m01\030\002 \001(\002:\0010\022\016\n\003m02\030"
- "\003 \001(\002:\0010\022\016\n\003m10\030\004 \001(\002:\0010\022\016\n\003m11\030\005 \001(\002:\0011"
- "\022\016\n\003m12\030\006 \001(\002:\0010\"o\n\tscanLimit\022\025\n\ndist_li"
- "mit\030\001 \001(\002:\0018\022\020\n\004minx\030\002 \001(\002:\002-6\022\022\n\004maxx\030\003"
- " \001(\002:\004-0.2\022\022\n\004miny\030\004 \001(\002:\004-3.5\022\021\n\004maxy\030\005"
- " \001(\002:\0033.5"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 1529);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "wj_lidar_conf.proto", &protobuf_RegisterTypes);
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_wj_5flidar_5fconf_2eproto
- namespace wj {
- // ===================================================================
- void wjManagerParams::InitAsDefaultInstance() {
- }
- ::google::protobuf::internal::ExplicitlyConstructed<::std::string> wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_;
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int wjManagerParams::kWjLidarFieldNumber;
- const int wjManagerParams::kRegionsFieldNumber;
- const int wjManagerParams::kFenceDataPathFieldNumber;
- const int wjManagerParams::kFenceLogPathFieldNumber;
- const int wjManagerParams::kPlcIpAddressFieldNumber;
- const int wjManagerParams::kDistributionModeFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- wjManagerParams::wjManagerParams()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjManagerParams.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.wjManagerParams)
- }
- wjManagerParams::wjManagerParams(const wjManagerParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- wj_lidar_(from.wj_lidar_),
- regions_(from.regions_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_fence_data_path()) {
- fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
- }
- fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_fence_log_path()) {
- fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
- }
- plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
- if (from.has_plc_ip_address()) {
- plc_ip_address_.AssignWithDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), from.plc_ip_address_);
- }
- distribution_mode_ = from.distribution_mode_;
- // @@protoc_insertion_point(copy_constructor:wj.wjManagerParams)
- }
- void wjManagerParams::SharedCtor() {
- fence_data_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- fence_log_path_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- plc_ip_address_.UnsafeSetDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
- distribution_mode_ = false;
- }
- wjManagerParams::~wjManagerParams() {
- // @@protoc_insertion_point(destructor:wj.wjManagerParams)
- SharedDtor();
- }
- void wjManagerParams::SharedDtor() {
- fence_data_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- fence_log_path_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- plc_ip_address_.DestroyNoArena(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
- }
- void wjManagerParams::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* wjManagerParams::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const wjManagerParams& wjManagerParams::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjManagerParams.base);
- return *internal_default_instance();
- }
- void wjManagerParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.wjManagerParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- wj_lidar_.Clear();
- regions_.Clear();
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 7u) {
- if (cached_has_bits & 0x00000001u) {
- fence_data_path_.ClearNonDefaultToEmptyNoArena();
- }
- if (cached_has_bits & 0x00000002u) {
- fence_log_path_.ClearNonDefaultToEmptyNoArena();
- }
- if (cached_has_bits & 0x00000004u) {
- plc_ip_address_.UnsafeMutablePointer()->assign(*&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get());
- }
- }
- distribution_mode_ = false;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool wjManagerParams::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.wjManagerParams)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // repeated .wj.wjLidarParams wj_lidar = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_wj_lidar()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .wj.Region regions = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_regions()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string fence_data_path = 3 [default = ""];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_fence_data_path()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "wj.wjManagerParams.fence_data_path");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string fence_log_path = 4 [default = ""];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_fence_log_path()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "wj.wjManagerParams.fence_log_path");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional string plc_ip_address = 5 [default = "192.168.0.1"];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_plc_ip_address()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->plc_ip_address().data(), static_cast<int>(this->plc_ip_address().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "wj.wjManagerParams.plc_ip_address");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required bool distribution_mode = 6 [default = false];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
- set_has_distribution_mode();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
- input, &distribution_mode_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.wjManagerParams)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.wjManagerParams)
- return false;
- #undef DO_
- }
- void wjManagerParams::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.wjManagerParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .wj.wjLidarParams wj_lidar = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->wj_lidar_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1,
- this->wj_lidar(static_cast<int>(i)),
- output);
- }
- // repeated .wj.Region regions = 2;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->regions_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2,
- this->regions(static_cast<int>(i)),
- output);
- }
- cached_has_bits = _has_bits_[0];
- // optional string fence_data_path = 3 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.fence_data_path");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 3, this->fence_data_path(), output);
- }
- // optional string fence_log_path = 4 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.fence_log_path");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 4, this->fence_log_path(), output);
- }
- // optional string plc_ip_address = 5 [default = "192.168.0.1"];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->plc_ip_address().data(), static_cast<int>(this->plc_ip_address().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.plc_ip_address");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 5, this->plc_ip_address(), output);
- }
- // required bool distribution_mode = 6 [default = false];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteBool(6, this->distribution_mode(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.wjManagerParams)
- }
- ::google::protobuf::uint8* wjManagerParams::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.wjManagerParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .wj.wjLidarParams wj_lidar = 1;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->wj_lidar_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->wj_lidar(static_cast<int>(i)), deterministic, target);
- }
- // repeated .wj.Region regions = 2;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->regions_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->regions(static_cast<int>(i)), deterministic, target);
- }
- cached_has_bits = _has_bits_[0];
- // optional string fence_data_path = 3 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_data_path().data(), static_cast<int>(this->fence_data_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.fence_data_path");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 3, this->fence_data_path(), target);
- }
- // optional string fence_log_path = 4 [default = ""];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->fence_log_path().data(), static_cast<int>(this->fence_log_path().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.fence_log_path");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 4, this->fence_log_path(), target);
- }
- // optional string plc_ip_address = 5 [default = "192.168.0.1"];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->plc_ip_address().data(), static_cast<int>(this->plc_ip_address().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.wjManagerParams.plc_ip_address");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 5, this->plc_ip_address(), target);
- }
- // required bool distribution_mode = 6 [default = false];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(6, this->distribution_mode(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.wjManagerParams)
- return target;
- }
- size_t wjManagerParams::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.wjManagerParams)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // required bool distribution_mode = 6 [default = false];
- if (has_distribution_mode()) {
- total_size += 1 + 1;
- }
- // repeated .wj.wjLidarParams wj_lidar = 1;
- {
- unsigned int count = static_cast<unsigned int>(this->wj_lidar_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->wj_lidar(static_cast<int>(i)));
- }
- }
- // repeated .wj.Region regions = 2;
- {
- unsigned int count = static_cast<unsigned int>(this->regions_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->regions(static_cast<int>(i)));
- }
- }
- if (_has_bits_[0 / 32] & 7u) {
- // optional string fence_data_path = 3 [default = ""];
- if (has_fence_data_path()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->fence_data_path());
- }
- // optional string fence_log_path = 4 [default = ""];
- if (has_fence_log_path()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->fence_log_path());
- }
- // optional string plc_ip_address = 5 [default = "192.168.0.1"];
- if (has_plc_ip_address()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->plc_ip_address());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void wjManagerParams::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.wjManagerParams)
- GOOGLE_DCHECK_NE(&from, this);
- const wjManagerParams* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const wjManagerParams>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.wjManagerParams)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.wjManagerParams)
- MergeFrom(*source);
- }
- }
- void wjManagerParams::MergeFrom(const wjManagerParams& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.wjManagerParams)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- wj_lidar_.MergeFrom(from.wj_lidar_);
- regions_.MergeFrom(from.regions_);
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 15u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_fence_data_path();
- fence_data_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_data_path_);
- }
- if (cached_has_bits & 0x00000002u) {
- set_has_fence_log_path();
- fence_log_path_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.fence_log_path_);
- }
- if (cached_has_bits & 0x00000004u) {
- set_has_plc_ip_address();
- plc_ip_address_.AssignWithDefault(&::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(), from.plc_ip_address_);
- }
- if (cached_has_bits & 0x00000008u) {
- distribution_mode_ = from.distribution_mode_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void wjManagerParams::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.wjManagerParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void wjManagerParams::CopyFrom(const wjManagerParams& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.wjManagerParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool wjManagerParams::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000008) != 0x00000008) return false;
- if (!::google::protobuf::internal::AllAreInitialized(this->wj_lidar())) return false;
- if (!::google::protobuf::internal::AllAreInitialized(this->regions())) return false;
- return true;
- }
- void wjManagerParams::Swap(wjManagerParams* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void wjManagerParams::InternalSwap(wjManagerParams* other) {
- using std::swap;
- CastToBase(&wj_lidar_)->InternalSwap(CastToBase(&other->wj_lidar_));
- CastToBase(®ions_)->InternalSwap(CastToBase(&other->regions_));
- fence_data_path_.Swap(&other->fence_data_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- fence_log_path_.Swap(&other->fence_log_path_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- plc_ip_address_.Swap(&other->plc_ip_address_, &::wj::wjManagerParams::_i_give_permission_to_break_this_code_default_plc_ip_address_.get(),
- GetArenaNoVirtual());
- swap(distribution_mode_, other->distribution_mode_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata wjManagerParams::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void CalibParameter::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int CalibParameter::kRFieldNumber;
- const int CalibParameter::kPFieldNumber;
- const int CalibParameter::kYFieldNumber;
- const int CalibParameter::kCxFieldNumber;
- const int CalibParameter::kCyFieldNumber;
- const int CalibParameter::kCzFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- CalibParameter::CalibParameter()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_CalibParameter.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.CalibParameter)
- }
- CalibParameter::CalibParameter(const CalibParameter& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&r_, &from.r_,
- static_cast<size_t>(reinterpret_cast<char*>(&cz_) -
- reinterpret_cast<char*>(&r_)) + sizeof(cz_));
- // @@protoc_insertion_point(copy_constructor:wj.CalibParameter)
- }
- void CalibParameter::SharedCtor() {
- ::memset(&r_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&cz_) -
- reinterpret_cast<char*>(&r_)) + sizeof(cz_));
- }
- CalibParameter::~CalibParameter() {
- // @@protoc_insertion_point(destructor:wj.CalibParameter)
- SharedDtor();
- }
- void CalibParameter::SharedDtor() {
- }
- void CalibParameter::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* CalibParameter::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const CalibParameter& CalibParameter::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_CalibParameter.base);
- return *internal_default_instance();
- }
- void CalibParameter::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.CalibParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 63u) {
- ::memset(&r_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&cz_) -
- reinterpret_cast<char*>(&r_)) + sizeof(cz_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool CalibParameter::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.CalibParameter)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional float r = 1 [default = 0];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_r();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &r_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float p = 2 [default = 0];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_p();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &p_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float y = 3 [default = 0];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_y();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &y_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float cx = 4 [default = 0];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_cx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &cx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float cy = 5 [default = 0];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
- set_has_cy();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &cy_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float cz = 6 [default = 0];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
- set_has_cz();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &cz_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.CalibParameter)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.CalibParameter)
- return false;
- #undef DO_
- }
- void CalibParameter::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.CalibParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float r = 1 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->r(), output);
- }
- // optional float p = 2 [default = 0];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->p(), output);
- }
- // optional float y = 3 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->y(), output);
- }
- // optional float cx = 4 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->cx(), output);
- }
- // optional float cy = 5 [default = 0];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->cy(), output);
- }
- // optional float cz = 6 [default = 0];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->cz(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.CalibParameter)
- }
- ::google::protobuf::uint8* CalibParameter::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.CalibParameter)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float r = 1 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->r(), target);
- }
- // optional float p = 2 [default = 0];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->p(), target);
- }
- // optional float y = 3 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->y(), target);
- }
- // optional float cx = 4 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->cx(), target);
- }
- // optional float cy = 5 [default = 0];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->cy(), target);
- }
- // optional float cz = 6 [default = 0];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->cz(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.CalibParameter)
- return target;
- }
- size_t CalibParameter::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.CalibParameter)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 63u) {
- // optional float r = 1 [default = 0];
- if (has_r()) {
- total_size += 1 + 4;
- }
- // optional float p = 2 [default = 0];
- if (has_p()) {
- total_size += 1 + 4;
- }
- // optional float y = 3 [default = 0];
- if (has_y()) {
- total_size += 1 + 4;
- }
- // optional float cx = 4 [default = 0];
- if (has_cx()) {
- total_size += 1 + 4;
- }
- // optional float cy = 5 [default = 0];
- if (has_cy()) {
- total_size += 1 + 4;
- }
- // optional float cz = 6 [default = 0];
- if (has_cz()) {
- total_size += 1 + 4;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void CalibParameter::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.CalibParameter)
- GOOGLE_DCHECK_NE(&from, this);
- const CalibParameter* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const CalibParameter>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.CalibParameter)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.CalibParameter)
- MergeFrom(*source);
- }
- }
- void CalibParameter::MergeFrom(const CalibParameter& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.CalibParameter)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- r_ = from.r_;
- }
- if (cached_has_bits & 0x00000002u) {
- p_ = from.p_;
- }
- if (cached_has_bits & 0x00000004u) {
- y_ = from.y_;
- }
- if (cached_has_bits & 0x00000008u) {
- cx_ = from.cx_;
- }
- if (cached_has_bits & 0x00000010u) {
- cy_ = from.cy_;
- }
- if (cached_has_bits & 0x00000020u) {
- cz_ = from.cz_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void CalibParameter::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.CalibParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void CalibParameter::CopyFrom(const CalibParameter& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.CalibParameter)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool CalibParameter::IsInitialized() const {
- return true;
- }
- void CalibParameter::Swap(CalibParameter* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void CalibParameter::InternalSwap(CalibParameter* other) {
- using std::swap;
- swap(r_, other->r_);
- swap(p_, other->p_);
- swap(y_, other->y_);
- swap(cx_, other->cx_);
- swap(cy_, other->cy_);
- swap(cz_, other->cz_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata CalibParameter::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void lidarExtrinsic::InitAsDefaultInstance() {
- ::wj::_lidarExtrinsic_default_instance_._instance.get_mutable()->calib_ = const_cast< ::wj::CalibParameter*>(
- ::wj::CalibParameter::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int lidarExtrinsic::kLidarIdFieldNumber;
- const int lidarExtrinsic::kCalibFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- lidarExtrinsic::lidarExtrinsic()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_lidarExtrinsic.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.lidarExtrinsic)
- }
- lidarExtrinsic::lidarExtrinsic(const lidarExtrinsic& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_calib()) {
- calib_ = new ::wj::CalibParameter(*from.calib_);
- } else {
- calib_ = NULL;
- }
- lidar_id_ = from.lidar_id_;
- // @@protoc_insertion_point(copy_constructor:wj.lidarExtrinsic)
- }
- void lidarExtrinsic::SharedCtor() {
- ::memset(&calib_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&lidar_id_) -
- reinterpret_cast<char*>(&calib_)) + sizeof(lidar_id_));
- }
- lidarExtrinsic::~lidarExtrinsic() {
- // @@protoc_insertion_point(destructor:wj.lidarExtrinsic)
- SharedDtor();
- }
- void lidarExtrinsic::SharedDtor() {
- if (this != internal_default_instance()) delete calib_;
- }
- void lidarExtrinsic::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* lidarExtrinsic::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const lidarExtrinsic& lidarExtrinsic::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_lidarExtrinsic.base);
- return *internal_default_instance();
- }
- void lidarExtrinsic::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.lidarExtrinsic)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(calib_ != NULL);
- calib_->Clear();
- }
- lidar_id_ = 0;
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool lidarExtrinsic::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.lidarExtrinsic)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required int32 lidar_id = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
- set_has_lidar_id();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &lidar_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional .wj.CalibParameter calib = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_calib()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.lidarExtrinsic)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.lidarExtrinsic)
- return false;
- #undef DO_
- }
- void lidarExtrinsic::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.lidarExtrinsic)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required int32 lidar_id = 1;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->lidar_id(), output);
- }
- // optional .wj.CalibParameter calib = 2;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->_internal_calib(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.lidarExtrinsic)
- }
- ::google::protobuf::uint8* lidarExtrinsic::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.lidarExtrinsic)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required int32 lidar_id = 1;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->lidar_id(), target);
- }
- // optional .wj.CalibParameter calib = 2;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->_internal_calib(), deterministic, target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.lidarExtrinsic)
- return target;
- }
- size_t lidarExtrinsic::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.lidarExtrinsic)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- // required int32 lidar_id = 1;
- if (has_lidar_id()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->lidar_id());
- }
- // optional .wj.CalibParameter calib = 2;
- if (has_calib()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *calib_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void lidarExtrinsic::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.lidarExtrinsic)
- GOOGLE_DCHECK_NE(&from, this);
- const lidarExtrinsic* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const lidarExtrinsic>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.lidarExtrinsic)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.lidarExtrinsic)
- MergeFrom(*source);
- }
- }
- void lidarExtrinsic::MergeFrom(const lidarExtrinsic& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.lidarExtrinsic)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 3u) {
- if (cached_has_bits & 0x00000001u) {
- mutable_calib()->::wj::CalibParameter::MergeFrom(from.calib());
- }
- if (cached_has_bits & 0x00000002u) {
- lidar_id_ = from.lidar_id_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void lidarExtrinsic::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.lidarExtrinsic)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void lidarExtrinsic::CopyFrom(const lidarExtrinsic& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.lidarExtrinsic)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool lidarExtrinsic::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
- return true;
- }
- void lidarExtrinsic::Swap(lidarExtrinsic* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void lidarExtrinsic::InternalSwap(lidarExtrinsic* other) {
- using std::swap;
- swap(calib_, other->calib_);
- swap(lidar_id_, other->lidar_id_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata lidarExtrinsic::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Region::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Region::kMinxFieldNumber;
- const int Region::kMaxxFieldNumber;
- const int Region::kMinyFieldNumber;
- const int Region::kMaxyFieldNumber;
- const int Region::kMinzFieldNumber;
- const int Region::kMaxzFieldNumber;
- const int Region::kRegionIdFieldNumber;
- const int Region::kLidarExtsFieldNumber;
- const int Region::kTurnplateCxFieldNumber;
- const int Region::kTurnplateCyFieldNumber;
- const int Region::kBorderMinxFieldNumber;
- const int Region::kBorderMaxxFieldNumber;
- const int Region::kPlcOffsetxFieldNumber;
- const int Region::kPlcOffsetyFieldNumber;
- const int Region::kPlcOffsetDegreeFieldNumber;
- const int Region::kPlcBorderMinyFieldNumber;
- const int Region::kCarMinWidthFieldNumber;
- const int Region::kCarMaxWidthFieldNumber;
- const int Region::kCarMinWheelbaseFieldNumber;
- const int Region::kCarMaxWheelbaseFieldNumber;
- const int Region::kTurnplateAngleLimitAntiClockwiseFieldNumber;
- const int Region::kTurnplateAngleLimitClockwiseFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Region::Region()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Region.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.Region)
- }
- Region::Region(const Region& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_),
- lidar_exts_(from.lidar_exts_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&minx_, &from.minx_,
- static_cast<size_t>(reinterpret_cast<char*>(&turnplate_angle_limit_clockwise_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_angle_limit_clockwise_));
- // @@protoc_insertion_point(copy_constructor:wj.Region)
- }
- void Region::SharedCtor() {
- ::memset(&minx_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&turnplate_angle_limit_clockwise_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_angle_limit_clockwise_));
- }
- Region::~Region() {
- // @@protoc_insertion_point(destructor:wj.Region)
- SharedDtor();
- }
- void Region::SharedDtor() {
- }
- void Region::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Region::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Region& Region::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_Region.base);
- return *internal_default_instance();
- }
- void Region::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.Region)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- lidar_exts_.Clear();
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 255u) {
- ::memset(&minx_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&turnplate_cx_) -
- reinterpret_cast<char*>(&minx_)) + sizeof(turnplate_cx_));
- }
- if (cached_has_bits & 65280u) {
- ::memset(&turnplate_cy_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&car_min_width_) -
- reinterpret_cast<char*>(&turnplate_cy_)) + sizeof(car_min_width_));
- }
- if (cached_has_bits & 2031616u) {
- ::memset(&car_max_width_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&turnplate_angle_limit_clockwise_) -
- reinterpret_cast<char*>(&car_max_width_)) + sizeof(turnplate_angle_limit_clockwise_));
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Region::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.Region)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // required float minx = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_minx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &minx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float maxx = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_maxx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &maxx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float miny = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_miny();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &miny_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float maxy = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_maxy();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &maxy_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float minz = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
- set_has_minz();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &minz_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float maxz = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
- set_has_maxz();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &maxz_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required int32 region_id = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(56u /* 56 & 0xFF */)) {
- set_has_region_id();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, ®ion_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .wj.lidarExtrinsic lidar_exts = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_lidar_exts()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float turnplate_cx = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(77u /* 77 & 0xFF */)) {
- set_has_turnplate_cx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &turnplate_cx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float turnplate_cy = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(85u /* 85 & 0xFF */)) {
- set_has_turnplate_cy();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &turnplate_cy_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float border_minx = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(93u /* 93 & 0xFF */)) {
- set_has_border_minx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &border_minx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float border_maxx = 12;
- case 12: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(101u /* 101 & 0xFF */)) {
- set_has_border_maxx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &border_maxx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float plc_offsetx = 13;
- case 13: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(109u /* 109 & 0xFF */)) {
- set_has_plc_offsetx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &plc_offsetx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float plc_offsety = 14;
- case 14: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(117u /* 117 & 0xFF */)) {
- set_has_plc_offsety();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &plc_offsety_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float plc_offset_degree = 15;
- case 15: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(125u /* 125 & 0xFF */)) {
- set_has_plc_offset_degree();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &plc_offset_degree_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float plc_border_miny = 16;
- case 16: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(133u /* 133 & 0xFF */)) {
- set_has_plc_border_miny();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &plc_border_miny_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float car_min_width = 17;
- case 17: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(141u /* 141 & 0xFF */)) {
- set_has_car_min_width();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &car_min_width_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float car_max_width = 18;
- case 18: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(149u /* 149 & 0xFF */)) {
- set_has_car_max_width();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &car_max_width_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float car_min_wheelbase = 19;
- case 19: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(157u /* 157 & 0xFF */)) {
- set_has_car_min_wheelbase();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &car_min_wheelbase_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float car_max_wheelbase = 20;
- case 20: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(165u /* 165 & 0xFF */)) {
- set_has_car_max_wheelbase();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &car_max_wheelbase_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float turnplate_angle_limit_anti_clockwise = 21;
- case 21: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(173u /* 173 & 0xFF */)) {
- set_has_turnplate_angle_limit_anti_clockwise();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &turnplate_angle_limit_anti_clockwise_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required float turnplate_angle_limit_clockwise = 22;
- case 22: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(181u /* 181 & 0xFF */)) {
- set_has_turnplate_angle_limit_clockwise();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &turnplate_angle_limit_clockwise_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.Region)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.Region)
- return false;
- #undef DO_
- }
- void Region::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.Region)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required float minx = 1;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->minx(), output);
- }
- // required float maxx = 2;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->maxx(), output);
- }
- // required float miny = 3;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->miny(), output);
- }
- // required float maxy = 4;
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->maxy(), output);
- }
- // required float minz = 5;
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->minz(), output);
- }
- // required float maxz = 6;
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->maxz(), output);
- }
- // required int32 region_id = 7;
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(7, this->region_id(), output);
- }
- // repeated .wj.lidarExtrinsic lidar_exts = 8;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->lidar_exts_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8,
- this->lidar_exts(static_cast<int>(i)),
- output);
- }
- // required float turnplate_cx = 9;
- if (cached_has_bits & 0x00000080u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(9, this->turnplate_cx(), output);
- }
- // required float turnplate_cy = 10;
- if (cached_has_bits & 0x00000100u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(10, this->turnplate_cy(), output);
- }
- // required float border_minx = 11;
- if (cached_has_bits & 0x00000200u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(11, this->border_minx(), output);
- }
- // required float border_maxx = 12;
- if (cached_has_bits & 0x00000400u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(12, this->border_maxx(), output);
- }
- // required float plc_offsetx = 13;
- if (cached_has_bits & 0x00000800u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(13, this->plc_offsetx(), output);
- }
- // required float plc_offsety = 14;
- if (cached_has_bits & 0x00001000u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(14, this->plc_offsety(), output);
- }
- // required float plc_offset_degree = 15;
- if (cached_has_bits & 0x00002000u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(15, this->plc_offset_degree(), output);
- }
- // required float plc_border_miny = 16;
- if (cached_has_bits & 0x00004000u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(16, this->plc_border_miny(), output);
- }
- // required float car_min_width = 17;
- if (cached_has_bits & 0x00008000u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(17, this->car_min_width(), output);
- }
- // required float car_max_width = 18;
- if (cached_has_bits & 0x00010000u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(18, this->car_max_width(), output);
- }
- // required float car_min_wheelbase = 19;
- if (cached_has_bits & 0x00020000u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(19, this->car_min_wheelbase(), output);
- }
- // required float car_max_wheelbase = 20;
- if (cached_has_bits & 0x00040000u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(20, this->car_max_wheelbase(), output);
- }
- // required float turnplate_angle_limit_anti_clockwise = 21;
- if (cached_has_bits & 0x00080000u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(21, this->turnplate_angle_limit_anti_clockwise(), output);
- }
- // required float turnplate_angle_limit_clockwise = 22;
- if (cached_has_bits & 0x00100000u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(22, this->turnplate_angle_limit_clockwise(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.Region)
- }
- ::google::protobuf::uint8* Region::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.Region)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // required float minx = 1;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->minx(), target);
- }
- // required float maxx = 2;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->maxx(), target);
- }
- // required float miny = 3;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->miny(), target);
- }
- // required float maxy = 4;
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->maxy(), target);
- }
- // required float minz = 5;
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->minz(), target);
- }
- // required float maxz = 6;
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->maxz(), target);
- }
- // required int32 region_id = 7;
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(7, this->region_id(), target);
- }
- // repeated .wj.lidarExtrinsic lidar_exts = 8;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->lidar_exts_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 8, this->lidar_exts(static_cast<int>(i)), deterministic, target);
- }
- // required float turnplate_cx = 9;
- if (cached_has_bits & 0x00000080u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(9, this->turnplate_cx(), target);
- }
- // required float turnplate_cy = 10;
- if (cached_has_bits & 0x00000100u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(10, this->turnplate_cy(), target);
- }
- // required float border_minx = 11;
- if (cached_has_bits & 0x00000200u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(11, this->border_minx(), target);
- }
- // required float border_maxx = 12;
- if (cached_has_bits & 0x00000400u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(12, this->border_maxx(), target);
- }
- // required float plc_offsetx = 13;
- if (cached_has_bits & 0x00000800u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(13, this->plc_offsetx(), target);
- }
- // required float plc_offsety = 14;
- if (cached_has_bits & 0x00001000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(14, this->plc_offsety(), target);
- }
- // required float plc_offset_degree = 15;
- if (cached_has_bits & 0x00002000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(15, this->plc_offset_degree(), target);
- }
- // required float plc_border_miny = 16;
- if (cached_has_bits & 0x00004000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(16, this->plc_border_miny(), target);
- }
- // required float car_min_width = 17;
- if (cached_has_bits & 0x00008000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(17, this->car_min_width(), target);
- }
- // required float car_max_width = 18;
- if (cached_has_bits & 0x00010000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(18, this->car_max_width(), target);
- }
- // required float car_min_wheelbase = 19;
- if (cached_has_bits & 0x00020000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(19, this->car_min_wheelbase(), target);
- }
- // required float car_max_wheelbase = 20;
- if (cached_has_bits & 0x00040000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(20, this->car_max_wheelbase(), target);
- }
- // required float turnplate_angle_limit_anti_clockwise = 21;
- if (cached_has_bits & 0x00080000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(21, this->turnplate_angle_limit_anti_clockwise(), target);
- }
- // required float turnplate_angle_limit_clockwise = 22;
- if (cached_has_bits & 0x00100000u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(22, this->turnplate_angle_limit_clockwise(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.Region)
- return target;
- }
- size_t Region::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:wj.Region)
- size_t total_size = 0;
- if (has_minx()) {
- // required float minx = 1;
- total_size += 1 + 4;
- }
- if (has_maxx()) {
- // required float maxx = 2;
- total_size += 1 + 4;
- }
- if (has_miny()) {
- // required float miny = 3;
- total_size += 1 + 4;
- }
- if (has_maxy()) {
- // required float maxy = 4;
- total_size += 1 + 4;
- }
- if (has_minz()) {
- // required float minz = 5;
- total_size += 1 + 4;
- }
- if (has_maxz()) {
- // required float maxz = 6;
- total_size += 1 + 4;
- }
- if (has_region_id()) {
- // required int32 region_id = 7;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->region_id());
- }
- if (has_turnplate_cx()) {
- // required float turnplate_cx = 9;
- total_size += 1 + 4;
- }
- if (has_turnplate_cy()) {
- // required float turnplate_cy = 10;
- total_size += 1 + 4;
- }
- if (has_border_minx()) {
- // required float border_minx = 11;
- total_size += 1 + 4;
- }
- if (has_border_maxx()) {
- // required float border_maxx = 12;
- total_size += 1 + 4;
- }
- if (has_plc_offsetx()) {
- // required float plc_offsetx = 13;
- total_size += 1 + 4;
- }
- if (has_plc_offsety()) {
- // required float plc_offsety = 14;
- total_size += 1 + 4;
- }
- if (has_plc_offset_degree()) {
- // required float plc_offset_degree = 15;
- total_size += 1 + 4;
- }
- if (has_plc_border_miny()) {
- // required float plc_border_miny = 16;
- total_size += 2 + 4;
- }
- if (has_car_min_width()) {
- // required float car_min_width = 17;
- total_size += 2 + 4;
- }
- if (has_car_max_width()) {
- // required float car_max_width = 18;
- total_size += 2 + 4;
- }
- if (has_car_min_wheelbase()) {
- // required float car_min_wheelbase = 19;
- total_size += 2 + 4;
- }
- if (has_car_max_wheelbase()) {
- // required float car_max_wheelbase = 20;
- total_size += 2 + 4;
- }
- if (has_turnplate_angle_limit_anti_clockwise()) {
- // required float turnplate_angle_limit_anti_clockwise = 21;
- total_size += 2 + 4;
- }
- if (has_turnplate_angle_limit_clockwise()) {
- // required float turnplate_angle_limit_clockwise = 22;
- total_size += 2 + 4;
- }
- return total_size;
- }
- size_t Region::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.Region)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (((_has_bits_[0] & 0x001fffff) ^ 0x001fffff) == 0) { // All required fields are present.
- // required float minx = 1;
- total_size += 1 + 4;
- // required float maxx = 2;
- total_size += 1 + 4;
- // required float miny = 3;
- total_size += 1 + 4;
- // required float maxy = 4;
- total_size += 1 + 4;
- // required float minz = 5;
- total_size += 1 + 4;
- // required float maxz = 6;
- total_size += 1 + 4;
- // required int32 region_id = 7;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->region_id());
- // required float turnplate_cx = 9;
- total_size += 1 + 4;
- // required float turnplate_cy = 10;
- total_size += 1 + 4;
- // required float border_minx = 11;
- total_size += 1 + 4;
- // required float border_maxx = 12;
- total_size += 1 + 4;
- // required float plc_offsetx = 13;
- total_size += 1 + 4;
- // required float plc_offsety = 14;
- total_size += 1 + 4;
- // required float plc_offset_degree = 15;
- total_size += 1 + 4;
- // required float plc_border_miny = 16;
- total_size += 2 + 4;
- // required float car_min_width = 17;
- total_size += 2 + 4;
- // required float car_max_width = 18;
- total_size += 2 + 4;
- // required float car_min_wheelbase = 19;
- total_size += 2 + 4;
- // required float car_max_wheelbase = 20;
- total_size += 2 + 4;
- // required float turnplate_angle_limit_anti_clockwise = 21;
- total_size += 2 + 4;
- // required float turnplate_angle_limit_clockwise = 22;
- total_size += 2 + 4;
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- // repeated .wj.lidarExtrinsic lidar_exts = 8;
- {
- unsigned int count = static_cast<unsigned int>(this->lidar_exts_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->lidar_exts(static_cast<int>(i)));
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Region::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.Region)
- GOOGLE_DCHECK_NE(&from, this);
- const Region* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Region>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.Region)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.Region)
- MergeFrom(*source);
- }
- }
- void Region::MergeFrom(const Region& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.Region)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- lidar_exts_.MergeFrom(from.lidar_exts_);
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 255u) {
- if (cached_has_bits & 0x00000001u) {
- minx_ = from.minx_;
- }
- if (cached_has_bits & 0x00000002u) {
- maxx_ = from.maxx_;
- }
- if (cached_has_bits & 0x00000004u) {
- miny_ = from.miny_;
- }
- if (cached_has_bits & 0x00000008u) {
- maxy_ = from.maxy_;
- }
- if (cached_has_bits & 0x00000010u) {
- minz_ = from.minz_;
- }
- if (cached_has_bits & 0x00000020u) {
- maxz_ = from.maxz_;
- }
- if (cached_has_bits & 0x00000040u) {
- region_id_ = from.region_id_;
- }
- if (cached_has_bits & 0x00000080u) {
- turnplate_cx_ = from.turnplate_cx_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- if (cached_has_bits & 65280u) {
- if (cached_has_bits & 0x00000100u) {
- turnplate_cy_ = from.turnplate_cy_;
- }
- if (cached_has_bits & 0x00000200u) {
- border_minx_ = from.border_minx_;
- }
- if (cached_has_bits & 0x00000400u) {
- border_maxx_ = from.border_maxx_;
- }
- if (cached_has_bits & 0x00000800u) {
- plc_offsetx_ = from.plc_offsetx_;
- }
- if (cached_has_bits & 0x00001000u) {
- plc_offsety_ = from.plc_offsety_;
- }
- if (cached_has_bits & 0x00002000u) {
- plc_offset_degree_ = from.plc_offset_degree_;
- }
- if (cached_has_bits & 0x00004000u) {
- plc_border_miny_ = from.plc_border_miny_;
- }
- if (cached_has_bits & 0x00008000u) {
- car_min_width_ = from.car_min_width_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- if (cached_has_bits & 2031616u) {
- if (cached_has_bits & 0x00010000u) {
- car_max_width_ = from.car_max_width_;
- }
- if (cached_has_bits & 0x00020000u) {
- car_min_wheelbase_ = from.car_min_wheelbase_;
- }
- if (cached_has_bits & 0x00040000u) {
- car_max_wheelbase_ = from.car_max_wheelbase_;
- }
- if (cached_has_bits & 0x00080000u) {
- turnplate_angle_limit_anti_clockwise_ = from.turnplate_angle_limit_anti_clockwise_;
- }
- if (cached_has_bits & 0x00100000u) {
- turnplate_angle_limit_clockwise_ = from.turnplate_angle_limit_clockwise_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Region::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.Region)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Region::CopyFrom(const Region& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.Region)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Region::IsInitialized() const {
- if ((_has_bits_[0] & 0x001fffff) != 0x001fffff) return false;
- if (!::google::protobuf::internal::AllAreInitialized(this->lidar_exts())) return false;
- return true;
- }
- void Region::Swap(Region* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Region::InternalSwap(Region* other) {
- using std::swap;
- CastToBase(&lidar_exts_)->InternalSwap(CastToBase(&other->lidar_exts_));
- swap(minx_, other->minx_);
- swap(maxx_, other->maxx_);
- swap(miny_, other->miny_);
- swap(maxy_, other->maxy_);
- swap(minz_, other->minz_);
- swap(maxz_, other->maxz_);
- swap(region_id_, other->region_id_);
- swap(turnplate_cx_, other->turnplate_cx_);
- swap(turnplate_cy_, other->turnplate_cy_);
- swap(border_minx_, other->border_minx_);
- swap(border_maxx_, other->border_maxx_);
- swap(plc_offsetx_, other->plc_offsetx_);
- swap(plc_offsety_, other->plc_offsety_);
- swap(plc_offset_degree_, other->plc_offset_degree_);
- swap(plc_border_miny_, other->plc_border_miny_);
- swap(car_min_width_, other->car_min_width_);
- swap(car_max_width_, other->car_max_width_);
- swap(car_min_wheelbase_, other->car_min_wheelbase_);
- swap(car_max_wheelbase_, other->car_max_wheelbase_);
- swap(turnplate_angle_limit_anti_clockwise_, other->turnplate_angle_limit_anti_clockwise_);
- swap(turnplate_angle_limit_clockwise_, other->turnplate_angle_limit_clockwise_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Region::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void wjLidarParams::InitAsDefaultInstance() {
- ::wj::_wjLidarParams_default_instance_._instance.get_mutable()->net_config_ = const_cast< ::wj::netConfig*>(
- ::wj::netConfig::internal_default_instance());
- ::wj::_wjLidarParams_default_instance_._instance.get_mutable()->transform_ = const_cast< ::wj::Transform2d*>(
- ::wj::Transform2d::internal_default_instance());
- ::wj::_wjLidarParams_default_instance_._instance.get_mutable()->scan_limit_ = const_cast< ::wj::scanLimit*>(
- ::wj::scanLimit::internal_default_instance());
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int wjLidarParams::kAngleMinFieldNumber;
- const int wjLidarParams::kAngleMaxFieldNumber;
- const int wjLidarParams::kAngleIncrementFieldNumber;
- const int wjLidarParams::kTimeIncrementFieldNumber;
- const int wjLidarParams::kRangeMinFieldNumber;
- const int wjLidarParams::kRangeMaxFieldNumber;
- const int wjLidarParams::kNetConfigFieldNumber;
- const int wjLidarParams::kTransformFieldNumber;
- const int wjLidarParams::kScanLimitFieldNumber;
- const int wjLidarParams::kLidarIdFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- wjLidarParams::wjLidarParams()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjLidarParams.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.wjLidarParams)
- }
- wjLidarParams::wjLidarParams(const wjLidarParams& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_net_config()) {
- net_config_ = new ::wj::netConfig(*from.net_config_);
- } else {
- net_config_ = NULL;
- }
- if (from.has_transform()) {
- transform_ = new ::wj::Transform2d(*from.transform_);
- } else {
- transform_ = NULL;
- }
- if (from.has_scan_limit()) {
- scan_limit_ = new ::wj::scanLimit(*from.scan_limit_);
- } else {
- scan_limit_ = NULL;
- }
- ::memcpy(&range_min_, &from.range_min_,
- static_cast<size_t>(reinterpret_cast<char*>(&time_increment_) -
- reinterpret_cast<char*>(&range_min_)) + sizeof(time_increment_));
- // @@protoc_insertion_point(copy_constructor:wj.wjLidarParams)
- }
- void wjLidarParams::SharedCtor() {
- ::memset(&net_config_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&lidar_id_) -
- reinterpret_cast<char*>(&net_config_)) + sizeof(lidar_id_));
- range_max_ = 30;
- angle_min_ = -2.3561945f;
- angle_max_ = 2.3561945f;
- angle_increment_ = 0.00582f;
- time_increment_ = 6.2e-05f;
- }
- wjLidarParams::~wjLidarParams() {
- // @@protoc_insertion_point(destructor:wj.wjLidarParams)
- SharedDtor();
- }
- void wjLidarParams::SharedDtor() {
- if (this != internal_default_instance()) delete net_config_;
- if (this != internal_default_instance()) delete transform_;
- if (this != internal_default_instance()) delete scan_limit_;
- }
- void wjLidarParams::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* wjLidarParams::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const wjLidarParams& wjLidarParams::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_wjLidarParams.base);
- return *internal_default_instance();
- }
- void wjLidarParams::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.wjLidarParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 7u) {
- if (cached_has_bits & 0x00000001u) {
- GOOGLE_DCHECK(net_config_ != NULL);
- net_config_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- GOOGLE_DCHECK(transform_ != NULL);
- transform_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- GOOGLE_DCHECK(scan_limit_ != NULL);
- scan_limit_->Clear();
- }
- }
- if (cached_has_bits & 248u) {
- ::memset(&range_min_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&lidar_id_) -
- reinterpret_cast<char*>(&range_min_)) + sizeof(lidar_id_));
- range_max_ = 30;
- angle_min_ = -2.3561945f;
- angle_max_ = 2.3561945f;
- }
- if (cached_has_bits & 768u) {
- angle_increment_ = 0.00582f;
- time_increment_ = 6.2e-05f;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool wjLidarParams::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.wjLidarParams)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional float angle_min = 1 [default = -2.3561945];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_angle_min();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &angle_min_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float angle_max = 2 [default = 2.3561945];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_angle_max();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &angle_max_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float angle_increment = 3 [default = 0.00582];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_angle_increment();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &angle_increment_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float time_increment = 4 [default = 6.2e-05];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_time_increment();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &time_increment_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 range_min = 5 [default = 0];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(40u /* 40 & 0xFF */)) {
- set_has_range_min();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &range_min_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 range_max = 6 [default = 30];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(48u /* 48 & 0xFF */)) {
- set_has_range_max();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &range_max_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required .wj.netConfig net_config = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_net_config()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required .wj.Transform2d transform = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_transform()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required .wj.scanLimit scan_limit = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_scan_limit()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // required int32 lidar_id = 10 [default = 0];
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(80u /* 80 & 0xFF */)) {
- set_has_lidar_id();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &lidar_id_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.wjLidarParams)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.wjLidarParams)
- return false;
- #undef DO_
- }
- void wjLidarParams::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.wjLidarParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float angle_min = 1 [default = -2.3561945];
- if (cached_has_bits & 0x00000040u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->angle_min(), output);
- }
- // optional float angle_max = 2 [default = 2.3561945];
- if (cached_has_bits & 0x00000080u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->angle_max(), output);
- }
- // optional float angle_increment = 3 [default = 0.00582];
- if (cached_has_bits & 0x00000100u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->angle_increment(), output);
- }
- // optional float time_increment = 4 [default = 6.2e-05];
- if (cached_has_bits & 0x00000200u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->time_increment(), output);
- }
- // optional int32 range_min = 5 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->range_min(), output);
- }
- // optional int32 range_max = 6 [default = 30];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->range_max(), output);
- }
- // required .wj.netConfig net_config = 7;
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, this->_internal_net_config(), output);
- }
- // required .wj.Transform2d transform = 8;
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, this->_internal_transform(), output);
- }
- // required .wj.scanLimit scan_limit = 9;
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 9, this->_internal_scan_limit(), output);
- }
- // required int32 lidar_id = 10 [default = 0];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(10, this->lidar_id(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.wjLidarParams)
- }
- ::google::protobuf::uint8* wjLidarParams::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.wjLidarParams)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float angle_min = 1 [default = -2.3561945];
- if (cached_has_bits & 0x00000040u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->angle_min(), target);
- }
- // optional float angle_max = 2 [default = 2.3561945];
- if (cached_has_bits & 0x00000080u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->angle_max(), target);
- }
- // optional float angle_increment = 3 [default = 0.00582];
- if (cached_has_bits & 0x00000100u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->angle_increment(), target);
- }
- // optional float time_increment = 4 [default = 6.2e-05];
- if (cached_has_bits & 0x00000200u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->time_increment(), target);
- }
- // optional int32 range_min = 5 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(5, this->range_min(), target);
- }
- // optional int32 range_max = 6 [default = 30];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(6, this->range_max(), target);
- }
- // required .wj.netConfig net_config = 7;
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 7, this->_internal_net_config(), deterministic, target);
- }
- // required .wj.Transform2d transform = 8;
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 8, this->_internal_transform(), deterministic, target);
- }
- // required .wj.scanLimit scan_limit = 9;
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 9, this->_internal_scan_limit(), deterministic, target);
- }
- // required int32 lidar_id = 10 [default = 0];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(10, this->lidar_id(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.wjLidarParams)
- return target;
- }
- size_t wjLidarParams::RequiredFieldsByteSizeFallback() const {
- // @@protoc_insertion_point(required_fields_byte_size_fallback_start:wj.wjLidarParams)
- size_t total_size = 0;
- if (has_net_config()) {
- // required .wj.netConfig net_config = 7;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *net_config_);
- }
- if (has_transform()) {
- // required .wj.Transform2d transform = 8;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *transform_);
- }
- if (has_scan_limit()) {
- // required .wj.scanLimit scan_limit = 9;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *scan_limit_);
- }
- if (has_lidar_id()) {
- // required int32 lidar_id = 10 [default = 0];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->lidar_id());
- }
- return total_size;
- }
- size_t wjLidarParams::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.wjLidarParams)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (((_has_bits_[0] & 0x00000017) ^ 0x00000017) == 0) { // All required fields are present.
- // required .wj.netConfig net_config = 7;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *net_config_);
- // required .wj.Transform2d transform = 8;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *transform_);
- // required .wj.scanLimit scan_limit = 9;
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *scan_limit_);
- // required int32 lidar_id = 10 [default = 0];
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->lidar_id());
- } else {
- total_size += RequiredFieldsByteSizeFallback();
- }
- // optional int32 range_min = 5 [default = 0];
- if (has_range_min()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->range_min());
- }
- if (_has_bits_[0 / 32] & 224u) {
- // optional int32 range_max = 6 [default = 30];
- if (has_range_max()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->range_max());
- }
- // optional float angle_min = 1 [default = -2.3561945];
- if (has_angle_min()) {
- total_size += 1 + 4;
- }
- // optional float angle_max = 2 [default = 2.3561945];
- if (has_angle_max()) {
- total_size += 1 + 4;
- }
- }
- if (_has_bits_[8 / 32] & 768u) {
- // optional float angle_increment = 3 [default = 0.00582];
- if (has_angle_increment()) {
- total_size += 1 + 4;
- }
- // optional float time_increment = 4 [default = 6.2e-05];
- if (has_time_increment()) {
- total_size += 1 + 4;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void wjLidarParams::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.wjLidarParams)
- GOOGLE_DCHECK_NE(&from, this);
- const wjLidarParams* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const wjLidarParams>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.wjLidarParams)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.wjLidarParams)
- MergeFrom(*source);
- }
- }
- void wjLidarParams::MergeFrom(const wjLidarParams& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.wjLidarParams)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 255u) {
- if (cached_has_bits & 0x00000001u) {
- mutable_net_config()->::wj::netConfig::MergeFrom(from.net_config());
- }
- if (cached_has_bits & 0x00000002u) {
- mutable_transform()->::wj::Transform2d::MergeFrom(from.transform());
- }
- if (cached_has_bits & 0x00000004u) {
- mutable_scan_limit()->::wj::scanLimit::MergeFrom(from.scan_limit());
- }
- if (cached_has_bits & 0x00000008u) {
- range_min_ = from.range_min_;
- }
- if (cached_has_bits & 0x00000010u) {
- lidar_id_ = from.lidar_id_;
- }
- if (cached_has_bits & 0x00000020u) {
- range_max_ = from.range_max_;
- }
- if (cached_has_bits & 0x00000040u) {
- angle_min_ = from.angle_min_;
- }
- if (cached_has_bits & 0x00000080u) {
- angle_max_ = from.angle_max_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- if (cached_has_bits & 768u) {
- if (cached_has_bits & 0x00000100u) {
- angle_increment_ = from.angle_increment_;
- }
- if (cached_has_bits & 0x00000200u) {
- time_increment_ = from.time_increment_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void wjLidarParams::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.wjLidarParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void wjLidarParams::CopyFrom(const wjLidarParams& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.wjLidarParams)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool wjLidarParams::IsInitialized() const {
- if ((_has_bits_[0] & 0x00000017) != 0x00000017) return false;
- return true;
- }
- void wjLidarParams::Swap(wjLidarParams* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void wjLidarParams::InternalSwap(wjLidarParams* other) {
- using std::swap;
- swap(net_config_, other->net_config_);
- swap(transform_, other->transform_);
- swap(scan_limit_, other->scan_limit_);
- swap(range_min_, other->range_min_);
- swap(lidar_id_, other->lidar_id_);
- swap(range_max_, other->range_max_);
- swap(angle_min_, other->angle_min_);
- swap(angle_max_, other->angle_max_);
- swap(angle_increment_, other->angle_increment_);
- swap(time_increment_, other->time_increment_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata wjLidarParams::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void netConfig::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int netConfig::kIpAddressFieldNumber;
- const int netConfig::kPortFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- netConfig::netConfig()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_netConfig.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.netConfig)
- }
- netConfig::netConfig(const netConfig& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ip_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- if (from.has_ip_address()) {
- ip_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_address_);
- }
- port_ = from.port_;
- // @@protoc_insertion_point(copy_constructor:wj.netConfig)
- }
- void netConfig::SharedCtor() {
- ip_address_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- port_ = 8000;
- }
- netConfig::~netConfig() {
- // @@protoc_insertion_point(destructor:wj.netConfig)
- SharedDtor();
- }
- void netConfig::SharedDtor() {
- ip_address_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- void netConfig::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* netConfig::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const netConfig& netConfig::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_netConfig.base);
- return *internal_default_instance();
- }
- void netConfig::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.netConfig)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 3u) {
- if (cached_has_bits & 0x00000001u) {
- ip_address_.ClearNonDefaultToEmptyNoArena();
- }
- port_ = 8000;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool netConfig::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.netConfig)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional string ip_address = 1 [default = ""];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadString(
- input, this->mutable_ip_address()));
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->ip_address().data(), static_cast<int>(this->ip_address().length()),
- ::google::protobuf::internal::WireFormat::PARSE,
- "wj.netConfig.ip_address");
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional int32 port = 2 [default = 8000];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(16u /* 16 & 0xFF */)) {
- set_has_port();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
- input, &port_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.netConfig)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.netConfig)
- return false;
- #undef DO_
- }
- void netConfig::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.netConfig)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string ip_address = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->ip_address().data(), static_cast<int>(this->ip_address().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.netConfig.ip_address");
- ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
- 1, this->ip_address(), output);
- }
- // optional int32 port = 2 [default = 8000];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->port(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.netConfig)
- }
- ::google::protobuf::uint8* netConfig::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.netConfig)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional string ip_address = 1 [default = ""];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField(
- this->ip_address().data(), static_cast<int>(this->ip_address().length()),
- ::google::protobuf::internal::WireFormat::SERIALIZE,
- "wj.netConfig.ip_address");
- target =
- ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
- 1, this->ip_address(), target);
- }
- // optional int32 port = 2 [default = 8000];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->port(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.netConfig)
- return target;
- }
- size_t netConfig::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.netConfig)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 3u) {
- // optional string ip_address = 1 [default = ""];
- if (has_ip_address()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::StringSize(
- this->ip_address());
- }
- // optional int32 port = 2 [default = 8000];
- if (has_port()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::Int32Size(
- this->port());
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void netConfig::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.netConfig)
- GOOGLE_DCHECK_NE(&from, this);
- const netConfig* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const netConfig>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.netConfig)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.netConfig)
- MergeFrom(*source);
- }
- }
- void netConfig::MergeFrom(const netConfig& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.netConfig)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 3u) {
- if (cached_has_bits & 0x00000001u) {
- set_has_ip_address();
- ip_address_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.ip_address_);
- }
- if (cached_has_bits & 0x00000002u) {
- port_ = from.port_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void netConfig::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.netConfig)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void netConfig::CopyFrom(const netConfig& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.netConfig)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool netConfig::IsInitialized() const {
- return true;
- }
- void netConfig::Swap(netConfig* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void netConfig::InternalSwap(netConfig* other) {
- using std::swap;
- ip_address_.Swap(&other->ip_address_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- swap(port_, other->port_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata netConfig::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void Transform2d::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int Transform2d::kM00FieldNumber;
- const int Transform2d::kM01FieldNumber;
- const int Transform2d::kM02FieldNumber;
- const int Transform2d::kM10FieldNumber;
- const int Transform2d::kM11FieldNumber;
- const int Transform2d::kM12FieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- Transform2d::Transform2d()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_Transform2d.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.Transform2d)
- }
- Transform2d::Transform2d(const Transform2d& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&m01_, &from.m01_,
- static_cast<size_t>(reinterpret_cast<char*>(&m11_) -
- reinterpret_cast<char*>(&m01_)) + sizeof(m11_));
- // @@protoc_insertion_point(copy_constructor:wj.Transform2d)
- }
- void Transform2d::SharedCtor() {
- ::memset(&m01_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&m12_) -
- reinterpret_cast<char*>(&m01_)) + sizeof(m12_));
- m00_ = 1;
- m11_ = 1;
- }
- Transform2d::~Transform2d() {
- // @@protoc_insertion_point(destructor:wj.Transform2d)
- SharedDtor();
- }
- void Transform2d::SharedDtor() {
- }
- void Transform2d::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* Transform2d::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const Transform2d& Transform2d::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_Transform2d.base);
- return *internal_default_instance();
- }
- void Transform2d::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.Transform2d)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 63u) {
- ::memset(&m01_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&m12_) -
- reinterpret_cast<char*>(&m01_)) + sizeof(m12_));
- m00_ = 1;
- m11_ = 1;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool Transform2d::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.Transform2d)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional float m00 = 1 [default = 1];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_m00();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &m00_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float m01 = 2 [default = 0];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_m01();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &m01_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float m02 = 3 [default = 0];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_m02();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &m02_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float m10 = 4 [default = 0];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_m10();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &m10_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float m11 = 5 [default = 1];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
- set_has_m11();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &m11_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float m12 = 6 [default = 0];
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(53u /* 53 & 0xFF */)) {
- set_has_m12();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &m12_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.Transform2d)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.Transform2d)
- return false;
- #undef DO_
- }
- void Transform2d::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.Transform2d)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float m00 = 1 [default = 1];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->m00(), output);
- }
- // optional float m01 = 2 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->m01(), output);
- }
- // optional float m02 = 3 [default = 0];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->m02(), output);
- }
- // optional float m10 = 4 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->m10(), output);
- }
- // optional float m11 = 5 [default = 1];
- if (cached_has_bits & 0x00000020u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->m11(), output);
- }
- // optional float m12 = 6 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(6, this->m12(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.Transform2d)
- }
- ::google::protobuf::uint8* Transform2d::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.Transform2d)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float m00 = 1 [default = 1];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->m00(), target);
- }
- // optional float m01 = 2 [default = 0];
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->m01(), target);
- }
- // optional float m02 = 3 [default = 0];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->m02(), target);
- }
- // optional float m10 = 4 [default = 0];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->m10(), target);
- }
- // optional float m11 = 5 [default = 1];
- if (cached_has_bits & 0x00000020u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->m11(), target);
- }
- // optional float m12 = 6 [default = 0];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(6, this->m12(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.Transform2d)
- return target;
- }
- size_t Transform2d::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.Transform2d)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 63u) {
- // optional float m01 = 2 [default = 0];
- if (has_m01()) {
- total_size += 1 + 4;
- }
- // optional float m02 = 3 [default = 0];
- if (has_m02()) {
- total_size += 1 + 4;
- }
- // optional float m10 = 4 [default = 0];
- if (has_m10()) {
- total_size += 1 + 4;
- }
- // optional float m12 = 6 [default = 0];
- if (has_m12()) {
- total_size += 1 + 4;
- }
- // optional float m00 = 1 [default = 1];
- if (has_m00()) {
- total_size += 1 + 4;
- }
- // optional float m11 = 5 [default = 1];
- if (has_m11()) {
- total_size += 1 + 4;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void Transform2d::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.Transform2d)
- GOOGLE_DCHECK_NE(&from, this);
- const Transform2d* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const Transform2d>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.Transform2d)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.Transform2d)
- MergeFrom(*source);
- }
- }
- void Transform2d::MergeFrom(const Transform2d& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.Transform2d)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 63u) {
- if (cached_has_bits & 0x00000001u) {
- m01_ = from.m01_;
- }
- if (cached_has_bits & 0x00000002u) {
- m02_ = from.m02_;
- }
- if (cached_has_bits & 0x00000004u) {
- m10_ = from.m10_;
- }
- if (cached_has_bits & 0x00000008u) {
- m12_ = from.m12_;
- }
- if (cached_has_bits & 0x00000010u) {
- m00_ = from.m00_;
- }
- if (cached_has_bits & 0x00000020u) {
- m11_ = from.m11_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void Transform2d::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.Transform2d)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void Transform2d::CopyFrom(const Transform2d& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.Transform2d)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Transform2d::IsInitialized() const {
- return true;
- }
- void Transform2d::Swap(Transform2d* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void Transform2d::InternalSwap(Transform2d* other) {
- using std::swap;
- swap(m01_, other->m01_);
- swap(m02_, other->m02_);
- swap(m10_, other->m10_);
- swap(m12_, other->m12_);
- swap(m00_, other->m00_);
- swap(m11_, other->m11_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata Transform2d::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void scanLimit::InitAsDefaultInstance() {
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int scanLimit::kDistLimitFieldNumber;
- const int scanLimit::kMinxFieldNumber;
- const int scanLimit::kMaxxFieldNumber;
- const int scanLimit::kMinyFieldNumber;
- const int scanLimit::kMaxyFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- scanLimit::scanLimit()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_wj_5flidar_5fconf_2eproto::scc_info_scanLimit.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:wj.scanLimit)
- }
- scanLimit::scanLimit(const scanLimit& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- _has_bits_(from._has_bits_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::memcpy(&maxy_, &from.maxy_,
- static_cast<size_t>(reinterpret_cast<char*>(&miny_) -
- reinterpret_cast<char*>(&maxy_)) + sizeof(miny_));
- // @@protoc_insertion_point(copy_constructor:wj.scanLimit)
- }
- void scanLimit::SharedCtor() {
- maxy_ = 3.5f;
- dist_limit_ = 8;
- minx_ = -6;
- maxx_ = -0.2f;
- miny_ = -3.5f;
- }
- scanLimit::~scanLimit() {
- // @@protoc_insertion_point(destructor:wj.scanLimit)
- SharedDtor();
- }
- void scanLimit::SharedDtor() {
- }
- void scanLimit::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* scanLimit::descriptor() {
- ::protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const scanLimit& scanLimit::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_wj_5flidar_5fconf_2eproto::scc_info_scanLimit.base);
- return *internal_default_instance();
- }
- void scanLimit::Clear() {
- // @@protoc_insertion_point(message_clear_start:wj.scanLimit)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- if (cached_has_bits & 31u) {
- maxy_ = 3.5f;
- dist_limit_ = 8;
- minx_ = -6;
- maxx_ = -0.2f;
- miny_ = -3.5f;
- }
- _has_bits_.Clear();
- _internal_metadata_.Clear();
- }
- bool scanLimit::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:wj.scanLimit)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // optional float dist_limit = 1 [default = 8];
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(13u /* 13 & 0xFF */)) {
- set_has_dist_limit();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &dist_limit_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float minx = 2 [default = -6];
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(21u /* 21 & 0xFF */)) {
- set_has_minx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &minx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float maxx = 3 [default = -0.2];
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(29u /* 29 & 0xFF */)) {
- set_has_maxx();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &maxx_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float miny = 4 [default = -3.5];
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(37u /* 37 & 0xFF */)) {
- set_has_miny();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &miny_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // optional float maxy = 5 [default = 3.5];
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(45u /* 45 & 0xFF */)) {
- set_has_maxy();
- DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
- float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
- input, &maxy_)));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:wj.scanLimit)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:wj.scanLimit)
- return false;
- #undef DO_
- }
- void scanLimit::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:wj.scanLimit)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float dist_limit = 1 [default = 8];
- if (cached_has_bits & 0x00000002u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->dist_limit(), output);
- }
- // optional float minx = 2 [default = -6];
- if (cached_has_bits & 0x00000004u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(2, this->minx(), output);
- }
- // optional float maxx = 3 [default = -0.2];
- if (cached_has_bits & 0x00000008u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(3, this->maxx(), output);
- }
- // optional float miny = 4 [default = -3.5];
- if (cached_has_bits & 0x00000010u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->miny(), output);
- }
- // optional float maxy = 5 [default = 3.5];
- if (cached_has_bits & 0x00000001u) {
- ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->maxy(), output);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- _internal_metadata_.unknown_fields(), output);
- }
- // @@protoc_insertion_point(serialize_end:wj.scanLimit)
- }
- ::google::protobuf::uint8* scanLimit::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:wj.scanLimit)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = _has_bits_[0];
- // optional float dist_limit = 1 [default = 8];
- if (cached_has_bits & 0x00000002u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1, this->dist_limit(), target);
- }
- // optional float minx = 2 [default = -6];
- if (cached_has_bits & 0x00000004u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(2, this->minx(), target);
- }
- // optional float maxx = 3 [default = -0.2];
- if (cached_has_bits & 0x00000008u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(3, this->maxx(), target);
- }
- // optional float miny = 4 [default = -3.5];
- if (cached_has_bits & 0x00000010u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->miny(), target);
- }
- // optional float maxy = 5 [default = 3.5];
- if (cached_has_bits & 0x00000001u) {
- target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->maxy(), target);
- }
- if (_internal_metadata_.have_unknown_fields()) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields(), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:wj.scanLimit)
- return target;
- }
- size_t scanLimit::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:wj.scanLimit)
- size_t total_size = 0;
- if (_internal_metadata_.have_unknown_fields()) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- _internal_metadata_.unknown_fields());
- }
- if (_has_bits_[0 / 32] & 31u) {
- // optional float maxy = 5 [default = 3.5];
- if (has_maxy()) {
- total_size += 1 + 4;
- }
- // optional float dist_limit = 1 [default = 8];
- if (has_dist_limit()) {
- total_size += 1 + 4;
- }
- // optional float minx = 2 [default = -6];
- if (has_minx()) {
- total_size += 1 + 4;
- }
- // optional float maxx = 3 [default = -0.2];
- if (has_maxx()) {
- total_size += 1 + 4;
- }
- // optional float miny = 4 [default = -3.5];
- if (has_miny()) {
- total_size += 1 + 4;
- }
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void scanLimit::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:wj.scanLimit)
- GOOGLE_DCHECK_NE(&from, this);
- const scanLimit* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const scanLimit>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:wj.scanLimit)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:wj.scanLimit)
- MergeFrom(*source);
- }
- }
- void scanLimit::MergeFrom(const scanLimit& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:wj.scanLimit)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- cached_has_bits = from._has_bits_[0];
- if (cached_has_bits & 31u) {
- if (cached_has_bits & 0x00000001u) {
- maxy_ = from.maxy_;
- }
- if (cached_has_bits & 0x00000002u) {
- dist_limit_ = from.dist_limit_;
- }
- if (cached_has_bits & 0x00000004u) {
- minx_ = from.minx_;
- }
- if (cached_has_bits & 0x00000008u) {
- maxx_ = from.maxx_;
- }
- if (cached_has_bits & 0x00000010u) {
- miny_ = from.miny_;
- }
- _has_bits_[0] |= cached_has_bits;
- }
- }
- void scanLimit::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:wj.scanLimit)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void scanLimit::CopyFrom(const scanLimit& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:wj.scanLimit)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool scanLimit::IsInitialized() const {
- return true;
- }
- void scanLimit::Swap(scanLimit* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void scanLimit::InternalSwap(scanLimit* other) {
- using std::swap;
- swap(maxy_, other->maxy_);
- swap(dist_limit_, other->dist_limit_);
- swap(minx_, other->minx_);
- swap(maxx_, other->maxx_);
- swap(miny_, other->miny_);
- swap(_has_bits_[0], other->_has_bits_[0]);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata scanLimit::GetMetadata() const {
- protobuf_wj_5flidar_5fconf_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_wj_5flidar_5fconf_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace wj
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::wjManagerParams* Arena::CreateMaybeMessage< ::wj::wjManagerParams >(Arena* arena) {
- return Arena::CreateInternal< ::wj::wjManagerParams >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::CalibParameter* Arena::CreateMaybeMessage< ::wj::CalibParameter >(Arena* arena) {
- return Arena::CreateInternal< ::wj::CalibParameter >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::lidarExtrinsic* Arena::CreateMaybeMessage< ::wj::lidarExtrinsic >(Arena* arena) {
- return Arena::CreateInternal< ::wj::lidarExtrinsic >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::Region* Arena::CreateMaybeMessage< ::wj::Region >(Arena* arena) {
- return Arena::CreateInternal< ::wj::Region >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::wjLidarParams* Arena::CreateMaybeMessage< ::wj::wjLidarParams >(Arena* arena) {
- return Arena::CreateInternal< ::wj::wjLidarParams >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::netConfig* Arena::CreateMaybeMessage< ::wj::netConfig >(Arena* arena) {
- return Arena::CreateInternal< ::wj::netConfig >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::Transform2d* Arena::CreateMaybeMessage< ::wj::Transform2d >(Arena* arena) {
- return Arena::CreateInternal< ::wj::Transform2d >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::wj::scanLimit* Arena::CreateMaybeMessage< ::wj::scanLimit >(Arena* arena) {
- return Arena::CreateInternal< ::wj::scanLimit >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|