message.pb.cc 166 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: message.proto
  3. #include "message.pb.h"
  4. #include <algorithm>
  5. #include "google/protobuf/io/coded_stream.h"
  6. #include "google/protobuf/extension_set.h"
  7. #include "google/protobuf/wire_format_lite.h"
  8. #include "google/protobuf/descriptor.h"
  9. #include "google/protobuf/generated_message_reflection.h"
  10. #include "google/protobuf/reflection_ops.h"
  11. #include "google/protobuf/wire_format.h"
  12. // @@protoc_insertion_point(includes)
  13. // Must be included last.
  14. #include "google/protobuf/port_def.inc"
  15. PROTOBUF_PRAGMA_INIT_SEG
  16. namespace _pb = ::PROTOBUF_NAMESPACE_ID;
  17. namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
  18. namespace NavMessage {
  19. template <typename>
  20. PROTOBUF_CONSTEXPR LidarOdomStatu::LidarOdomStatu(
  21. ::_pbi::ConstantInitialized): _impl_{
  22. /*decltype(_impl_.x_)*/ 0
  23. , /*decltype(_impl_.y_)*/ 0
  24. , /*decltype(_impl_.theta_)*/ 0
  25. , /*decltype(_impl_.v_)*/ 0
  26. , /*decltype(_impl_.vth_)*/ 0
  27. , /*decltype(_impl_._cached_size_)*/{}} {}
  28. struct LidarOdomStatuDefaultTypeInternal {
  29. PROTOBUF_CONSTEXPR LidarOdomStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  30. ~LidarOdomStatuDefaultTypeInternal() {}
  31. union {
  32. LidarOdomStatu _instance;
  33. };
  34. };
  35. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  36. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LidarOdomStatuDefaultTypeInternal _LidarOdomStatu_default_instance_;
  37. template <typename>
  38. PROTOBUF_CONSTEXPR AgvStatu::AgvStatu(
  39. ::_pbi::ConstantInitialized): _impl_{
  40. /*decltype(_impl_.v_)*/ 0
  41. , /*decltype(_impl_.w_)*/ 0
  42. , /*decltype(_impl_.clamp_)*/ 0
  43. , /*decltype(_impl_.clamp_other_)*/ 0
  44. , /*decltype(_impl_.lifter_)*/ 0
  45. , /*decltype(_impl_.lifter_other_)*/ 0
  46. , /*decltype(_impl_._cached_size_)*/{}} {}
  47. struct AgvStatuDefaultTypeInternal {
  48. PROTOBUF_CONSTEXPR AgvStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  49. ~AgvStatuDefaultTypeInternal() {}
  50. union {
  51. AgvStatu _instance;
  52. };
  53. };
  54. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  55. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AgvStatuDefaultTypeInternal _AgvStatu_default_instance_;
  56. template <typename>
  57. PROTOBUF_CONSTEXPR ToAgvCmd::ToAgvCmd(
  58. ::_pbi::ConstantInitialized): _impl_{
  59. /*decltype(_impl_.h1_)*/ 0
  60. , /*decltype(_impl_.m1_)*/ 0
  61. , /*decltype(_impl_.t1_)*/ 0
  62. , /*decltype(_impl_.v1_)*/ 0
  63. , /*decltype(_impl_.w1_)*/ 0
  64. , /*decltype(_impl_.v2_)*/ 0
  65. , /*decltype(_impl_.w2_)*/ 0
  66. , /*decltype(_impl_.v3_)*/ 0
  67. , /*decltype(_impl_.w3_)*/ 0
  68. , /*decltype(_impl_.l1_)*/ 0
  69. , /*decltype(_impl_.p1_)*/ 0
  70. , /*decltype(_impl_.d1_)*/ 0
  71. , /*decltype(_impl_.end_)*/ 0
  72. , /*decltype(_impl_._cached_size_)*/{}} {}
  73. struct ToAgvCmdDefaultTypeInternal {
  74. PROTOBUF_CONSTEXPR ToAgvCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  75. ~ToAgvCmdDefaultTypeInternal() {}
  76. union {
  77. ToAgvCmd _instance;
  78. };
  79. };
  80. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  81. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ToAgvCmdDefaultTypeInternal _ToAgvCmd_default_instance_;
  82. template <typename>
  83. PROTOBUF_CONSTEXPR Pose2d::Pose2d(
  84. ::_pbi::ConstantInitialized): _impl_{
  85. /*decltype(_impl_.x_)*/ 0
  86. , /*decltype(_impl_.y_)*/ 0
  87. , /*decltype(_impl_.theta_)*/ 0
  88. , /*decltype(_impl_._cached_size_)*/{}} {}
  89. struct Pose2dDefaultTypeInternal {
  90. PROTOBUF_CONSTEXPR Pose2dDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  91. ~Pose2dDefaultTypeInternal() {}
  92. union {
  93. Pose2d _instance;
  94. };
  95. };
  96. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  97. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Pose2dDefaultTypeInternal _Pose2d_default_instance_;
  98. template <typename>
  99. PROTOBUF_CONSTEXPR PathNode::PathNode(
  100. ::_pbi::ConstantInitialized): _impl_{
  101. /*decltype(_impl_.id_)*/ {
  102. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  103. }
  104. , /*decltype(_impl_.x_)*/ 0
  105. , /*decltype(_impl_.y_)*/ 0
  106. , /*decltype(_impl_.l_)*/ 0
  107. , /*decltype(_impl_.w_)*/ 0
  108. , /*decltype(_impl_.theta_)*/ 0
  109. , /*decltype(_impl_._cached_size_)*/{}} {}
  110. struct PathNodeDefaultTypeInternal {
  111. PROTOBUF_CONSTEXPR PathNodeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  112. ~PathNodeDefaultTypeInternal() {}
  113. union {
  114. PathNode _instance;
  115. };
  116. };
  117. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  118. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PathNodeDefaultTypeInternal _PathNode_default_instance_;
  119. template <typename>
  120. PROTOBUF_CONSTEXPR Trajectory::Trajectory(
  121. ::_pbi::ConstantInitialized): _impl_{
  122. /*decltype(_impl_.poses_)*/{}
  123. , /*decltype(_impl_._cached_size_)*/{}} {}
  124. struct TrajectoryDefaultTypeInternal {
  125. PROTOBUF_CONSTEXPR TrajectoryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  126. ~TrajectoryDefaultTypeInternal() {}
  127. union {
  128. Trajectory _instance;
  129. };
  130. };
  131. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  132. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrajectoryDefaultTypeInternal _Trajectory_default_instance_;
  133. template <typename>
  134. PROTOBUF_CONSTEXPR NewAction::NewAction(
  135. ::_pbi::ConstantInitialized): _impl_{
  136. /*decltype(_impl_._has_bits_)*/{}
  137. , /*decltype(_impl_._cached_size_)*/{}
  138. , /*decltype(_impl_.pathnodes_)*/{}
  139. , /*decltype(_impl_.spacenode_)*/nullptr
  140. , /*decltype(_impl_.passnode_)*/nullptr
  141. , /*decltype(_impl_.streetnode_)*/nullptr
  142. , /*decltype(_impl_.type_)*/ 0
  143. , /*decltype(_impl_.wheelbase_)*/ 0
  144. , /*decltype(_impl_.changedmode_)*/ 0
  145. } {}
  146. struct NewActionDefaultTypeInternal {
  147. PROTOBUF_CONSTEXPR NewActionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  148. ~NewActionDefaultTypeInternal() {}
  149. union {
  150. NewAction _instance;
  151. };
  152. };
  153. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  154. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewActionDefaultTypeInternal _NewAction_default_instance_;
  155. template <typename>
  156. PROTOBUF_CONSTEXPR NavCmd::NavCmd(
  157. ::_pbi::ConstantInitialized): _impl_{
  158. /*decltype(_impl_.newactions_)*/{}
  159. , /*decltype(_impl_.key_)*/ {
  160. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  161. }
  162. , /*decltype(_impl_.action_)*/ 0
  163. , /*decltype(_impl_._cached_size_)*/{}} {}
  164. struct NavCmdDefaultTypeInternal {
  165. PROTOBUF_CONSTEXPR NavCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  166. ~NavCmdDefaultTypeInternal() {}
  167. union {
  168. NavCmd _instance;
  169. };
  170. };
  171. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  172. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavCmdDefaultTypeInternal _NavCmd_default_instance_;
  173. template <typename>
  174. PROTOBUF_CONSTEXPR NavResponse::NavResponse(
  175. ::_pbi::ConstantInitialized): _impl_{
  176. /*decltype(_impl_.info_)*/ {
  177. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  178. }
  179. , /*decltype(_impl_.ret_)*/ 0
  180. , /*decltype(_impl_._cached_size_)*/{}} {}
  181. struct NavResponseDefaultTypeInternal {
  182. PROTOBUF_CONSTEXPR NavResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  183. ~NavResponseDefaultTypeInternal() {}
  184. union {
  185. NavResponse _instance;
  186. };
  187. };
  188. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  189. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavResponseDefaultTypeInternal _NavResponse_default_instance_;
  190. template <typename>
  191. PROTOBUF_CONSTEXPR ManualCmd::ManualCmd(
  192. ::_pbi::ConstantInitialized): _impl_{
  193. /*decltype(_impl_.key_)*/ {
  194. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  195. }
  196. , /*decltype(_impl_.operation_type_)*/ 0
  197. , /*decltype(_impl_.velocity_)*/ 0
  198. , /*decltype(_impl_._cached_size_)*/{}} {}
  199. struct ManualCmdDefaultTypeInternal {
  200. PROTOBUF_CONSTEXPR ManualCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  201. ~ManualCmdDefaultTypeInternal() {}
  202. union {
  203. ManualCmd _instance;
  204. };
  205. };
  206. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  207. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ManualCmdDefaultTypeInternal _ManualCmd_default_instance_;
  208. template <typename>
  209. PROTOBUF_CONSTEXPR NavStatu::NavStatu(
  210. ::_pbi::ConstantInitialized): _impl_{
  211. /*decltype(_impl_._has_bits_)*/{}
  212. , /*decltype(_impl_._cached_size_)*/{}
  213. , /*decltype(_impl_.key_)*/ {
  214. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  215. }
  216. , /*decltype(_impl_.space_id_)*/ {
  217. &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  218. }
  219. , /*decltype(_impl_.odom_)*/nullptr
  220. , /*decltype(_impl_.selected_traj_)*/nullptr
  221. , /*decltype(_impl_.predict_traj_)*/nullptr
  222. , /*decltype(_impl_.statu_)*/ 0
  223. , /*decltype(_impl_.move_mode_)*/ 0
  224. , /*decltype(_impl_.main_agv_)*/ false
  225. , /*decltype(_impl_.in_space_)*/ false
  226. } {}
  227. struct NavStatuDefaultTypeInternal {
  228. PROTOBUF_CONSTEXPR NavStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  229. ~NavStatuDefaultTypeInternal() {}
  230. union {
  231. NavStatu _instance;
  232. };
  233. };
  234. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  235. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavStatuDefaultTypeInternal _NavStatu_default_instance_;
  236. template <typename>
  237. PROTOBUF_CONSTEXPR RobotStatu::RobotStatu(
  238. ::_pbi::ConstantInitialized): _impl_{
  239. /*decltype(_impl_._has_bits_)*/{}
  240. , /*decltype(_impl_._cached_size_)*/{}
  241. , /*decltype(_impl_.agvstatu_)*/nullptr
  242. , /*decltype(_impl_.x_)*/ 0
  243. , /*decltype(_impl_.y_)*/ 0
  244. , /*decltype(_impl_.theta_)*/ 0
  245. } {}
  246. struct RobotStatuDefaultTypeInternal {
  247. PROTOBUF_CONSTEXPR RobotStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  248. ~RobotStatuDefaultTypeInternal() {}
  249. union {
  250. RobotStatu _instance;
  251. };
  252. };
  253. PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
  254. PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotStatuDefaultTypeInternal _RobotStatu_default_instance_;
  255. } // namespace NavMessage
  256. static ::_pb::Metadata file_level_metadata_message_2eproto[12];
  257. static constexpr const ::_pb::EnumDescriptor**
  258. file_level_enum_descriptors_message_2eproto = nullptr;
  259. static constexpr const ::_pb::ServiceDescriptor**
  260. file_level_service_descriptors_message_2eproto = nullptr;
  261. const ::uint32_t TableStruct_message_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
  262. protodesc_cold) = {
  263. ~0u, // no _has_bits_
  264. PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _internal_metadata_),
  265. ~0u, // no _extensions_
  266. ~0u, // no _oneof_case_
  267. ~0u, // no _weak_field_map_
  268. ~0u, // no _inlined_string_donated_
  269. ~0u, // no _split_
  270. ~0u, // no sizeof(Split)
  271. PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.x_),
  272. PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.y_),
  273. PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.theta_),
  274. PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.v_),
  275. PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.vth_),
  276. ~0u, // no _has_bits_
  277. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _internal_metadata_),
  278. ~0u, // no _extensions_
  279. ~0u, // no _oneof_case_
  280. ~0u, // no _weak_field_map_
  281. ~0u, // no _inlined_string_donated_
  282. ~0u, // no _split_
  283. ~0u, // no sizeof(Split)
  284. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.v_),
  285. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.w_),
  286. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.clamp_),
  287. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.clamp_other_),
  288. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.lifter_),
  289. PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.lifter_other_),
  290. ~0u, // no _has_bits_
  291. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _internal_metadata_),
  292. ~0u, // no _extensions_
  293. ~0u, // no _oneof_case_
  294. ~0u, // no _weak_field_map_
  295. ~0u, // no _inlined_string_donated_
  296. ~0u, // no _split_
  297. ~0u, // no sizeof(Split)
  298. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.h1_),
  299. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.m1_),
  300. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.t1_),
  301. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.v1_),
  302. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.w1_),
  303. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.v2_),
  304. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.w2_),
  305. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.v3_),
  306. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.w3_),
  307. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.l1_),
  308. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.p1_),
  309. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.d1_),
  310. PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.end_),
  311. ~0u, // no _has_bits_
  312. PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _internal_metadata_),
  313. ~0u, // no _extensions_
  314. ~0u, // no _oneof_case_
  315. ~0u, // no _weak_field_map_
  316. ~0u, // no _inlined_string_donated_
  317. ~0u, // no _split_
  318. ~0u, // no sizeof(Split)
  319. PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.x_),
  320. PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.y_),
  321. PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.theta_),
  322. ~0u, // no _has_bits_
  323. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _internal_metadata_),
  324. ~0u, // no _extensions_
  325. ~0u, // no _oneof_case_
  326. ~0u, // no _weak_field_map_
  327. ~0u, // no _inlined_string_donated_
  328. ~0u, // no _split_
  329. ~0u, // no sizeof(Split)
  330. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.x_),
  331. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.y_),
  332. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.l_),
  333. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.w_),
  334. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.theta_),
  335. PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.id_),
  336. ~0u, // no _has_bits_
  337. PROTOBUF_FIELD_OFFSET(::NavMessage::Trajectory, _internal_metadata_),
  338. ~0u, // no _extensions_
  339. ~0u, // no _oneof_case_
  340. ~0u, // no _weak_field_map_
  341. ~0u, // no _inlined_string_donated_
  342. ~0u, // no _split_
  343. ~0u, // no sizeof(Split)
  344. PROTOBUF_FIELD_OFFSET(::NavMessage::Trajectory, _impl_.poses_),
  345. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_._has_bits_),
  346. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _internal_metadata_),
  347. ~0u, // no _extensions_
  348. ~0u, // no _oneof_case_
  349. ~0u, // no _weak_field_map_
  350. ~0u, // no _inlined_string_donated_
  351. ~0u, // no _split_
  352. ~0u, // no sizeof(Split)
  353. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.type_),
  354. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.spacenode_),
  355. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.passnode_),
  356. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.streetnode_),
  357. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.pathnodes_),
  358. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.wheelbase_),
  359. PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.changedmode_),
  360. ~0u,
  361. 0,
  362. 1,
  363. 2,
  364. ~0u,
  365. ~0u,
  366. ~0u,
  367. ~0u, // no _has_bits_
  368. PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _internal_metadata_),
  369. ~0u, // no _extensions_
  370. ~0u, // no _oneof_case_
  371. ~0u, // no _weak_field_map_
  372. ~0u, // no _inlined_string_donated_
  373. ~0u, // no _split_
  374. ~0u, // no sizeof(Split)
  375. PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _impl_.action_),
  376. PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _impl_.key_),
  377. PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _impl_.newactions_),
  378. ~0u, // no _has_bits_
  379. PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _internal_metadata_),
  380. ~0u, // no _extensions_
  381. ~0u, // no _oneof_case_
  382. ~0u, // no _weak_field_map_
  383. ~0u, // no _inlined_string_donated_
  384. ~0u, // no _split_
  385. ~0u, // no sizeof(Split)
  386. PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _impl_.ret_),
  387. PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _impl_.info_),
  388. ~0u, // no _has_bits_
  389. PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _internal_metadata_),
  390. ~0u, // no _extensions_
  391. ~0u, // no _oneof_case_
  392. ~0u, // no _weak_field_map_
  393. ~0u, // no _inlined_string_donated_
  394. ~0u, // no _split_
  395. ~0u, // no sizeof(Split)
  396. PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.key_),
  397. PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.operation_type_),
  398. PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.velocity_),
  399. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_._has_bits_),
  400. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _internal_metadata_),
  401. ~0u, // no _extensions_
  402. ~0u, // no _oneof_case_
  403. ~0u, // no _weak_field_map_
  404. ~0u, // no _inlined_string_donated_
  405. ~0u, // no _split_
  406. ~0u, // no sizeof(Split)
  407. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.statu_),
  408. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.main_agv_),
  409. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.move_mode_),
  410. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.odom_),
  411. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.key_),
  412. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.selected_traj_),
  413. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.predict_traj_),
  414. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.in_space_),
  415. PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.space_id_),
  416. ~0u,
  417. ~0u,
  418. ~0u,
  419. 0,
  420. ~0u,
  421. 1,
  422. 2,
  423. ~0u,
  424. ~0u,
  425. PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_._has_bits_),
  426. PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _internal_metadata_),
  427. ~0u, // no _extensions_
  428. ~0u, // no _oneof_case_
  429. ~0u, // no _weak_field_map_
  430. ~0u, // no _inlined_string_donated_
  431. ~0u, // no _split_
  432. ~0u, // no sizeof(Split)
  433. PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.x_),
  434. PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.y_),
  435. PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.theta_),
  436. PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.agvstatu_),
  437. ~0u,
  438. ~0u,
  439. ~0u,
  440. 0,
  441. };
  442. static const ::_pbi::MigrationSchema
  443. schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  444. { 0, -1, -1, sizeof(::NavMessage::LidarOdomStatu)},
  445. { 13, -1, -1, sizeof(::NavMessage::AgvStatu)},
  446. { 27, -1, -1, sizeof(::NavMessage::ToAgvCmd)},
  447. { 48, -1, -1, sizeof(::NavMessage::Pose2d)},
  448. { 59, -1, -1, sizeof(::NavMessage::PathNode)},
  449. { 73, -1, -1, sizeof(::NavMessage::Trajectory)},
  450. { 82, 97, -1, sizeof(::NavMessage::NewAction)},
  451. { 104, -1, -1, sizeof(::NavMessage::NavCmd)},
  452. { 115, -1, -1, sizeof(::NavMessage::NavResponse)},
  453. { 125, -1, -1, sizeof(::NavMessage::ManualCmd)},
  454. { 136, 153, -1, sizeof(::NavMessage::NavStatu)},
  455. { 162, 174, -1, sizeof(::NavMessage::RobotStatu)},
  456. };
  457. static const ::_pb::Message* const file_default_instances[] = {
  458. &::NavMessage::_LidarOdomStatu_default_instance_._instance,
  459. &::NavMessage::_AgvStatu_default_instance_._instance,
  460. &::NavMessage::_ToAgvCmd_default_instance_._instance,
  461. &::NavMessage::_Pose2d_default_instance_._instance,
  462. &::NavMessage::_PathNode_default_instance_._instance,
  463. &::NavMessage::_Trajectory_default_instance_._instance,
  464. &::NavMessage::_NewAction_default_instance_._instance,
  465. &::NavMessage::_NavCmd_default_instance_._instance,
  466. &::NavMessage::_NavResponse_default_instance_._instance,
  467. &::NavMessage::_ManualCmd_default_instance_._instance,
  468. &::NavMessage::_NavStatu_default_instance_._instance,
  469. &::NavMessage::_RobotStatu_default_instance_._instance,
  470. };
  471. const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  472. "\n\rmessage.proto\022\nNavMessage\"M\n\016LidarOdom"
  473. "Statu\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005theta\030\003 \001"
  474. "(\002\022\t\n\001v\030\004 \001(\002\022\013\n\003vth\030\005 \001(\002\"j\n\010AgvStatu\022\t"
  475. "\n\001v\030\001 \001(\002\022\t\n\001w\030\002 \001(\002\022\r\n\005clamp\030\003 \001(\005\022\023\n\013c"
  476. "lamp_other\030\004 \001(\005\022\016\n\006lifter\030\005 \001(\005\022\024\n\014lift"
  477. "er_other\030\006 \001(\005\"\247\001\n\010ToAgvCmd\022\n\n\002H1\030\001 \001(\005\022"
  478. "\n\n\002M1\030\002 \001(\005\022\n\n\002T1\030\003 \001(\005\022\n\n\002V1\030\004 \001(\002\022\n\n\002W"
  479. "1\030\005 \001(\002\022\n\n\002V2\030\006 \001(\002\022\n\n\002W2\030\007 \001(\002\022\n\n\002V3\030\010 "
  480. "\001(\002\022\n\n\002W3\030\t \001(\002\022\n\n\002L1\030\n \001(\002\022\n\n\002P1\030\013 \001(\005\022"
  481. "\n\n\002D1\030\014 \001(\002\022\013\n\003end\030\r \001(\005\"-\n\006Pose2d\022\t\n\001x\030"
  482. "\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005theta\030\003 \001(\002\"Q\n\010PathN"
  483. "ode\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001l\030\003 \001(\002\022\t\n\001"
  484. "w\030\004 \001(\002\022\r\n\005theta\030\005 \001(\002\022\n\n\002id\030\006 \001(\t\"/\n\nTr"
  485. "ajectory\022!\n\005poses\030\001 \003(\0132\022.NavMessage.Pos"
  486. "e2d\"\345\001\n\tNewAction\022\014\n\004type\030\001 \001(\005\022\'\n\tspace"
  487. "Node\030\002 \001(\0132\024.NavMessage.PathNode\022&\n\010pass"
  488. "Node\030\003 \001(\0132\024.NavMessage.PathNode\022(\n\nstre"
  489. "etNode\030\004 \001(\0132\024.NavMessage.PathNode\022\'\n\tpa"
  490. "thNodes\030\005 \003(\0132\024.NavMessage.PathNode\022\021\n\tw"
  491. "heelbase\030\006 \001(\002\022\023\n\013changedMode\030\007 \001(\005\"P\n\006N"
  492. "avCmd\022\016\n\006action\030\001 \001(\005\022\013\n\003key\030\002 \001(\t\022)\n\nne"
  493. "wActions\030\005 \003(\0132\025.NavMessage.NewAction\"(\n"
  494. "\013NavResponse\022\013\n\003ret\030\001 \001(\005\022\014\n\004info\030\002 \001(\t\""
  495. "B\n\tManualCmd\022\013\n\003key\030\001 \001(\t\022\026\n\016operation_t"
  496. "ype\030\002 \001(\005\022\020\n\010velocity\030\003 \001(\002\"\366\001\n\010NavStatu"
  497. "\022\r\n\005statu\030\001 \001(\005\022\020\n\010main_agv\030\002 \001(\010\022\021\n\tmov"
  498. "e_mode\030\003 \001(\005\022(\n\004odom\030\004 \001(\0132\032.NavMessage."
  499. "LidarOdomStatu\022\013\n\003key\030\005 \001(\t\022-\n\rselected_"
  500. "traj\030\006 \001(\0132\026.NavMessage.Trajectory\022,\n\014pr"
  501. "edict_traj\030\007 \001(\0132\026.NavMessage.Trajectory"
  502. "\022\020\n\010in_space\030\010 \001(\010\022\020\n\010space_id\030\t \001(\t\"Y\n\n"
  503. "RobotStatu\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005thet"
  504. "a\030\003 \001(\002\022&\n\010agvStatu\030\004 \001(\0132\024.NavMessage.A"
  505. "gvStatu2\302\001\n\nNavExcutor\0226\n\005Start\022\022.NavMes"
  506. "sage.NavCmd\032\027.NavMessage.NavResponse\"\000\0227"
  507. "\n\006Cancel\022\022.NavMessage.NavCmd\032\027.NavMessag"
  508. "e.NavResponse\"\000\022C\n\017ManualOperation\022\025.Nav"
  509. "Message.ManualCmd\032\027.NavMessage.NavRespon"
  510. "se\"\000b\006proto3"
  511. };
  512. static ::absl::once_flag descriptor_table_message_2eproto_once;
  513. const ::_pbi::DescriptorTable descriptor_table_message_2eproto = {
  514. false,
  515. false,
  516. 1532,
  517. descriptor_table_protodef_message_2eproto,
  518. "message.proto",
  519. &descriptor_table_message_2eproto_once,
  520. nullptr,
  521. 0,
  522. 12,
  523. schemas,
  524. file_default_instances,
  525. TableStruct_message_2eproto::offsets,
  526. file_level_metadata_message_2eproto,
  527. file_level_enum_descriptors_message_2eproto,
  528. file_level_service_descriptors_message_2eproto,
  529. };
  530. // This function exists to be marked as weak.
  531. // It can significantly speed up compilation by breaking up LLVM's SCC
  532. // in the .pb.cc translation units. Large translation units see a
  533. // reduction of more than 35% of walltime for optimized builds. Without
  534. // the weak attribute all the messages in the file, including all the
  535. // vtables and everything they use become part of the same SCC through
  536. // a cycle like:
  537. // GetMetadata -> descriptor table -> default instances ->
  538. // vtables -> GetMetadata
  539. // By adding a weak function here we break the connection from the
  540. // individual vtables back into the descriptor table.
  541. PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_message_2eproto_getter() {
  542. return &descriptor_table_message_2eproto;
  543. }
  544. // Force running AddDescriptors() at dynamic initialization time.
  545. PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
  546. static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_message_2eproto(&descriptor_table_message_2eproto);
  547. namespace NavMessage {
  548. // ===================================================================
  549. class LidarOdomStatu::_Internal {
  550. public:
  551. };
  552. LidarOdomStatu::LidarOdomStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  553. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  554. SharedCtor(arena);
  555. // @@protoc_insertion_point(arena_constructor:NavMessage.LidarOdomStatu)
  556. }
  557. LidarOdomStatu::LidarOdomStatu(const LidarOdomStatu& from)
  558. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  559. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  560. from._internal_metadata_);
  561. // @@protoc_insertion_point(copy_constructor:NavMessage.LidarOdomStatu)
  562. }
  563. inline void LidarOdomStatu::SharedCtor(::_pb::Arena* arena) {
  564. (void)arena;
  565. new (&_impl_) Impl_{
  566. decltype(_impl_.x_) { 0 }
  567. , decltype(_impl_.y_) { 0 }
  568. , decltype(_impl_.theta_) { 0 }
  569. , decltype(_impl_.v_) { 0 }
  570. , decltype(_impl_.vth_) { 0 }
  571. , /*decltype(_impl_._cached_size_)*/{}
  572. };
  573. }
  574. LidarOdomStatu::~LidarOdomStatu() {
  575. // @@protoc_insertion_point(destructor:NavMessage.LidarOdomStatu)
  576. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  577. (void)arena;
  578. return;
  579. }
  580. SharedDtor();
  581. }
  582. inline void LidarOdomStatu::SharedDtor() {
  583. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  584. }
  585. void LidarOdomStatu::SetCachedSize(int size) const {
  586. _impl_._cached_size_.Set(size);
  587. }
  588. void LidarOdomStatu::Clear() {
  589. // @@protoc_insertion_point(message_clear_start:NavMessage.LidarOdomStatu)
  590. ::uint32_t cached_has_bits = 0;
  591. // Prevent compiler warnings about cached_has_bits being unused
  592. (void) cached_has_bits;
  593. ::memset(&_impl_.x_, 0, static_cast<::size_t>(
  594. reinterpret_cast<char*>(&_impl_.vth_) -
  595. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.vth_));
  596. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  597. }
  598. const char* LidarOdomStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  599. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  600. while (!ctx->Done(&ptr)) {
  601. ::uint32_t tag;
  602. ptr = ::_pbi::ReadTag(ptr, &tag);
  603. switch (tag >> 3) {
  604. // float x = 1;
  605. case 1:
  606. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  607. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  608. ptr += sizeof(float);
  609. } else {
  610. goto handle_unusual;
  611. }
  612. continue;
  613. // float y = 2;
  614. case 2:
  615. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  616. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  617. ptr += sizeof(float);
  618. } else {
  619. goto handle_unusual;
  620. }
  621. continue;
  622. // float theta = 3;
  623. case 3:
  624. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
  625. _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  626. ptr += sizeof(float);
  627. } else {
  628. goto handle_unusual;
  629. }
  630. continue;
  631. // float v = 4;
  632. case 4:
  633. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
  634. _impl_.v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  635. ptr += sizeof(float);
  636. } else {
  637. goto handle_unusual;
  638. }
  639. continue;
  640. // float vth = 5;
  641. case 5:
  642. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
  643. _impl_.vth_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  644. ptr += sizeof(float);
  645. } else {
  646. goto handle_unusual;
  647. }
  648. continue;
  649. default:
  650. goto handle_unusual;
  651. } // switch
  652. handle_unusual:
  653. if ((tag == 0) || ((tag & 7) == 4)) {
  654. CHK_(ptr);
  655. ctx->SetLastTag(tag);
  656. goto message_done;
  657. }
  658. ptr = UnknownFieldParse(
  659. tag,
  660. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  661. ptr, ctx);
  662. CHK_(ptr != nullptr);
  663. } // while
  664. message_done:
  665. return ptr;
  666. failure:
  667. ptr = nullptr;
  668. goto message_done;
  669. #undef CHK_
  670. }
  671. ::uint8_t* LidarOdomStatu::_InternalSerialize(
  672. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  673. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.LidarOdomStatu)
  674. ::uint32_t cached_has_bits = 0;
  675. (void) cached_has_bits;
  676. // float x = 1;
  677. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  678. float tmp_x = this->_internal_x();
  679. ::uint32_t raw_x;
  680. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  681. if (raw_x != 0) {
  682. target = stream->EnsureSpace(target);
  683. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  684. 1, this->_internal_x(), target);
  685. }
  686. // float y = 2;
  687. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  688. float tmp_y = this->_internal_y();
  689. ::uint32_t raw_y;
  690. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  691. if (raw_y != 0) {
  692. target = stream->EnsureSpace(target);
  693. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  694. 2, this->_internal_y(), target);
  695. }
  696. // float theta = 3;
  697. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  698. float tmp_theta = this->_internal_theta();
  699. ::uint32_t raw_theta;
  700. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  701. if (raw_theta != 0) {
  702. target = stream->EnsureSpace(target);
  703. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  704. 3, this->_internal_theta(), target);
  705. }
  706. // float v = 4;
  707. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  708. float tmp_v = this->_internal_v();
  709. ::uint32_t raw_v;
  710. memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
  711. if (raw_v != 0) {
  712. target = stream->EnsureSpace(target);
  713. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  714. 4, this->_internal_v(), target);
  715. }
  716. // float vth = 5;
  717. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  718. float tmp_vth = this->_internal_vth();
  719. ::uint32_t raw_vth;
  720. memcpy(&raw_vth, &tmp_vth, sizeof(tmp_vth));
  721. if (raw_vth != 0) {
  722. target = stream->EnsureSpace(target);
  723. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  724. 5, this->_internal_vth(), target);
  725. }
  726. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  727. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  728. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  729. }
  730. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.LidarOdomStatu)
  731. return target;
  732. }
  733. ::size_t LidarOdomStatu::ByteSizeLong() const {
  734. // @@protoc_insertion_point(message_byte_size_start:NavMessage.LidarOdomStatu)
  735. ::size_t total_size = 0;
  736. ::uint32_t cached_has_bits = 0;
  737. // Prevent compiler warnings about cached_has_bits being unused
  738. (void) cached_has_bits;
  739. // float x = 1;
  740. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  741. float tmp_x = this->_internal_x();
  742. ::uint32_t raw_x;
  743. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  744. if (raw_x != 0) {
  745. total_size += 5;
  746. }
  747. // float y = 2;
  748. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  749. float tmp_y = this->_internal_y();
  750. ::uint32_t raw_y;
  751. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  752. if (raw_y != 0) {
  753. total_size += 5;
  754. }
  755. // float theta = 3;
  756. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  757. float tmp_theta = this->_internal_theta();
  758. ::uint32_t raw_theta;
  759. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  760. if (raw_theta != 0) {
  761. total_size += 5;
  762. }
  763. // float v = 4;
  764. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  765. float tmp_v = this->_internal_v();
  766. ::uint32_t raw_v;
  767. memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
  768. if (raw_v != 0) {
  769. total_size += 5;
  770. }
  771. // float vth = 5;
  772. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  773. float tmp_vth = this->_internal_vth();
  774. ::uint32_t raw_vth;
  775. memcpy(&raw_vth, &tmp_vth, sizeof(tmp_vth));
  776. if (raw_vth != 0) {
  777. total_size += 5;
  778. }
  779. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  780. }
  781. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LidarOdomStatu::_class_data_ = {
  782. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  783. LidarOdomStatu::MergeImpl
  784. };
  785. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LidarOdomStatu::GetClassData() const { return &_class_data_; }
  786. void LidarOdomStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  787. auto* const _this = static_cast<LidarOdomStatu*>(&to_msg);
  788. auto& from = static_cast<const LidarOdomStatu&>(from_msg);
  789. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.LidarOdomStatu)
  790. ABSL_DCHECK_NE(&from, _this);
  791. ::uint32_t cached_has_bits = 0;
  792. (void) cached_has_bits;
  793. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  794. float tmp_x = from._internal_x();
  795. ::uint32_t raw_x;
  796. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  797. if (raw_x != 0) {
  798. _this->_internal_set_x(from._internal_x());
  799. }
  800. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  801. float tmp_y = from._internal_y();
  802. ::uint32_t raw_y;
  803. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  804. if (raw_y != 0) {
  805. _this->_internal_set_y(from._internal_y());
  806. }
  807. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  808. float tmp_theta = from._internal_theta();
  809. ::uint32_t raw_theta;
  810. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  811. if (raw_theta != 0) {
  812. _this->_internal_set_theta(from._internal_theta());
  813. }
  814. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  815. float tmp_v = from._internal_v();
  816. ::uint32_t raw_v;
  817. memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
  818. if (raw_v != 0) {
  819. _this->_internal_set_v(from._internal_v());
  820. }
  821. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  822. float tmp_vth = from._internal_vth();
  823. ::uint32_t raw_vth;
  824. memcpy(&raw_vth, &tmp_vth, sizeof(tmp_vth));
  825. if (raw_vth != 0) {
  826. _this->_internal_set_vth(from._internal_vth());
  827. }
  828. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  829. }
  830. void LidarOdomStatu::CopyFrom(const LidarOdomStatu& from) {
  831. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.LidarOdomStatu)
  832. if (&from == this) return;
  833. Clear();
  834. MergeFrom(from);
  835. }
  836. bool LidarOdomStatu::IsInitialized() const {
  837. return true;
  838. }
  839. void LidarOdomStatu::InternalSwap(LidarOdomStatu* other) {
  840. using std::swap;
  841. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  842. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  843. PROTOBUF_FIELD_OFFSET(LidarOdomStatu, _impl_.vth_)
  844. + sizeof(LidarOdomStatu::_impl_.vth_)
  845. - PROTOBUF_FIELD_OFFSET(LidarOdomStatu, _impl_.x_)>(
  846. reinterpret_cast<char*>(&_impl_.x_),
  847. reinterpret_cast<char*>(&other->_impl_.x_));
  848. }
  849. ::PROTOBUF_NAMESPACE_ID::Metadata LidarOdomStatu::GetMetadata() const {
  850. return ::_pbi::AssignDescriptors(
  851. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  852. file_level_metadata_message_2eproto[0]);
  853. }
  854. // ===================================================================
  855. class AgvStatu::_Internal {
  856. public:
  857. };
  858. AgvStatu::AgvStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  859. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  860. SharedCtor(arena);
  861. // @@protoc_insertion_point(arena_constructor:NavMessage.AgvStatu)
  862. }
  863. AgvStatu::AgvStatu(const AgvStatu& from)
  864. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  865. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  866. from._internal_metadata_);
  867. // @@protoc_insertion_point(copy_constructor:NavMessage.AgvStatu)
  868. }
  869. inline void AgvStatu::SharedCtor(::_pb::Arena* arena) {
  870. (void)arena;
  871. new (&_impl_) Impl_{
  872. decltype(_impl_.v_) { 0 }
  873. , decltype(_impl_.w_) { 0 }
  874. , decltype(_impl_.clamp_) { 0 }
  875. , decltype(_impl_.clamp_other_) { 0 }
  876. , decltype(_impl_.lifter_) { 0 }
  877. , decltype(_impl_.lifter_other_) { 0 }
  878. , /*decltype(_impl_._cached_size_)*/{}
  879. };
  880. }
  881. AgvStatu::~AgvStatu() {
  882. // @@protoc_insertion_point(destructor:NavMessage.AgvStatu)
  883. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  884. (void)arena;
  885. return;
  886. }
  887. SharedDtor();
  888. }
  889. inline void AgvStatu::SharedDtor() {
  890. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  891. }
  892. void AgvStatu::SetCachedSize(int size) const {
  893. _impl_._cached_size_.Set(size);
  894. }
  895. void AgvStatu::Clear() {
  896. // @@protoc_insertion_point(message_clear_start:NavMessage.AgvStatu)
  897. ::uint32_t cached_has_bits = 0;
  898. // Prevent compiler warnings about cached_has_bits being unused
  899. (void) cached_has_bits;
  900. ::memset(&_impl_.v_, 0, static_cast<::size_t>(
  901. reinterpret_cast<char*>(&_impl_.lifter_other_) -
  902. reinterpret_cast<char*>(&_impl_.v_)) + sizeof(_impl_.lifter_other_));
  903. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  904. }
  905. const char* AgvStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  906. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  907. while (!ctx->Done(&ptr)) {
  908. ::uint32_t tag;
  909. ptr = ::_pbi::ReadTag(ptr, &tag);
  910. switch (tag >> 3) {
  911. // float v = 1;
  912. case 1:
  913. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  914. _impl_.v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  915. ptr += sizeof(float);
  916. } else {
  917. goto handle_unusual;
  918. }
  919. continue;
  920. // float w = 2;
  921. case 2:
  922. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  923. _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  924. ptr += sizeof(float);
  925. } else {
  926. goto handle_unusual;
  927. }
  928. continue;
  929. // int32 clamp = 3;
  930. case 3:
  931. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
  932. _impl_.clamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  933. CHK_(ptr);
  934. } else {
  935. goto handle_unusual;
  936. }
  937. continue;
  938. // int32 clamp_other = 4;
  939. case 4:
  940. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
  941. _impl_.clamp_other_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  942. CHK_(ptr);
  943. } else {
  944. goto handle_unusual;
  945. }
  946. continue;
  947. // int32 lifter = 5;
  948. case 5:
  949. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
  950. _impl_.lifter_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  951. CHK_(ptr);
  952. } else {
  953. goto handle_unusual;
  954. }
  955. continue;
  956. // int32 lifter_other = 6;
  957. case 6:
  958. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
  959. _impl_.lifter_other_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  960. CHK_(ptr);
  961. } else {
  962. goto handle_unusual;
  963. }
  964. continue;
  965. default:
  966. goto handle_unusual;
  967. } // switch
  968. handle_unusual:
  969. if ((tag == 0) || ((tag & 7) == 4)) {
  970. CHK_(ptr);
  971. ctx->SetLastTag(tag);
  972. goto message_done;
  973. }
  974. ptr = UnknownFieldParse(
  975. tag,
  976. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  977. ptr, ctx);
  978. CHK_(ptr != nullptr);
  979. } // while
  980. message_done:
  981. return ptr;
  982. failure:
  983. ptr = nullptr;
  984. goto message_done;
  985. #undef CHK_
  986. }
  987. ::uint8_t* AgvStatu::_InternalSerialize(
  988. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  989. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.AgvStatu)
  990. ::uint32_t cached_has_bits = 0;
  991. (void) cached_has_bits;
  992. // float v = 1;
  993. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  994. float tmp_v = this->_internal_v();
  995. ::uint32_t raw_v;
  996. memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
  997. if (raw_v != 0) {
  998. target = stream->EnsureSpace(target);
  999. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1000. 1, this->_internal_v(), target);
  1001. }
  1002. // float w = 2;
  1003. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1004. float tmp_w = this->_internal_w();
  1005. ::uint32_t raw_w;
  1006. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  1007. if (raw_w != 0) {
  1008. target = stream->EnsureSpace(target);
  1009. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1010. 2, this->_internal_w(), target);
  1011. }
  1012. // int32 clamp = 3;
  1013. if (this->_internal_clamp() != 0) {
  1014. target = stream->EnsureSpace(target);
  1015. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1016. 3, this->_internal_clamp(), target);
  1017. }
  1018. // int32 clamp_other = 4;
  1019. if (this->_internal_clamp_other() != 0) {
  1020. target = stream->EnsureSpace(target);
  1021. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1022. 4, this->_internal_clamp_other(), target);
  1023. }
  1024. // int32 lifter = 5;
  1025. if (this->_internal_lifter() != 0) {
  1026. target = stream->EnsureSpace(target);
  1027. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1028. 5, this->_internal_lifter(), target);
  1029. }
  1030. // int32 lifter_other = 6;
  1031. if (this->_internal_lifter_other() != 0) {
  1032. target = stream->EnsureSpace(target);
  1033. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1034. 6, this->_internal_lifter_other(), target);
  1035. }
  1036. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1037. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1038. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1039. }
  1040. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.AgvStatu)
  1041. return target;
  1042. }
  1043. ::size_t AgvStatu::ByteSizeLong() const {
  1044. // @@protoc_insertion_point(message_byte_size_start:NavMessage.AgvStatu)
  1045. ::size_t total_size = 0;
  1046. ::uint32_t cached_has_bits = 0;
  1047. // Prevent compiler warnings about cached_has_bits being unused
  1048. (void) cached_has_bits;
  1049. // float v = 1;
  1050. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1051. float tmp_v = this->_internal_v();
  1052. ::uint32_t raw_v;
  1053. memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
  1054. if (raw_v != 0) {
  1055. total_size += 5;
  1056. }
  1057. // float w = 2;
  1058. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1059. float tmp_w = this->_internal_w();
  1060. ::uint32_t raw_w;
  1061. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  1062. if (raw_w != 0) {
  1063. total_size += 5;
  1064. }
  1065. // int32 clamp = 3;
  1066. if (this->_internal_clamp() != 0) {
  1067. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1068. this->_internal_clamp());
  1069. }
  1070. // int32 clamp_other = 4;
  1071. if (this->_internal_clamp_other() != 0) {
  1072. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1073. this->_internal_clamp_other());
  1074. }
  1075. // int32 lifter = 5;
  1076. if (this->_internal_lifter() != 0) {
  1077. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1078. this->_internal_lifter());
  1079. }
  1080. // int32 lifter_other = 6;
  1081. if (this->_internal_lifter_other() != 0) {
  1082. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1083. this->_internal_lifter_other());
  1084. }
  1085. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1086. }
  1087. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AgvStatu::_class_data_ = {
  1088. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1089. AgvStatu::MergeImpl
  1090. };
  1091. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AgvStatu::GetClassData() const { return &_class_data_; }
  1092. void AgvStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1093. auto* const _this = static_cast<AgvStatu*>(&to_msg);
  1094. auto& from = static_cast<const AgvStatu&>(from_msg);
  1095. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.AgvStatu)
  1096. ABSL_DCHECK_NE(&from, _this);
  1097. ::uint32_t cached_has_bits = 0;
  1098. (void) cached_has_bits;
  1099. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1100. float tmp_v = from._internal_v();
  1101. ::uint32_t raw_v;
  1102. memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
  1103. if (raw_v != 0) {
  1104. _this->_internal_set_v(from._internal_v());
  1105. }
  1106. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1107. float tmp_w = from._internal_w();
  1108. ::uint32_t raw_w;
  1109. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  1110. if (raw_w != 0) {
  1111. _this->_internal_set_w(from._internal_w());
  1112. }
  1113. if (from._internal_clamp() != 0) {
  1114. _this->_internal_set_clamp(from._internal_clamp());
  1115. }
  1116. if (from._internal_clamp_other() != 0) {
  1117. _this->_internal_set_clamp_other(from._internal_clamp_other());
  1118. }
  1119. if (from._internal_lifter() != 0) {
  1120. _this->_internal_set_lifter(from._internal_lifter());
  1121. }
  1122. if (from._internal_lifter_other() != 0) {
  1123. _this->_internal_set_lifter_other(from._internal_lifter_other());
  1124. }
  1125. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1126. }
  1127. void AgvStatu::CopyFrom(const AgvStatu& from) {
  1128. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.AgvStatu)
  1129. if (&from == this) return;
  1130. Clear();
  1131. MergeFrom(from);
  1132. }
  1133. bool AgvStatu::IsInitialized() const {
  1134. return true;
  1135. }
  1136. void AgvStatu::InternalSwap(AgvStatu* other) {
  1137. using std::swap;
  1138. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1139. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1140. PROTOBUF_FIELD_OFFSET(AgvStatu, _impl_.lifter_other_)
  1141. + sizeof(AgvStatu::_impl_.lifter_other_)
  1142. - PROTOBUF_FIELD_OFFSET(AgvStatu, _impl_.v_)>(
  1143. reinterpret_cast<char*>(&_impl_.v_),
  1144. reinterpret_cast<char*>(&other->_impl_.v_));
  1145. }
  1146. ::PROTOBUF_NAMESPACE_ID::Metadata AgvStatu::GetMetadata() const {
  1147. return ::_pbi::AssignDescriptors(
  1148. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  1149. file_level_metadata_message_2eproto[1]);
  1150. }
  1151. // ===================================================================
  1152. class ToAgvCmd::_Internal {
  1153. public:
  1154. };
  1155. ToAgvCmd::ToAgvCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1156. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1157. SharedCtor(arena);
  1158. // @@protoc_insertion_point(arena_constructor:NavMessage.ToAgvCmd)
  1159. }
  1160. ToAgvCmd::ToAgvCmd(const ToAgvCmd& from)
  1161. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  1162. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  1163. from._internal_metadata_);
  1164. // @@protoc_insertion_point(copy_constructor:NavMessage.ToAgvCmd)
  1165. }
  1166. inline void ToAgvCmd::SharedCtor(::_pb::Arena* arena) {
  1167. (void)arena;
  1168. new (&_impl_) Impl_{
  1169. decltype(_impl_.h1_) { 0 }
  1170. , decltype(_impl_.m1_) { 0 }
  1171. , decltype(_impl_.t1_) { 0 }
  1172. , decltype(_impl_.v1_) { 0 }
  1173. , decltype(_impl_.w1_) { 0 }
  1174. , decltype(_impl_.v2_) { 0 }
  1175. , decltype(_impl_.w2_) { 0 }
  1176. , decltype(_impl_.v3_) { 0 }
  1177. , decltype(_impl_.w3_) { 0 }
  1178. , decltype(_impl_.l1_) { 0 }
  1179. , decltype(_impl_.p1_) { 0 }
  1180. , decltype(_impl_.d1_) { 0 }
  1181. , decltype(_impl_.end_) { 0 }
  1182. , /*decltype(_impl_._cached_size_)*/{}
  1183. };
  1184. }
  1185. ToAgvCmd::~ToAgvCmd() {
  1186. // @@protoc_insertion_point(destructor:NavMessage.ToAgvCmd)
  1187. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1188. (void)arena;
  1189. return;
  1190. }
  1191. SharedDtor();
  1192. }
  1193. inline void ToAgvCmd::SharedDtor() {
  1194. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1195. }
  1196. void ToAgvCmd::SetCachedSize(int size) const {
  1197. _impl_._cached_size_.Set(size);
  1198. }
  1199. void ToAgvCmd::Clear() {
  1200. // @@protoc_insertion_point(message_clear_start:NavMessage.ToAgvCmd)
  1201. ::uint32_t cached_has_bits = 0;
  1202. // Prevent compiler warnings about cached_has_bits being unused
  1203. (void) cached_has_bits;
  1204. ::memset(&_impl_.h1_, 0, static_cast<::size_t>(
  1205. reinterpret_cast<char*>(&_impl_.end_) -
  1206. reinterpret_cast<char*>(&_impl_.h1_)) + sizeof(_impl_.end_));
  1207. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1208. }
  1209. const char* ToAgvCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1210. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1211. while (!ctx->Done(&ptr)) {
  1212. ::uint32_t tag;
  1213. ptr = ::_pbi::ReadTag(ptr, &tag);
  1214. switch (tag >> 3) {
  1215. // int32 H1 = 1;
  1216. case 1:
  1217. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  1218. _impl_.h1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1219. CHK_(ptr);
  1220. } else {
  1221. goto handle_unusual;
  1222. }
  1223. continue;
  1224. // int32 M1 = 2;
  1225. case 2:
  1226. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
  1227. _impl_.m1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1228. CHK_(ptr);
  1229. } else {
  1230. goto handle_unusual;
  1231. }
  1232. continue;
  1233. // int32 T1 = 3;
  1234. case 3:
  1235. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
  1236. _impl_.t1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1237. CHK_(ptr);
  1238. } else {
  1239. goto handle_unusual;
  1240. }
  1241. continue;
  1242. // float V1 = 4;
  1243. case 4:
  1244. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
  1245. _impl_.v1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1246. ptr += sizeof(float);
  1247. } else {
  1248. goto handle_unusual;
  1249. }
  1250. continue;
  1251. // float W1 = 5;
  1252. case 5:
  1253. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
  1254. _impl_.w1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1255. ptr += sizeof(float);
  1256. } else {
  1257. goto handle_unusual;
  1258. }
  1259. continue;
  1260. // float V2 = 6;
  1261. case 6:
  1262. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 53)) {
  1263. _impl_.v2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1264. ptr += sizeof(float);
  1265. } else {
  1266. goto handle_unusual;
  1267. }
  1268. continue;
  1269. // float W2 = 7;
  1270. case 7:
  1271. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 61)) {
  1272. _impl_.w2_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1273. ptr += sizeof(float);
  1274. } else {
  1275. goto handle_unusual;
  1276. }
  1277. continue;
  1278. // float V3 = 8;
  1279. case 8:
  1280. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 69)) {
  1281. _impl_.v3_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1282. ptr += sizeof(float);
  1283. } else {
  1284. goto handle_unusual;
  1285. }
  1286. continue;
  1287. // float W3 = 9;
  1288. case 9:
  1289. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 77)) {
  1290. _impl_.w3_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1291. ptr += sizeof(float);
  1292. } else {
  1293. goto handle_unusual;
  1294. }
  1295. continue;
  1296. // float L1 = 10;
  1297. case 10:
  1298. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 85)) {
  1299. _impl_.l1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1300. ptr += sizeof(float);
  1301. } else {
  1302. goto handle_unusual;
  1303. }
  1304. continue;
  1305. // int32 P1 = 11;
  1306. case 11:
  1307. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 88)) {
  1308. _impl_.p1_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1309. CHK_(ptr);
  1310. } else {
  1311. goto handle_unusual;
  1312. }
  1313. continue;
  1314. // float D1 = 12;
  1315. case 12:
  1316. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 101)) {
  1317. _impl_.d1_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1318. ptr += sizeof(float);
  1319. } else {
  1320. goto handle_unusual;
  1321. }
  1322. continue;
  1323. // int32 end = 13;
  1324. case 13:
  1325. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 104)) {
  1326. _impl_.end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  1327. CHK_(ptr);
  1328. } else {
  1329. goto handle_unusual;
  1330. }
  1331. continue;
  1332. default:
  1333. goto handle_unusual;
  1334. } // switch
  1335. handle_unusual:
  1336. if ((tag == 0) || ((tag & 7) == 4)) {
  1337. CHK_(ptr);
  1338. ctx->SetLastTag(tag);
  1339. goto message_done;
  1340. }
  1341. ptr = UnknownFieldParse(
  1342. tag,
  1343. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1344. ptr, ctx);
  1345. CHK_(ptr != nullptr);
  1346. } // while
  1347. message_done:
  1348. return ptr;
  1349. failure:
  1350. ptr = nullptr;
  1351. goto message_done;
  1352. #undef CHK_
  1353. }
  1354. ::uint8_t* ToAgvCmd::_InternalSerialize(
  1355. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1356. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.ToAgvCmd)
  1357. ::uint32_t cached_has_bits = 0;
  1358. (void) cached_has_bits;
  1359. // int32 H1 = 1;
  1360. if (this->_internal_h1() != 0) {
  1361. target = stream->EnsureSpace(target);
  1362. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1363. 1, this->_internal_h1(), target);
  1364. }
  1365. // int32 M1 = 2;
  1366. if (this->_internal_m1() != 0) {
  1367. target = stream->EnsureSpace(target);
  1368. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1369. 2, this->_internal_m1(), target);
  1370. }
  1371. // int32 T1 = 3;
  1372. if (this->_internal_t1() != 0) {
  1373. target = stream->EnsureSpace(target);
  1374. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1375. 3, this->_internal_t1(), target);
  1376. }
  1377. // float V1 = 4;
  1378. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1379. float tmp_v1 = this->_internal_v1();
  1380. ::uint32_t raw_v1;
  1381. memcpy(&raw_v1, &tmp_v1, sizeof(tmp_v1));
  1382. if (raw_v1 != 0) {
  1383. target = stream->EnsureSpace(target);
  1384. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1385. 4, this->_internal_v1(), target);
  1386. }
  1387. // float W1 = 5;
  1388. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1389. float tmp_w1 = this->_internal_w1();
  1390. ::uint32_t raw_w1;
  1391. memcpy(&raw_w1, &tmp_w1, sizeof(tmp_w1));
  1392. if (raw_w1 != 0) {
  1393. target = stream->EnsureSpace(target);
  1394. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1395. 5, this->_internal_w1(), target);
  1396. }
  1397. // float V2 = 6;
  1398. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1399. float tmp_v2 = this->_internal_v2();
  1400. ::uint32_t raw_v2;
  1401. memcpy(&raw_v2, &tmp_v2, sizeof(tmp_v2));
  1402. if (raw_v2 != 0) {
  1403. target = stream->EnsureSpace(target);
  1404. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1405. 6, this->_internal_v2(), target);
  1406. }
  1407. // float W2 = 7;
  1408. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1409. float tmp_w2 = this->_internal_w2();
  1410. ::uint32_t raw_w2;
  1411. memcpy(&raw_w2, &tmp_w2, sizeof(tmp_w2));
  1412. if (raw_w2 != 0) {
  1413. target = stream->EnsureSpace(target);
  1414. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1415. 7, this->_internal_w2(), target);
  1416. }
  1417. // float V3 = 8;
  1418. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1419. float tmp_v3 = this->_internal_v3();
  1420. ::uint32_t raw_v3;
  1421. memcpy(&raw_v3, &tmp_v3, sizeof(tmp_v3));
  1422. if (raw_v3 != 0) {
  1423. target = stream->EnsureSpace(target);
  1424. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1425. 8, this->_internal_v3(), target);
  1426. }
  1427. // float W3 = 9;
  1428. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1429. float tmp_w3 = this->_internal_w3();
  1430. ::uint32_t raw_w3;
  1431. memcpy(&raw_w3, &tmp_w3, sizeof(tmp_w3));
  1432. if (raw_w3 != 0) {
  1433. target = stream->EnsureSpace(target);
  1434. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1435. 9, this->_internal_w3(), target);
  1436. }
  1437. // float L1 = 10;
  1438. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1439. float tmp_l1 = this->_internal_l1();
  1440. ::uint32_t raw_l1;
  1441. memcpy(&raw_l1, &tmp_l1, sizeof(tmp_l1));
  1442. if (raw_l1 != 0) {
  1443. target = stream->EnsureSpace(target);
  1444. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1445. 10, this->_internal_l1(), target);
  1446. }
  1447. // int32 P1 = 11;
  1448. if (this->_internal_p1() != 0) {
  1449. target = stream->EnsureSpace(target);
  1450. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1451. 11, this->_internal_p1(), target);
  1452. }
  1453. // float D1 = 12;
  1454. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1455. float tmp_d1 = this->_internal_d1();
  1456. ::uint32_t raw_d1;
  1457. memcpy(&raw_d1, &tmp_d1, sizeof(tmp_d1));
  1458. if (raw_d1 != 0) {
  1459. target = stream->EnsureSpace(target);
  1460. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1461. 12, this->_internal_d1(), target);
  1462. }
  1463. // int32 end = 13;
  1464. if (this->_internal_end() != 0) {
  1465. target = stream->EnsureSpace(target);
  1466. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  1467. 13, this->_internal_end(), target);
  1468. }
  1469. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1470. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1471. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1472. }
  1473. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.ToAgvCmd)
  1474. return target;
  1475. }
  1476. ::size_t ToAgvCmd::ByteSizeLong() const {
  1477. // @@protoc_insertion_point(message_byte_size_start:NavMessage.ToAgvCmd)
  1478. ::size_t total_size = 0;
  1479. ::uint32_t cached_has_bits = 0;
  1480. // Prevent compiler warnings about cached_has_bits being unused
  1481. (void) cached_has_bits;
  1482. // int32 H1 = 1;
  1483. if (this->_internal_h1() != 0) {
  1484. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1485. this->_internal_h1());
  1486. }
  1487. // int32 M1 = 2;
  1488. if (this->_internal_m1() != 0) {
  1489. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1490. this->_internal_m1());
  1491. }
  1492. // int32 T1 = 3;
  1493. if (this->_internal_t1() != 0) {
  1494. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1495. this->_internal_t1());
  1496. }
  1497. // float V1 = 4;
  1498. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1499. float tmp_v1 = this->_internal_v1();
  1500. ::uint32_t raw_v1;
  1501. memcpy(&raw_v1, &tmp_v1, sizeof(tmp_v1));
  1502. if (raw_v1 != 0) {
  1503. total_size += 5;
  1504. }
  1505. // float W1 = 5;
  1506. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1507. float tmp_w1 = this->_internal_w1();
  1508. ::uint32_t raw_w1;
  1509. memcpy(&raw_w1, &tmp_w1, sizeof(tmp_w1));
  1510. if (raw_w1 != 0) {
  1511. total_size += 5;
  1512. }
  1513. // float V2 = 6;
  1514. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1515. float tmp_v2 = this->_internal_v2();
  1516. ::uint32_t raw_v2;
  1517. memcpy(&raw_v2, &tmp_v2, sizeof(tmp_v2));
  1518. if (raw_v2 != 0) {
  1519. total_size += 5;
  1520. }
  1521. // float W2 = 7;
  1522. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1523. float tmp_w2 = this->_internal_w2();
  1524. ::uint32_t raw_w2;
  1525. memcpy(&raw_w2, &tmp_w2, sizeof(tmp_w2));
  1526. if (raw_w2 != 0) {
  1527. total_size += 5;
  1528. }
  1529. // float V3 = 8;
  1530. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1531. float tmp_v3 = this->_internal_v3();
  1532. ::uint32_t raw_v3;
  1533. memcpy(&raw_v3, &tmp_v3, sizeof(tmp_v3));
  1534. if (raw_v3 != 0) {
  1535. total_size += 5;
  1536. }
  1537. // float W3 = 9;
  1538. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1539. float tmp_w3 = this->_internal_w3();
  1540. ::uint32_t raw_w3;
  1541. memcpy(&raw_w3, &tmp_w3, sizeof(tmp_w3));
  1542. if (raw_w3 != 0) {
  1543. total_size += 5;
  1544. }
  1545. // float L1 = 10;
  1546. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1547. float tmp_l1 = this->_internal_l1();
  1548. ::uint32_t raw_l1;
  1549. memcpy(&raw_l1, &tmp_l1, sizeof(tmp_l1));
  1550. if (raw_l1 != 0) {
  1551. total_size += 5;
  1552. }
  1553. // int32 P1 = 11;
  1554. if (this->_internal_p1() != 0) {
  1555. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1556. this->_internal_p1());
  1557. }
  1558. // float D1 = 12;
  1559. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1560. float tmp_d1 = this->_internal_d1();
  1561. ::uint32_t raw_d1;
  1562. memcpy(&raw_d1, &tmp_d1, sizeof(tmp_d1));
  1563. if (raw_d1 != 0) {
  1564. total_size += 5;
  1565. }
  1566. // int32 end = 13;
  1567. if (this->_internal_end() != 0) {
  1568. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  1569. this->_internal_end());
  1570. }
  1571. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1572. }
  1573. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ToAgvCmd::_class_data_ = {
  1574. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1575. ToAgvCmd::MergeImpl
  1576. };
  1577. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ToAgvCmd::GetClassData() const { return &_class_data_; }
  1578. void ToAgvCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1579. auto* const _this = static_cast<ToAgvCmd*>(&to_msg);
  1580. auto& from = static_cast<const ToAgvCmd&>(from_msg);
  1581. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.ToAgvCmd)
  1582. ABSL_DCHECK_NE(&from, _this);
  1583. ::uint32_t cached_has_bits = 0;
  1584. (void) cached_has_bits;
  1585. if (from._internal_h1() != 0) {
  1586. _this->_internal_set_h1(from._internal_h1());
  1587. }
  1588. if (from._internal_m1() != 0) {
  1589. _this->_internal_set_m1(from._internal_m1());
  1590. }
  1591. if (from._internal_t1() != 0) {
  1592. _this->_internal_set_t1(from._internal_t1());
  1593. }
  1594. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1595. float tmp_v1 = from._internal_v1();
  1596. ::uint32_t raw_v1;
  1597. memcpy(&raw_v1, &tmp_v1, sizeof(tmp_v1));
  1598. if (raw_v1 != 0) {
  1599. _this->_internal_set_v1(from._internal_v1());
  1600. }
  1601. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1602. float tmp_w1 = from._internal_w1();
  1603. ::uint32_t raw_w1;
  1604. memcpy(&raw_w1, &tmp_w1, sizeof(tmp_w1));
  1605. if (raw_w1 != 0) {
  1606. _this->_internal_set_w1(from._internal_w1());
  1607. }
  1608. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1609. float tmp_v2 = from._internal_v2();
  1610. ::uint32_t raw_v2;
  1611. memcpy(&raw_v2, &tmp_v2, sizeof(tmp_v2));
  1612. if (raw_v2 != 0) {
  1613. _this->_internal_set_v2(from._internal_v2());
  1614. }
  1615. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1616. float tmp_w2 = from._internal_w2();
  1617. ::uint32_t raw_w2;
  1618. memcpy(&raw_w2, &tmp_w2, sizeof(tmp_w2));
  1619. if (raw_w2 != 0) {
  1620. _this->_internal_set_w2(from._internal_w2());
  1621. }
  1622. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1623. float tmp_v3 = from._internal_v3();
  1624. ::uint32_t raw_v3;
  1625. memcpy(&raw_v3, &tmp_v3, sizeof(tmp_v3));
  1626. if (raw_v3 != 0) {
  1627. _this->_internal_set_v3(from._internal_v3());
  1628. }
  1629. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1630. float tmp_w3 = from._internal_w3();
  1631. ::uint32_t raw_w3;
  1632. memcpy(&raw_w3, &tmp_w3, sizeof(tmp_w3));
  1633. if (raw_w3 != 0) {
  1634. _this->_internal_set_w3(from._internal_w3());
  1635. }
  1636. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1637. float tmp_l1 = from._internal_l1();
  1638. ::uint32_t raw_l1;
  1639. memcpy(&raw_l1, &tmp_l1, sizeof(tmp_l1));
  1640. if (raw_l1 != 0) {
  1641. _this->_internal_set_l1(from._internal_l1());
  1642. }
  1643. if (from._internal_p1() != 0) {
  1644. _this->_internal_set_p1(from._internal_p1());
  1645. }
  1646. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1647. float tmp_d1 = from._internal_d1();
  1648. ::uint32_t raw_d1;
  1649. memcpy(&raw_d1, &tmp_d1, sizeof(tmp_d1));
  1650. if (raw_d1 != 0) {
  1651. _this->_internal_set_d1(from._internal_d1());
  1652. }
  1653. if (from._internal_end() != 0) {
  1654. _this->_internal_set_end(from._internal_end());
  1655. }
  1656. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1657. }
  1658. void ToAgvCmd::CopyFrom(const ToAgvCmd& from) {
  1659. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.ToAgvCmd)
  1660. if (&from == this) return;
  1661. Clear();
  1662. MergeFrom(from);
  1663. }
  1664. bool ToAgvCmd::IsInitialized() const {
  1665. return true;
  1666. }
  1667. void ToAgvCmd::InternalSwap(ToAgvCmd* other) {
  1668. using std::swap;
  1669. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1670. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1671. PROTOBUF_FIELD_OFFSET(ToAgvCmd, _impl_.end_)
  1672. + sizeof(ToAgvCmd::_impl_.end_)
  1673. - PROTOBUF_FIELD_OFFSET(ToAgvCmd, _impl_.h1_)>(
  1674. reinterpret_cast<char*>(&_impl_.h1_),
  1675. reinterpret_cast<char*>(&other->_impl_.h1_));
  1676. }
  1677. ::PROTOBUF_NAMESPACE_ID::Metadata ToAgvCmd::GetMetadata() const {
  1678. return ::_pbi::AssignDescriptors(
  1679. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  1680. file_level_metadata_message_2eproto[2]);
  1681. }
  1682. // ===================================================================
  1683. class Pose2d::_Internal {
  1684. public:
  1685. };
  1686. Pose2d::Pose2d(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1687. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1688. SharedCtor(arena);
  1689. // @@protoc_insertion_point(arena_constructor:NavMessage.Pose2d)
  1690. }
  1691. Pose2d::Pose2d(const Pose2d& from)
  1692. : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
  1693. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
  1694. from._internal_metadata_);
  1695. // @@protoc_insertion_point(copy_constructor:NavMessage.Pose2d)
  1696. }
  1697. inline void Pose2d::SharedCtor(::_pb::Arena* arena) {
  1698. (void)arena;
  1699. new (&_impl_) Impl_{
  1700. decltype(_impl_.x_) { 0 }
  1701. , decltype(_impl_.y_) { 0 }
  1702. , decltype(_impl_.theta_) { 0 }
  1703. , /*decltype(_impl_._cached_size_)*/{}
  1704. };
  1705. }
  1706. Pose2d::~Pose2d() {
  1707. // @@protoc_insertion_point(destructor:NavMessage.Pose2d)
  1708. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1709. (void)arena;
  1710. return;
  1711. }
  1712. SharedDtor();
  1713. }
  1714. inline void Pose2d::SharedDtor() {
  1715. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1716. }
  1717. void Pose2d::SetCachedSize(int size) const {
  1718. _impl_._cached_size_.Set(size);
  1719. }
  1720. void Pose2d::Clear() {
  1721. // @@protoc_insertion_point(message_clear_start:NavMessage.Pose2d)
  1722. ::uint32_t cached_has_bits = 0;
  1723. // Prevent compiler warnings about cached_has_bits being unused
  1724. (void) cached_has_bits;
  1725. ::memset(&_impl_.x_, 0, static_cast<::size_t>(
  1726. reinterpret_cast<char*>(&_impl_.theta_) -
  1727. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
  1728. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1729. }
  1730. const char* Pose2d::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1731. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1732. while (!ctx->Done(&ptr)) {
  1733. ::uint32_t tag;
  1734. ptr = ::_pbi::ReadTag(ptr, &tag);
  1735. switch (tag >> 3) {
  1736. // float x = 1;
  1737. case 1:
  1738. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  1739. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1740. ptr += sizeof(float);
  1741. } else {
  1742. goto handle_unusual;
  1743. }
  1744. continue;
  1745. // float y = 2;
  1746. case 2:
  1747. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  1748. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1749. ptr += sizeof(float);
  1750. } else {
  1751. goto handle_unusual;
  1752. }
  1753. continue;
  1754. // float theta = 3;
  1755. case 3:
  1756. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
  1757. _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  1758. ptr += sizeof(float);
  1759. } else {
  1760. goto handle_unusual;
  1761. }
  1762. continue;
  1763. default:
  1764. goto handle_unusual;
  1765. } // switch
  1766. handle_unusual:
  1767. if ((tag == 0) || ((tag & 7) == 4)) {
  1768. CHK_(ptr);
  1769. ctx->SetLastTag(tag);
  1770. goto message_done;
  1771. }
  1772. ptr = UnknownFieldParse(
  1773. tag,
  1774. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  1775. ptr, ctx);
  1776. CHK_(ptr != nullptr);
  1777. } // while
  1778. message_done:
  1779. return ptr;
  1780. failure:
  1781. ptr = nullptr;
  1782. goto message_done;
  1783. #undef CHK_
  1784. }
  1785. ::uint8_t* Pose2d::_InternalSerialize(
  1786. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  1787. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.Pose2d)
  1788. ::uint32_t cached_has_bits = 0;
  1789. (void) cached_has_bits;
  1790. // float x = 1;
  1791. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1792. float tmp_x = this->_internal_x();
  1793. ::uint32_t raw_x;
  1794. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1795. if (raw_x != 0) {
  1796. target = stream->EnsureSpace(target);
  1797. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1798. 1, this->_internal_x(), target);
  1799. }
  1800. // float y = 2;
  1801. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1802. float tmp_y = this->_internal_y();
  1803. ::uint32_t raw_y;
  1804. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1805. if (raw_y != 0) {
  1806. target = stream->EnsureSpace(target);
  1807. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1808. 2, this->_internal_y(), target);
  1809. }
  1810. // float theta = 3;
  1811. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1812. float tmp_theta = this->_internal_theta();
  1813. ::uint32_t raw_theta;
  1814. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  1815. if (raw_theta != 0) {
  1816. target = stream->EnsureSpace(target);
  1817. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  1818. 3, this->_internal_theta(), target);
  1819. }
  1820. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  1821. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  1822. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  1823. }
  1824. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.Pose2d)
  1825. return target;
  1826. }
  1827. ::size_t Pose2d::ByteSizeLong() const {
  1828. // @@protoc_insertion_point(message_byte_size_start:NavMessage.Pose2d)
  1829. ::size_t total_size = 0;
  1830. ::uint32_t cached_has_bits = 0;
  1831. // Prevent compiler warnings about cached_has_bits being unused
  1832. (void) cached_has_bits;
  1833. // float x = 1;
  1834. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1835. float tmp_x = this->_internal_x();
  1836. ::uint32_t raw_x;
  1837. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1838. if (raw_x != 0) {
  1839. total_size += 5;
  1840. }
  1841. // float y = 2;
  1842. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1843. float tmp_y = this->_internal_y();
  1844. ::uint32_t raw_y;
  1845. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1846. if (raw_y != 0) {
  1847. total_size += 5;
  1848. }
  1849. // float theta = 3;
  1850. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1851. float tmp_theta = this->_internal_theta();
  1852. ::uint32_t raw_theta;
  1853. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  1854. if (raw_theta != 0) {
  1855. total_size += 5;
  1856. }
  1857. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  1858. }
  1859. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Pose2d::_class_data_ = {
  1860. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  1861. Pose2d::MergeImpl
  1862. };
  1863. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Pose2d::GetClassData() const { return &_class_data_; }
  1864. void Pose2d::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  1865. auto* const _this = static_cast<Pose2d*>(&to_msg);
  1866. auto& from = static_cast<const Pose2d&>(from_msg);
  1867. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.Pose2d)
  1868. ABSL_DCHECK_NE(&from, _this);
  1869. ::uint32_t cached_has_bits = 0;
  1870. (void) cached_has_bits;
  1871. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1872. float tmp_x = from._internal_x();
  1873. ::uint32_t raw_x;
  1874. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  1875. if (raw_x != 0) {
  1876. _this->_internal_set_x(from._internal_x());
  1877. }
  1878. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1879. float tmp_y = from._internal_y();
  1880. ::uint32_t raw_y;
  1881. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  1882. if (raw_y != 0) {
  1883. _this->_internal_set_y(from._internal_y());
  1884. }
  1885. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  1886. float tmp_theta = from._internal_theta();
  1887. ::uint32_t raw_theta;
  1888. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  1889. if (raw_theta != 0) {
  1890. _this->_internal_set_theta(from._internal_theta());
  1891. }
  1892. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1893. }
  1894. void Pose2d::CopyFrom(const Pose2d& from) {
  1895. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.Pose2d)
  1896. if (&from == this) return;
  1897. Clear();
  1898. MergeFrom(from);
  1899. }
  1900. bool Pose2d::IsInitialized() const {
  1901. return true;
  1902. }
  1903. void Pose2d::InternalSwap(Pose2d* other) {
  1904. using std::swap;
  1905. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  1906. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  1907. PROTOBUF_FIELD_OFFSET(Pose2d, _impl_.theta_)
  1908. + sizeof(Pose2d::_impl_.theta_)
  1909. - PROTOBUF_FIELD_OFFSET(Pose2d, _impl_.x_)>(
  1910. reinterpret_cast<char*>(&_impl_.x_),
  1911. reinterpret_cast<char*>(&other->_impl_.x_));
  1912. }
  1913. ::PROTOBUF_NAMESPACE_ID::Metadata Pose2d::GetMetadata() const {
  1914. return ::_pbi::AssignDescriptors(
  1915. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  1916. file_level_metadata_message_2eproto[3]);
  1917. }
  1918. // ===================================================================
  1919. class PathNode::_Internal {
  1920. public:
  1921. };
  1922. PathNode::PathNode(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  1923. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  1924. SharedCtor(arena);
  1925. // @@protoc_insertion_point(arena_constructor:NavMessage.PathNode)
  1926. }
  1927. PathNode::PathNode(const PathNode& from)
  1928. : ::PROTOBUF_NAMESPACE_ID::Message() {
  1929. PathNode* const _this = this; (void)_this;
  1930. new (&_impl_) Impl_{
  1931. decltype(_impl_.id_) {}
  1932. , decltype(_impl_.x_) {}
  1933. , decltype(_impl_.y_) {}
  1934. , decltype(_impl_.l_) {}
  1935. , decltype(_impl_.w_) {}
  1936. , decltype(_impl_.theta_) {}
  1937. , /*decltype(_impl_._cached_size_)*/{}};
  1938. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  1939. _impl_.id_.InitDefault();
  1940. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1941. _impl_.id_.Set("", GetArenaForAllocation());
  1942. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1943. if (!from._internal_id().empty()) {
  1944. _this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation());
  1945. }
  1946. ::memcpy(&_impl_.x_, &from._impl_.x_,
  1947. static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.theta_) -
  1948. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
  1949. // @@protoc_insertion_point(copy_constructor:NavMessage.PathNode)
  1950. }
  1951. inline void PathNode::SharedCtor(::_pb::Arena* arena) {
  1952. (void)arena;
  1953. new (&_impl_) Impl_{
  1954. decltype(_impl_.id_) {}
  1955. , decltype(_impl_.x_) { 0 }
  1956. , decltype(_impl_.y_) { 0 }
  1957. , decltype(_impl_.l_) { 0 }
  1958. , decltype(_impl_.w_) { 0 }
  1959. , decltype(_impl_.theta_) { 0 }
  1960. , /*decltype(_impl_._cached_size_)*/{}
  1961. };
  1962. _impl_.id_.InitDefault();
  1963. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1964. _impl_.id_.Set("", GetArenaForAllocation());
  1965. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1966. }
  1967. PathNode::~PathNode() {
  1968. // @@protoc_insertion_point(destructor:NavMessage.PathNode)
  1969. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  1970. (void)arena;
  1971. return;
  1972. }
  1973. SharedDtor();
  1974. }
  1975. inline void PathNode::SharedDtor() {
  1976. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  1977. _impl_.id_.Destroy();
  1978. }
  1979. void PathNode::SetCachedSize(int size) const {
  1980. _impl_._cached_size_.Set(size);
  1981. }
  1982. void PathNode::Clear() {
  1983. // @@protoc_insertion_point(message_clear_start:NavMessage.PathNode)
  1984. ::uint32_t cached_has_bits = 0;
  1985. // Prevent compiler warnings about cached_has_bits being unused
  1986. (void) cached_has_bits;
  1987. _impl_.id_.ClearToEmpty();
  1988. ::memset(&_impl_.x_, 0, static_cast<::size_t>(
  1989. reinterpret_cast<char*>(&_impl_.theta_) -
  1990. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
  1991. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  1992. }
  1993. const char* PathNode::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  1994. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  1995. while (!ctx->Done(&ptr)) {
  1996. ::uint32_t tag;
  1997. ptr = ::_pbi::ReadTag(ptr, &tag);
  1998. switch (tag >> 3) {
  1999. // float x = 1;
  2000. case 1:
  2001. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  2002. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2003. ptr += sizeof(float);
  2004. } else {
  2005. goto handle_unusual;
  2006. }
  2007. continue;
  2008. // float y = 2;
  2009. case 2:
  2010. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  2011. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2012. ptr += sizeof(float);
  2013. } else {
  2014. goto handle_unusual;
  2015. }
  2016. continue;
  2017. // float l = 3;
  2018. case 3:
  2019. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
  2020. _impl_.l_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2021. ptr += sizeof(float);
  2022. } else {
  2023. goto handle_unusual;
  2024. }
  2025. continue;
  2026. // float w = 4;
  2027. case 4:
  2028. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
  2029. _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2030. ptr += sizeof(float);
  2031. } else {
  2032. goto handle_unusual;
  2033. }
  2034. continue;
  2035. // float theta = 5;
  2036. case 5:
  2037. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
  2038. _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2039. ptr += sizeof(float);
  2040. } else {
  2041. goto handle_unusual;
  2042. }
  2043. continue;
  2044. // string id = 6;
  2045. case 6:
  2046. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
  2047. auto str = _internal_mutable_id();
  2048. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  2049. CHK_(ptr);
  2050. CHK_(::_pbi::VerifyUTF8(str, "NavMessage.PathNode.id"));
  2051. } else {
  2052. goto handle_unusual;
  2053. }
  2054. continue;
  2055. default:
  2056. goto handle_unusual;
  2057. } // switch
  2058. handle_unusual:
  2059. if ((tag == 0) || ((tag & 7) == 4)) {
  2060. CHK_(ptr);
  2061. ctx->SetLastTag(tag);
  2062. goto message_done;
  2063. }
  2064. ptr = UnknownFieldParse(
  2065. tag,
  2066. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2067. ptr, ctx);
  2068. CHK_(ptr != nullptr);
  2069. } // while
  2070. message_done:
  2071. return ptr;
  2072. failure:
  2073. ptr = nullptr;
  2074. goto message_done;
  2075. #undef CHK_
  2076. }
  2077. ::uint8_t* PathNode::_InternalSerialize(
  2078. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2079. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.PathNode)
  2080. ::uint32_t cached_has_bits = 0;
  2081. (void) cached_has_bits;
  2082. // float x = 1;
  2083. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2084. float tmp_x = this->_internal_x();
  2085. ::uint32_t raw_x;
  2086. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2087. if (raw_x != 0) {
  2088. target = stream->EnsureSpace(target);
  2089. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  2090. 1, this->_internal_x(), target);
  2091. }
  2092. // float y = 2;
  2093. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2094. float tmp_y = this->_internal_y();
  2095. ::uint32_t raw_y;
  2096. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2097. if (raw_y != 0) {
  2098. target = stream->EnsureSpace(target);
  2099. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  2100. 2, this->_internal_y(), target);
  2101. }
  2102. // float l = 3;
  2103. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2104. float tmp_l = this->_internal_l();
  2105. ::uint32_t raw_l;
  2106. memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
  2107. if (raw_l != 0) {
  2108. target = stream->EnsureSpace(target);
  2109. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  2110. 3, this->_internal_l(), target);
  2111. }
  2112. // float w = 4;
  2113. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2114. float tmp_w = this->_internal_w();
  2115. ::uint32_t raw_w;
  2116. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  2117. if (raw_w != 0) {
  2118. target = stream->EnsureSpace(target);
  2119. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  2120. 4, this->_internal_w(), target);
  2121. }
  2122. // float theta = 5;
  2123. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2124. float tmp_theta = this->_internal_theta();
  2125. ::uint32_t raw_theta;
  2126. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  2127. if (raw_theta != 0) {
  2128. target = stream->EnsureSpace(target);
  2129. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  2130. 5, this->_internal_theta(), target);
  2131. }
  2132. // string id = 6;
  2133. if (!this->_internal_id().empty()) {
  2134. const std::string& _s = this->_internal_id();
  2135. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2136. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.PathNode.id");
  2137. target = stream->WriteStringMaybeAliased(6, _s, target);
  2138. }
  2139. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2140. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2141. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2142. }
  2143. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.PathNode)
  2144. return target;
  2145. }
  2146. ::size_t PathNode::ByteSizeLong() const {
  2147. // @@protoc_insertion_point(message_byte_size_start:NavMessage.PathNode)
  2148. ::size_t total_size = 0;
  2149. ::uint32_t cached_has_bits = 0;
  2150. // Prevent compiler warnings about cached_has_bits being unused
  2151. (void) cached_has_bits;
  2152. // string id = 6;
  2153. if (!this->_internal_id().empty()) {
  2154. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  2155. this->_internal_id());
  2156. }
  2157. // float x = 1;
  2158. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2159. float tmp_x = this->_internal_x();
  2160. ::uint32_t raw_x;
  2161. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2162. if (raw_x != 0) {
  2163. total_size += 5;
  2164. }
  2165. // float y = 2;
  2166. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2167. float tmp_y = this->_internal_y();
  2168. ::uint32_t raw_y;
  2169. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2170. if (raw_y != 0) {
  2171. total_size += 5;
  2172. }
  2173. // float l = 3;
  2174. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2175. float tmp_l = this->_internal_l();
  2176. ::uint32_t raw_l;
  2177. memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
  2178. if (raw_l != 0) {
  2179. total_size += 5;
  2180. }
  2181. // float w = 4;
  2182. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2183. float tmp_w = this->_internal_w();
  2184. ::uint32_t raw_w;
  2185. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  2186. if (raw_w != 0) {
  2187. total_size += 5;
  2188. }
  2189. // float theta = 5;
  2190. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2191. float tmp_theta = this->_internal_theta();
  2192. ::uint32_t raw_theta;
  2193. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  2194. if (raw_theta != 0) {
  2195. total_size += 5;
  2196. }
  2197. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2198. }
  2199. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PathNode::_class_data_ = {
  2200. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2201. PathNode::MergeImpl
  2202. };
  2203. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PathNode::GetClassData() const { return &_class_data_; }
  2204. void PathNode::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  2205. auto* const _this = static_cast<PathNode*>(&to_msg);
  2206. auto& from = static_cast<const PathNode&>(from_msg);
  2207. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.PathNode)
  2208. ABSL_DCHECK_NE(&from, _this);
  2209. ::uint32_t cached_has_bits = 0;
  2210. (void) cached_has_bits;
  2211. if (!from._internal_id().empty()) {
  2212. _this->_internal_set_id(from._internal_id());
  2213. }
  2214. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2215. float tmp_x = from._internal_x();
  2216. ::uint32_t raw_x;
  2217. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  2218. if (raw_x != 0) {
  2219. _this->_internal_set_x(from._internal_x());
  2220. }
  2221. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2222. float tmp_y = from._internal_y();
  2223. ::uint32_t raw_y;
  2224. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  2225. if (raw_y != 0) {
  2226. _this->_internal_set_y(from._internal_y());
  2227. }
  2228. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2229. float tmp_l = from._internal_l();
  2230. ::uint32_t raw_l;
  2231. memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
  2232. if (raw_l != 0) {
  2233. _this->_internal_set_l(from._internal_l());
  2234. }
  2235. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2236. float tmp_w = from._internal_w();
  2237. ::uint32_t raw_w;
  2238. memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
  2239. if (raw_w != 0) {
  2240. _this->_internal_set_w(from._internal_w());
  2241. }
  2242. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2243. float tmp_theta = from._internal_theta();
  2244. ::uint32_t raw_theta;
  2245. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  2246. if (raw_theta != 0) {
  2247. _this->_internal_set_theta(from._internal_theta());
  2248. }
  2249. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2250. }
  2251. void PathNode::CopyFrom(const PathNode& from) {
  2252. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.PathNode)
  2253. if (&from == this) return;
  2254. Clear();
  2255. MergeFrom(from);
  2256. }
  2257. bool PathNode::IsInitialized() const {
  2258. return true;
  2259. }
  2260. void PathNode::InternalSwap(PathNode* other) {
  2261. using std::swap;
  2262. auto* lhs_arena = GetArenaForAllocation();
  2263. auto* rhs_arena = other->GetArenaForAllocation();
  2264. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2265. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena,
  2266. &other->_impl_.id_, rhs_arena);
  2267. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2268. PROTOBUF_FIELD_OFFSET(PathNode, _impl_.theta_)
  2269. + sizeof(PathNode::_impl_.theta_)
  2270. - PROTOBUF_FIELD_OFFSET(PathNode, _impl_.x_)>(
  2271. reinterpret_cast<char*>(&_impl_.x_),
  2272. reinterpret_cast<char*>(&other->_impl_.x_));
  2273. }
  2274. ::PROTOBUF_NAMESPACE_ID::Metadata PathNode::GetMetadata() const {
  2275. return ::_pbi::AssignDescriptors(
  2276. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  2277. file_level_metadata_message_2eproto[4]);
  2278. }
  2279. // ===================================================================
  2280. class Trajectory::_Internal {
  2281. public:
  2282. };
  2283. Trajectory::Trajectory(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  2284. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  2285. SharedCtor(arena);
  2286. // @@protoc_insertion_point(arena_constructor:NavMessage.Trajectory)
  2287. }
  2288. Trajectory::Trajectory(const Trajectory& from)
  2289. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2290. Trajectory* const _this = this; (void)_this;
  2291. new (&_impl_) Impl_{
  2292. decltype(_impl_.poses_){from._impl_.poses_}
  2293. , /*decltype(_impl_._cached_size_)*/{}};
  2294. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2295. // @@protoc_insertion_point(copy_constructor:NavMessage.Trajectory)
  2296. }
  2297. inline void Trajectory::SharedCtor(::_pb::Arena* arena) {
  2298. (void)arena;
  2299. new (&_impl_) Impl_{
  2300. decltype(_impl_.poses_){arena}
  2301. , /*decltype(_impl_._cached_size_)*/{}
  2302. };
  2303. }
  2304. Trajectory::~Trajectory() {
  2305. // @@protoc_insertion_point(destructor:NavMessage.Trajectory)
  2306. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  2307. (void)arena;
  2308. return;
  2309. }
  2310. SharedDtor();
  2311. }
  2312. inline void Trajectory::SharedDtor() {
  2313. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  2314. _internal_mutable_poses()->~RepeatedPtrField();
  2315. }
  2316. void Trajectory::SetCachedSize(int size) const {
  2317. _impl_._cached_size_.Set(size);
  2318. }
  2319. void Trajectory::Clear() {
  2320. // @@protoc_insertion_point(message_clear_start:NavMessage.Trajectory)
  2321. ::uint32_t cached_has_bits = 0;
  2322. // Prevent compiler warnings about cached_has_bits being unused
  2323. (void) cached_has_bits;
  2324. _internal_mutable_poses()->Clear();
  2325. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2326. }
  2327. const char* Trajectory::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  2328. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2329. while (!ctx->Done(&ptr)) {
  2330. ::uint32_t tag;
  2331. ptr = ::_pbi::ReadTag(ptr, &tag);
  2332. switch (tag >> 3) {
  2333. // repeated .NavMessage.Pose2d poses = 1;
  2334. case 1:
  2335. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  2336. ptr -= 1;
  2337. do {
  2338. ptr += 1;
  2339. ptr = ctx->ParseMessage(_internal_add_poses(), ptr);
  2340. CHK_(ptr);
  2341. if (!ctx->DataAvailable(ptr)) break;
  2342. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
  2343. } else {
  2344. goto handle_unusual;
  2345. }
  2346. continue;
  2347. default:
  2348. goto handle_unusual;
  2349. } // switch
  2350. handle_unusual:
  2351. if ((tag == 0) || ((tag & 7) == 4)) {
  2352. CHK_(ptr);
  2353. ctx->SetLastTag(tag);
  2354. goto message_done;
  2355. }
  2356. ptr = UnknownFieldParse(
  2357. tag,
  2358. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2359. ptr, ctx);
  2360. CHK_(ptr != nullptr);
  2361. } // while
  2362. message_done:
  2363. return ptr;
  2364. failure:
  2365. ptr = nullptr;
  2366. goto message_done;
  2367. #undef CHK_
  2368. }
  2369. ::uint8_t* Trajectory::_InternalSerialize(
  2370. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2371. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.Trajectory)
  2372. ::uint32_t cached_has_bits = 0;
  2373. (void) cached_has_bits;
  2374. // repeated .NavMessage.Pose2d poses = 1;
  2375. for (unsigned i = 0,
  2376. n = static_cast<unsigned>(this->_internal_poses_size()); i < n; i++) {
  2377. const auto& repfield = this->_internal_poses(i);
  2378. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2379. InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  2380. }
  2381. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2382. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2383. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2384. }
  2385. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.Trajectory)
  2386. return target;
  2387. }
  2388. ::size_t Trajectory::ByteSizeLong() const {
  2389. // @@protoc_insertion_point(message_byte_size_start:NavMessage.Trajectory)
  2390. ::size_t total_size = 0;
  2391. ::uint32_t cached_has_bits = 0;
  2392. // Prevent compiler warnings about cached_has_bits being unused
  2393. (void) cached_has_bits;
  2394. // repeated .NavMessage.Pose2d poses = 1;
  2395. total_size += 1UL * this->_internal_poses_size();
  2396. for (const auto& msg : this->_internal_poses()) {
  2397. total_size +=
  2398. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  2399. }
  2400. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2401. }
  2402. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Trajectory::_class_data_ = {
  2403. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2404. Trajectory::MergeImpl
  2405. };
  2406. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Trajectory::GetClassData() const { return &_class_data_; }
  2407. void Trajectory::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  2408. auto* const _this = static_cast<Trajectory*>(&to_msg);
  2409. auto& from = static_cast<const Trajectory&>(from_msg);
  2410. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.Trajectory)
  2411. ABSL_DCHECK_NE(&from, _this);
  2412. ::uint32_t cached_has_bits = 0;
  2413. (void) cached_has_bits;
  2414. _this->_internal_mutable_poses()->MergeFrom(from._internal_poses());
  2415. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2416. }
  2417. void Trajectory::CopyFrom(const Trajectory& from) {
  2418. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.Trajectory)
  2419. if (&from == this) return;
  2420. Clear();
  2421. MergeFrom(from);
  2422. }
  2423. bool Trajectory::IsInitialized() const {
  2424. return true;
  2425. }
  2426. void Trajectory::InternalSwap(Trajectory* other) {
  2427. using std::swap;
  2428. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2429. _internal_mutable_poses()->InternalSwap(other->_internal_mutable_poses());
  2430. }
  2431. ::PROTOBUF_NAMESPACE_ID::Metadata Trajectory::GetMetadata() const {
  2432. return ::_pbi::AssignDescriptors(
  2433. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  2434. file_level_metadata_message_2eproto[5]);
  2435. }
  2436. // ===================================================================
  2437. class NewAction::_Internal {
  2438. public:
  2439. using HasBits = decltype(std::declval<NewAction>()._impl_._has_bits_);
  2440. static constexpr ::int32_t kHasBitsOffset =
  2441. 8 * PROTOBUF_FIELD_OFFSET(NewAction, _impl_._has_bits_);
  2442. static const ::NavMessage::PathNode& spacenode(const NewAction* msg);
  2443. static void set_has_spacenode(HasBits* has_bits) {
  2444. (*has_bits)[0] |= 1u;
  2445. }
  2446. static const ::NavMessage::PathNode& passnode(const NewAction* msg);
  2447. static void set_has_passnode(HasBits* has_bits) {
  2448. (*has_bits)[0] |= 2u;
  2449. }
  2450. static const ::NavMessage::PathNode& streetnode(const NewAction* msg);
  2451. static void set_has_streetnode(HasBits* has_bits) {
  2452. (*has_bits)[0] |= 4u;
  2453. }
  2454. };
  2455. const ::NavMessage::PathNode&
  2456. NewAction::_Internal::spacenode(const NewAction* msg) {
  2457. return *msg->_impl_.spacenode_;
  2458. }
  2459. const ::NavMessage::PathNode&
  2460. NewAction::_Internal::passnode(const NewAction* msg) {
  2461. return *msg->_impl_.passnode_;
  2462. }
  2463. const ::NavMessage::PathNode&
  2464. NewAction::_Internal::streetnode(const NewAction* msg) {
  2465. return *msg->_impl_.streetnode_;
  2466. }
  2467. NewAction::NewAction(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  2468. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  2469. SharedCtor(arena);
  2470. // @@protoc_insertion_point(arena_constructor:NavMessage.NewAction)
  2471. }
  2472. NewAction::NewAction(const NewAction& from)
  2473. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2474. NewAction* const _this = this; (void)_this;
  2475. new (&_impl_) Impl_{
  2476. decltype(_impl_._has_bits_){from._impl_._has_bits_}
  2477. , /*decltype(_impl_._cached_size_)*/{}
  2478. , decltype(_impl_.pathnodes_){from._impl_.pathnodes_}
  2479. , decltype(_impl_.spacenode_){nullptr}
  2480. , decltype(_impl_.passnode_){nullptr}
  2481. , decltype(_impl_.streetnode_){nullptr}
  2482. , decltype(_impl_.type_) {}
  2483. , decltype(_impl_.wheelbase_) {}
  2484. , decltype(_impl_.changedmode_) {}
  2485. };
  2486. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2487. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  2488. _this->_impl_.spacenode_ = new ::NavMessage::PathNode(*from._impl_.spacenode_);
  2489. }
  2490. if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
  2491. _this->_impl_.passnode_ = new ::NavMessage::PathNode(*from._impl_.passnode_);
  2492. }
  2493. if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
  2494. _this->_impl_.streetnode_ = new ::NavMessage::PathNode(*from._impl_.streetnode_);
  2495. }
  2496. ::memcpy(&_impl_.type_, &from._impl_.type_,
  2497. static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.changedmode_) -
  2498. reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.changedmode_));
  2499. // @@protoc_insertion_point(copy_constructor:NavMessage.NewAction)
  2500. }
  2501. inline void NewAction::SharedCtor(::_pb::Arena* arena) {
  2502. (void)arena;
  2503. new (&_impl_) Impl_{
  2504. decltype(_impl_._has_bits_){}
  2505. , /*decltype(_impl_._cached_size_)*/{}
  2506. , decltype(_impl_.pathnodes_){arena}
  2507. , decltype(_impl_.spacenode_){nullptr}
  2508. , decltype(_impl_.passnode_){nullptr}
  2509. , decltype(_impl_.streetnode_){nullptr}
  2510. , decltype(_impl_.type_) { 0 }
  2511. , decltype(_impl_.wheelbase_) { 0 }
  2512. , decltype(_impl_.changedmode_) { 0 }
  2513. };
  2514. }
  2515. NewAction::~NewAction() {
  2516. // @@protoc_insertion_point(destructor:NavMessage.NewAction)
  2517. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  2518. (void)arena;
  2519. return;
  2520. }
  2521. SharedDtor();
  2522. }
  2523. inline void NewAction::SharedDtor() {
  2524. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  2525. _internal_mutable_pathnodes()->~RepeatedPtrField();
  2526. if (this != internal_default_instance()) delete _impl_.spacenode_;
  2527. if (this != internal_default_instance()) delete _impl_.passnode_;
  2528. if (this != internal_default_instance()) delete _impl_.streetnode_;
  2529. }
  2530. void NewAction::SetCachedSize(int size) const {
  2531. _impl_._cached_size_.Set(size);
  2532. }
  2533. void NewAction::Clear() {
  2534. // @@protoc_insertion_point(message_clear_start:NavMessage.NewAction)
  2535. ::uint32_t cached_has_bits = 0;
  2536. // Prevent compiler warnings about cached_has_bits being unused
  2537. (void) cached_has_bits;
  2538. _internal_mutable_pathnodes()->Clear();
  2539. cached_has_bits = _impl_._has_bits_[0];
  2540. if (cached_has_bits & 0x00000007u) {
  2541. if (cached_has_bits & 0x00000001u) {
  2542. ABSL_DCHECK(_impl_.spacenode_ != nullptr);
  2543. _impl_.spacenode_->Clear();
  2544. }
  2545. if (cached_has_bits & 0x00000002u) {
  2546. ABSL_DCHECK(_impl_.passnode_ != nullptr);
  2547. _impl_.passnode_->Clear();
  2548. }
  2549. if (cached_has_bits & 0x00000004u) {
  2550. ABSL_DCHECK(_impl_.streetnode_ != nullptr);
  2551. _impl_.streetnode_->Clear();
  2552. }
  2553. }
  2554. ::memset(&_impl_.type_, 0, static_cast<::size_t>(
  2555. reinterpret_cast<char*>(&_impl_.changedmode_) -
  2556. reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.changedmode_));
  2557. _impl_._has_bits_.Clear();
  2558. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2559. }
  2560. const char* NewAction::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  2561. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2562. _Internal::HasBits has_bits{};
  2563. while (!ctx->Done(&ptr)) {
  2564. ::uint32_t tag;
  2565. ptr = ::_pbi::ReadTag(ptr, &tag);
  2566. switch (tag >> 3) {
  2567. // int32 type = 1;
  2568. case 1:
  2569. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  2570. _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2571. CHK_(ptr);
  2572. } else {
  2573. goto handle_unusual;
  2574. }
  2575. continue;
  2576. // .NavMessage.PathNode spaceNode = 2;
  2577. case 2:
  2578. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  2579. ptr = ctx->ParseMessage(_internal_mutable_spacenode(), ptr);
  2580. CHK_(ptr);
  2581. } else {
  2582. goto handle_unusual;
  2583. }
  2584. continue;
  2585. // .NavMessage.PathNode passNode = 3;
  2586. case 3:
  2587. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
  2588. ptr = ctx->ParseMessage(_internal_mutable_passnode(), ptr);
  2589. CHK_(ptr);
  2590. } else {
  2591. goto handle_unusual;
  2592. }
  2593. continue;
  2594. // .NavMessage.PathNode streetNode = 4;
  2595. case 4:
  2596. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  2597. ptr = ctx->ParseMessage(_internal_mutable_streetnode(), ptr);
  2598. CHK_(ptr);
  2599. } else {
  2600. goto handle_unusual;
  2601. }
  2602. continue;
  2603. // repeated .NavMessage.PathNode pathNodes = 5;
  2604. case 5:
  2605. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
  2606. ptr -= 1;
  2607. do {
  2608. ptr += 1;
  2609. ptr = ctx->ParseMessage(_internal_add_pathnodes(), ptr);
  2610. CHK_(ptr);
  2611. if (!ctx->DataAvailable(ptr)) break;
  2612. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
  2613. } else {
  2614. goto handle_unusual;
  2615. }
  2616. continue;
  2617. // float wheelbase = 6;
  2618. case 6:
  2619. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 53)) {
  2620. _impl_.wheelbase_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  2621. ptr += sizeof(float);
  2622. } else {
  2623. goto handle_unusual;
  2624. }
  2625. continue;
  2626. // int32 changedMode = 7;
  2627. case 7:
  2628. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
  2629. _impl_.changedmode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2630. CHK_(ptr);
  2631. } else {
  2632. goto handle_unusual;
  2633. }
  2634. continue;
  2635. default:
  2636. goto handle_unusual;
  2637. } // switch
  2638. handle_unusual:
  2639. if ((tag == 0) || ((tag & 7) == 4)) {
  2640. CHK_(ptr);
  2641. ctx->SetLastTag(tag);
  2642. goto message_done;
  2643. }
  2644. ptr = UnknownFieldParse(
  2645. tag,
  2646. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2647. ptr, ctx);
  2648. CHK_(ptr != nullptr);
  2649. } // while
  2650. message_done:
  2651. _impl_._has_bits_.Or(has_bits);
  2652. return ptr;
  2653. failure:
  2654. ptr = nullptr;
  2655. goto message_done;
  2656. #undef CHK_
  2657. }
  2658. ::uint8_t* NewAction::_InternalSerialize(
  2659. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2660. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NewAction)
  2661. ::uint32_t cached_has_bits = 0;
  2662. (void) cached_has_bits;
  2663. // int32 type = 1;
  2664. if (this->_internal_type() != 0) {
  2665. target = stream->EnsureSpace(target);
  2666. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  2667. 1, this->_internal_type(), target);
  2668. }
  2669. cached_has_bits = _impl_._has_bits_[0];
  2670. // .NavMessage.PathNode spaceNode = 2;
  2671. if (cached_has_bits & 0x00000001u) {
  2672. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2673. InternalWriteMessage(2, _Internal::spacenode(this),
  2674. _Internal::spacenode(this).GetCachedSize(), target, stream);
  2675. }
  2676. // .NavMessage.PathNode passNode = 3;
  2677. if (cached_has_bits & 0x00000002u) {
  2678. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2679. InternalWriteMessage(3, _Internal::passnode(this),
  2680. _Internal::passnode(this).GetCachedSize(), target, stream);
  2681. }
  2682. // .NavMessage.PathNode streetNode = 4;
  2683. if (cached_has_bits & 0x00000004u) {
  2684. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2685. InternalWriteMessage(4, _Internal::streetnode(this),
  2686. _Internal::streetnode(this).GetCachedSize(), target, stream);
  2687. }
  2688. // repeated .NavMessage.PathNode pathNodes = 5;
  2689. for (unsigned i = 0,
  2690. n = static_cast<unsigned>(this->_internal_pathnodes_size()); i < n; i++) {
  2691. const auto& repfield = this->_internal_pathnodes(i);
  2692. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2693. InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
  2694. }
  2695. // float wheelbase = 6;
  2696. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2697. float tmp_wheelbase = this->_internal_wheelbase();
  2698. ::uint32_t raw_wheelbase;
  2699. memcpy(&raw_wheelbase, &tmp_wheelbase, sizeof(tmp_wheelbase));
  2700. if (raw_wheelbase != 0) {
  2701. target = stream->EnsureSpace(target);
  2702. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  2703. 6, this->_internal_wheelbase(), target);
  2704. }
  2705. // int32 changedMode = 7;
  2706. if (this->_internal_changedmode() != 0) {
  2707. target = stream->EnsureSpace(target);
  2708. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  2709. 7, this->_internal_changedmode(), target);
  2710. }
  2711. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2712. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2713. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2714. }
  2715. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NewAction)
  2716. return target;
  2717. }
  2718. ::size_t NewAction::ByteSizeLong() const {
  2719. // @@protoc_insertion_point(message_byte_size_start:NavMessage.NewAction)
  2720. ::size_t total_size = 0;
  2721. ::uint32_t cached_has_bits = 0;
  2722. // Prevent compiler warnings about cached_has_bits being unused
  2723. (void) cached_has_bits;
  2724. // repeated .NavMessage.PathNode pathNodes = 5;
  2725. total_size += 1UL * this->_internal_pathnodes_size();
  2726. for (const auto& msg : this->_internal_pathnodes()) {
  2727. total_size +=
  2728. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  2729. }
  2730. cached_has_bits = _impl_._has_bits_[0];
  2731. if (cached_has_bits & 0x00000007u) {
  2732. // .NavMessage.PathNode spaceNode = 2;
  2733. if (cached_has_bits & 0x00000001u) {
  2734. total_size += 1 +
  2735. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2736. *_impl_.spacenode_);
  2737. }
  2738. // .NavMessage.PathNode passNode = 3;
  2739. if (cached_has_bits & 0x00000002u) {
  2740. total_size += 1 +
  2741. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2742. *_impl_.passnode_);
  2743. }
  2744. // .NavMessage.PathNode streetNode = 4;
  2745. if (cached_has_bits & 0x00000004u) {
  2746. total_size += 1 +
  2747. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  2748. *_impl_.streetnode_);
  2749. }
  2750. }
  2751. // int32 type = 1;
  2752. if (this->_internal_type() != 0) {
  2753. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  2754. this->_internal_type());
  2755. }
  2756. // float wheelbase = 6;
  2757. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2758. float tmp_wheelbase = this->_internal_wheelbase();
  2759. ::uint32_t raw_wheelbase;
  2760. memcpy(&raw_wheelbase, &tmp_wheelbase, sizeof(tmp_wheelbase));
  2761. if (raw_wheelbase != 0) {
  2762. total_size += 5;
  2763. }
  2764. // int32 changedMode = 7;
  2765. if (this->_internal_changedmode() != 0) {
  2766. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  2767. this->_internal_changedmode());
  2768. }
  2769. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  2770. }
  2771. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewAction::_class_data_ = {
  2772. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  2773. NewAction::MergeImpl
  2774. };
  2775. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewAction::GetClassData() const { return &_class_data_; }
  2776. void NewAction::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  2777. auto* const _this = static_cast<NewAction*>(&to_msg);
  2778. auto& from = static_cast<const NewAction&>(from_msg);
  2779. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NewAction)
  2780. ABSL_DCHECK_NE(&from, _this);
  2781. ::uint32_t cached_has_bits = 0;
  2782. (void) cached_has_bits;
  2783. _this->_internal_mutable_pathnodes()->MergeFrom(from._internal_pathnodes());
  2784. cached_has_bits = from._impl_._has_bits_[0];
  2785. if (cached_has_bits & 0x00000007u) {
  2786. if (cached_has_bits & 0x00000001u) {
  2787. _this->_internal_mutable_spacenode()->::NavMessage::PathNode::MergeFrom(
  2788. from._internal_spacenode());
  2789. }
  2790. if (cached_has_bits & 0x00000002u) {
  2791. _this->_internal_mutable_passnode()->::NavMessage::PathNode::MergeFrom(
  2792. from._internal_passnode());
  2793. }
  2794. if (cached_has_bits & 0x00000004u) {
  2795. _this->_internal_mutable_streetnode()->::NavMessage::PathNode::MergeFrom(
  2796. from._internal_streetnode());
  2797. }
  2798. }
  2799. if (from._internal_type() != 0) {
  2800. _this->_internal_set_type(from._internal_type());
  2801. }
  2802. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  2803. float tmp_wheelbase = from._internal_wheelbase();
  2804. ::uint32_t raw_wheelbase;
  2805. memcpy(&raw_wheelbase, &tmp_wheelbase, sizeof(tmp_wheelbase));
  2806. if (raw_wheelbase != 0) {
  2807. _this->_internal_set_wheelbase(from._internal_wheelbase());
  2808. }
  2809. if (from._internal_changedmode() != 0) {
  2810. _this->_internal_set_changedmode(from._internal_changedmode());
  2811. }
  2812. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2813. }
  2814. void NewAction::CopyFrom(const NewAction& from) {
  2815. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NewAction)
  2816. if (&from == this) return;
  2817. Clear();
  2818. MergeFrom(from);
  2819. }
  2820. bool NewAction::IsInitialized() const {
  2821. return true;
  2822. }
  2823. void NewAction::InternalSwap(NewAction* other) {
  2824. using std::swap;
  2825. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  2826. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  2827. _internal_mutable_pathnodes()->InternalSwap(other->_internal_mutable_pathnodes());
  2828. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  2829. PROTOBUF_FIELD_OFFSET(NewAction, _impl_.changedmode_)
  2830. + sizeof(NewAction::_impl_.changedmode_)
  2831. - PROTOBUF_FIELD_OFFSET(NewAction, _impl_.spacenode_)>(
  2832. reinterpret_cast<char*>(&_impl_.spacenode_),
  2833. reinterpret_cast<char*>(&other->_impl_.spacenode_));
  2834. }
  2835. ::PROTOBUF_NAMESPACE_ID::Metadata NewAction::GetMetadata() const {
  2836. return ::_pbi::AssignDescriptors(
  2837. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  2838. file_level_metadata_message_2eproto[6]);
  2839. }
  2840. // ===================================================================
  2841. class NavCmd::_Internal {
  2842. public:
  2843. };
  2844. NavCmd::NavCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  2845. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  2846. SharedCtor(arena);
  2847. // @@protoc_insertion_point(arena_constructor:NavMessage.NavCmd)
  2848. }
  2849. NavCmd::NavCmd(const NavCmd& from)
  2850. : ::PROTOBUF_NAMESPACE_ID::Message() {
  2851. NavCmd* const _this = this; (void)_this;
  2852. new (&_impl_) Impl_{
  2853. decltype(_impl_.newactions_){from._impl_.newactions_}
  2854. , decltype(_impl_.key_) {}
  2855. , decltype(_impl_.action_) {}
  2856. , /*decltype(_impl_._cached_size_)*/{}};
  2857. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  2858. _impl_.key_.InitDefault();
  2859. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2860. _impl_.key_.Set("", GetArenaForAllocation());
  2861. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2862. if (!from._internal_key().empty()) {
  2863. _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
  2864. }
  2865. _this->_impl_.action_ = from._impl_.action_;
  2866. // @@protoc_insertion_point(copy_constructor:NavMessage.NavCmd)
  2867. }
  2868. inline void NavCmd::SharedCtor(::_pb::Arena* arena) {
  2869. (void)arena;
  2870. new (&_impl_) Impl_{
  2871. decltype(_impl_.newactions_){arena}
  2872. , decltype(_impl_.key_) {}
  2873. , decltype(_impl_.action_) { 0 }
  2874. , /*decltype(_impl_._cached_size_)*/{}
  2875. };
  2876. _impl_.key_.InitDefault();
  2877. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2878. _impl_.key_.Set("", GetArenaForAllocation());
  2879. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  2880. }
  2881. NavCmd::~NavCmd() {
  2882. // @@protoc_insertion_point(destructor:NavMessage.NavCmd)
  2883. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  2884. (void)arena;
  2885. return;
  2886. }
  2887. SharedDtor();
  2888. }
  2889. inline void NavCmd::SharedDtor() {
  2890. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  2891. _internal_mutable_newactions()->~RepeatedPtrField();
  2892. _impl_.key_.Destroy();
  2893. }
  2894. void NavCmd::SetCachedSize(int size) const {
  2895. _impl_._cached_size_.Set(size);
  2896. }
  2897. void NavCmd::Clear() {
  2898. // @@protoc_insertion_point(message_clear_start:NavMessage.NavCmd)
  2899. ::uint32_t cached_has_bits = 0;
  2900. // Prevent compiler warnings about cached_has_bits being unused
  2901. (void) cached_has_bits;
  2902. _internal_mutable_newactions()->Clear();
  2903. _impl_.key_.ClearToEmpty();
  2904. _impl_.action_ = 0;
  2905. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  2906. }
  2907. const char* NavCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  2908. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  2909. while (!ctx->Done(&ptr)) {
  2910. ::uint32_t tag;
  2911. ptr = ::_pbi::ReadTag(ptr, &tag);
  2912. switch (tag >> 3) {
  2913. // int32 action = 1;
  2914. case 1:
  2915. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  2916. _impl_.action_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  2917. CHK_(ptr);
  2918. } else {
  2919. goto handle_unusual;
  2920. }
  2921. continue;
  2922. // string key = 2;
  2923. case 2:
  2924. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  2925. auto str = _internal_mutable_key();
  2926. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  2927. CHK_(ptr);
  2928. CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavCmd.key"));
  2929. } else {
  2930. goto handle_unusual;
  2931. }
  2932. continue;
  2933. // repeated .NavMessage.NewAction newActions = 5;
  2934. case 5:
  2935. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
  2936. ptr -= 1;
  2937. do {
  2938. ptr += 1;
  2939. ptr = ctx->ParseMessage(_internal_add_newactions(), ptr);
  2940. CHK_(ptr);
  2941. if (!ctx->DataAvailable(ptr)) break;
  2942. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
  2943. } else {
  2944. goto handle_unusual;
  2945. }
  2946. continue;
  2947. default:
  2948. goto handle_unusual;
  2949. } // switch
  2950. handle_unusual:
  2951. if ((tag == 0) || ((tag & 7) == 4)) {
  2952. CHK_(ptr);
  2953. ctx->SetLastTag(tag);
  2954. goto message_done;
  2955. }
  2956. ptr = UnknownFieldParse(
  2957. tag,
  2958. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  2959. ptr, ctx);
  2960. CHK_(ptr != nullptr);
  2961. } // while
  2962. message_done:
  2963. return ptr;
  2964. failure:
  2965. ptr = nullptr;
  2966. goto message_done;
  2967. #undef CHK_
  2968. }
  2969. ::uint8_t* NavCmd::_InternalSerialize(
  2970. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  2971. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavCmd)
  2972. ::uint32_t cached_has_bits = 0;
  2973. (void) cached_has_bits;
  2974. // int32 action = 1;
  2975. if (this->_internal_action() != 0) {
  2976. target = stream->EnsureSpace(target);
  2977. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  2978. 1, this->_internal_action(), target);
  2979. }
  2980. // string key = 2;
  2981. if (!this->_internal_key().empty()) {
  2982. const std::string& _s = this->_internal_key();
  2983. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  2984. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavCmd.key");
  2985. target = stream->WriteStringMaybeAliased(2, _s, target);
  2986. }
  2987. // repeated .NavMessage.NewAction newActions = 5;
  2988. for (unsigned i = 0,
  2989. n = static_cast<unsigned>(this->_internal_newactions_size()); i < n; i++) {
  2990. const auto& repfield = this->_internal_newactions(i);
  2991. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  2992. InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
  2993. }
  2994. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  2995. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  2996. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  2997. }
  2998. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavCmd)
  2999. return target;
  3000. }
  3001. ::size_t NavCmd::ByteSizeLong() const {
  3002. // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavCmd)
  3003. ::size_t total_size = 0;
  3004. ::uint32_t cached_has_bits = 0;
  3005. // Prevent compiler warnings about cached_has_bits being unused
  3006. (void) cached_has_bits;
  3007. // repeated .NavMessage.NewAction newActions = 5;
  3008. total_size += 1UL * this->_internal_newactions_size();
  3009. for (const auto& msg : this->_internal_newactions()) {
  3010. total_size +=
  3011. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  3012. }
  3013. // string key = 2;
  3014. if (!this->_internal_key().empty()) {
  3015. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3016. this->_internal_key());
  3017. }
  3018. // int32 action = 1;
  3019. if (this->_internal_action() != 0) {
  3020. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  3021. this->_internal_action());
  3022. }
  3023. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3024. }
  3025. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NavCmd::_class_data_ = {
  3026. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3027. NavCmd::MergeImpl
  3028. };
  3029. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NavCmd::GetClassData() const { return &_class_data_; }
  3030. void NavCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  3031. auto* const _this = static_cast<NavCmd*>(&to_msg);
  3032. auto& from = static_cast<const NavCmd&>(from_msg);
  3033. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavCmd)
  3034. ABSL_DCHECK_NE(&from, _this);
  3035. ::uint32_t cached_has_bits = 0;
  3036. (void) cached_has_bits;
  3037. _this->_internal_mutable_newactions()->MergeFrom(from._internal_newactions());
  3038. if (!from._internal_key().empty()) {
  3039. _this->_internal_set_key(from._internal_key());
  3040. }
  3041. if (from._internal_action() != 0) {
  3042. _this->_internal_set_action(from._internal_action());
  3043. }
  3044. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3045. }
  3046. void NavCmd::CopyFrom(const NavCmd& from) {
  3047. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavCmd)
  3048. if (&from == this) return;
  3049. Clear();
  3050. MergeFrom(from);
  3051. }
  3052. bool NavCmd::IsInitialized() const {
  3053. return true;
  3054. }
  3055. void NavCmd::InternalSwap(NavCmd* other) {
  3056. using std::swap;
  3057. auto* lhs_arena = GetArenaForAllocation();
  3058. auto* rhs_arena = other->GetArenaForAllocation();
  3059. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3060. _internal_mutable_newactions()->InternalSwap(other->_internal_mutable_newactions());
  3061. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
  3062. &other->_impl_.key_, rhs_arena);
  3063. swap(_impl_.action_, other->_impl_.action_);
  3064. }
  3065. ::PROTOBUF_NAMESPACE_ID::Metadata NavCmd::GetMetadata() const {
  3066. return ::_pbi::AssignDescriptors(
  3067. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  3068. file_level_metadata_message_2eproto[7]);
  3069. }
  3070. // ===================================================================
  3071. class NavResponse::_Internal {
  3072. public:
  3073. };
  3074. NavResponse::NavResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  3075. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  3076. SharedCtor(arena);
  3077. // @@protoc_insertion_point(arena_constructor:NavMessage.NavResponse)
  3078. }
  3079. NavResponse::NavResponse(const NavResponse& from)
  3080. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3081. NavResponse* const _this = this; (void)_this;
  3082. new (&_impl_) Impl_{
  3083. decltype(_impl_.info_) {}
  3084. , decltype(_impl_.ret_) {}
  3085. , /*decltype(_impl_._cached_size_)*/{}};
  3086. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3087. _impl_.info_.InitDefault();
  3088. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3089. _impl_.info_.Set("", GetArenaForAllocation());
  3090. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3091. if (!from._internal_info().empty()) {
  3092. _this->_impl_.info_.Set(from._internal_info(), _this->GetArenaForAllocation());
  3093. }
  3094. _this->_impl_.ret_ = from._impl_.ret_;
  3095. // @@protoc_insertion_point(copy_constructor:NavMessage.NavResponse)
  3096. }
  3097. inline void NavResponse::SharedCtor(::_pb::Arena* arena) {
  3098. (void)arena;
  3099. new (&_impl_) Impl_{
  3100. decltype(_impl_.info_) {}
  3101. , decltype(_impl_.ret_) { 0 }
  3102. , /*decltype(_impl_._cached_size_)*/{}
  3103. };
  3104. _impl_.info_.InitDefault();
  3105. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3106. _impl_.info_.Set("", GetArenaForAllocation());
  3107. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3108. }
  3109. NavResponse::~NavResponse() {
  3110. // @@protoc_insertion_point(destructor:NavMessage.NavResponse)
  3111. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  3112. (void)arena;
  3113. return;
  3114. }
  3115. SharedDtor();
  3116. }
  3117. inline void NavResponse::SharedDtor() {
  3118. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  3119. _impl_.info_.Destroy();
  3120. }
  3121. void NavResponse::SetCachedSize(int size) const {
  3122. _impl_._cached_size_.Set(size);
  3123. }
  3124. void NavResponse::Clear() {
  3125. // @@protoc_insertion_point(message_clear_start:NavMessage.NavResponse)
  3126. ::uint32_t cached_has_bits = 0;
  3127. // Prevent compiler warnings about cached_has_bits being unused
  3128. (void) cached_has_bits;
  3129. _impl_.info_.ClearToEmpty();
  3130. _impl_.ret_ = 0;
  3131. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3132. }
  3133. const char* NavResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  3134. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3135. while (!ctx->Done(&ptr)) {
  3136. ::uint32_t tag;
  3137. ptr = ::_pbi::ReadTag(ptr, &tag);
  3138. switch (tag >> 3) {
  3139. // int32 ret = 1;
  3140. case 1:
  3141. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  3142. _impl_.ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3143. CHK_(ptr);
  3144. } else {
  3145. goto handle_unusual;
  3146. }
  3147. continue;
  3148. // string info = 2;
  3149. case 2:
  3150. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
  3151. auto str = _internal_mutable_info();
  3152. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  3153. CHK_(ptr);
  3154. CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavResponse.info"));
  3155. } else {
  3156. goto handle_unusual;
  3157. }
  3158. continue;
  3159. default:
  3160. goto handle_unusual;
  3161. } // switch
  3162. handle_unusual:
  3163. if ((tag == 0) || ((tag & 7) == 4)) {
  3164. CHK_(ptr);
  3165. ctx->SetLastTag(tag);
  3166. goto message_done;
  3167. }
  3168. ptr = UnknownFieldParse(
  3169. tag,
  3170. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3171. ptr, ctx);
  3172. CHK_(ptr != nullptr);
  3173. } // while
  3174. message_done:
  3175. return ptr;
  3176. failure:
  3177. ptr = nullptr;
  3178. goto message_done;
  3179. #undef CHK_
  3180. }
  3181. ::uint8_t* NavResponse::_InternalSerialize(
  3182. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3183. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavResponse)
  3184. ::uint32_t cached_has_bits = 0;
  3185. (void) cached_has_bits;
  3186. // int32 ret = 1;
  3187. if (this->_internal_ret() != 0) {
  3188. target = stream->EnsureSpace(target);
  3189. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  3190. 1, this->_internal_ret(), target);
  3191. }
  3192. // string info = 2;
  3193. if (!this->_internal_info().empty()) {
  3194. const std::string& _s = this->_internal_info();
  3195. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3196. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavResponse.info");
  3197. target = stream->WriteStringMaybeAliased(2, _s, target);
  3198. }
  3199. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3200. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3201. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3202. }
  3203. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavResponse)
  3204. return target;
  3205. }
  3206. ::size_t NavResponse::ByteSizeLong() const {
  3207. // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavResponse)
  3208. ::size_t total_size = 0;
  3209. ::uint32_t cached_has_bits = 0;
  3210. // Prevent compiler warnings about cached_has_bits being unused
  3211. (void) cached_has_bits;
  3212. // string info = 2;
  3213. if (!this->_internal_info().empty()) {
  3214. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3215. this->_internal_info());
  3216. }
  3217. // int32 ret = 1;
  3218. if (this->_internal_ret() != 0) {
  3219. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  3220. this->_internal_ret());
  3221. }
  3222. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3223. }
  3224. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NavResponse::_class_data_ = {
  3225. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3226. NavResponse::MergeImpl
  3227. };
  3228. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NavResponse::GetClassData() const { return &_class_data_; }
  3229. void NavResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  3230. auto* const _this = static_cast<NavResponse*>(&to_msg);
  3231. auto& from = static_cast<const NavResponse&>(from_msg);
  3232. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavResponse)
  3233. ABSL_DCHECK_NE(&from, _this);
  3234. ::uint32_t cached_has_bits = 0;
  3235. (void) cached_has_bits;
  3236. if (!from._internal_info().empty()) {
  3237. _this->_internal_set_info(from._internal_info());
  3238. }
  3239. if (from._internal_ret() != 0) {
  3240. _this->_internal_set_ret(from._internal_ret());
  3241. }
  3242. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3243. }
  3244. void NavResponse::CopyFrom(const NavResponse& from) {
  3245. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavResponse)
  3246. if (&from == this) return;
  3247. Clear();
  3248. MergeFrom(from);
  3249. }
  3250. bool NavResponse::IsInitialized() const {
  3251. return true;
  3252. }
  3253. void NavResponse::InternalSwap(NavResponse* other) {
  3254. using std::swap;
  3255. auto* lhs_arena = GetArenaForAllocation();
  3256. auto* rhs_arena = other->GetArenaForAllocation();
  3257. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3258. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.info_, lhs_arena,
  3259. &other->_impl_.info_, rhs_arena);
  3260. swap(_impl_.ret_, other->_impl_.ret_);
  3261. }
  3262. ::PROTOBUF_NAMESPACE_ID::Metadata NavResponse::GetMetadata() const {
  3263. return ::_pbi::AssignDescriptors(
  3264. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  3265. file_level_metadata_message_2eproto[8]);
  3266. }
  3267. // ===================================================================
  3268. class ManualCmd::_Internal {
  3269. public:
  3270. };
  3271. ManualCmd::ManualCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  3272. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  3273. SharedCtor(arena);
  3274. // @@protoc_insertion_point(arena_constructor:NavMessage.ManualCmd)
  3275. }
  3276. ManualCmd::ManualCmd(const ManualCmd& from)
  3277. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3278. ManualCmd* const _this = this; (void)_this;
  3279. new (&_impl_) Impl_{
  3280. decltype(_impl_.key_) {}
  3281. , decltype(_impl_.operation_type_) {}
  3282. , decltype(_impl_.velocity_) {}
  3283. , /*decltype(_impl_._cached_size_)*/{}};
  3284. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3285. _impl_.key_.InitDefault();
  3286. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3287. _impl_.key_.Set("", GetArenaForAllocation());
  3288. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3289. if (!from._internal_key().empty()) {
  3290. _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
  3291. }
  3292. ::memcpy(&_impl_.operation_type_, &from._impl_.operation_type_,
  3293. static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.velocity_) -
  3294. reinterpret_cast<char*>(&_impl_.operation_type_)) + sizeof(_impl_.velocity_));
  3295. // @@protoc_insertion_point(copy_constructor:NavMessage.ManualCmd)
  3296. }
  3297. inline void ManualCmd::SharedCtor(::_pb::Arena* arena) {
  3298. (void)arena;
  3299. new (&_impl_) Impl_{
  3300. decltype(_impl_.key_) {}
  3301. , decltype(_impl_.operation_type_) { 0 }
  3302. , decltype(_impl_.velocity_) { 0 }
  3303. , /*decltype(_impl_._cached_size_)*/{}
  3304. };
  3305. _impl_.key_.InitDefault();
  3306. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3307. _impl_.key_.Set("", GetArenaForAllocation());
  3308. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3309. }
  3310. ManualCmd::~ManualCmd() {
  3311. // @@protoc_insertion_point(destructor:NavMessage.ManualCmd)
  3312. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  3313. (void)arena;
  3314. return;
  3315. }
  3316. SharedDtor();
  3317. }
  3318. inline void ManualCmd::SharedDtor() {
  3319. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  3320. _impl_.key_.Destroy();
  3321. }
  3322. void ManualCmd::SetCachedSize(int size) const {
  3323. _impl_._cached_size_.Set(size);
  3324. }
  3325. void ManualCmd::Clear() {
  3326. // @@protoc_insertion_point(message_clear_start:NavMessage.ManualCmd)
  3327. ::uint32_t cached_has_bits = 0;
  3328. // Prevent compiler warnings about cached_has_bits being unused
  3329. (void) cached_has_bits;
  3330. _impl_.key_.ClearToEmpty();
  3331. ::memset(&_impl_.operation_type_, 0, static_cast<::size_t>(
  3332. reinterpret_cast<char*>(&_impl_.velocity_) -
  3333. reinterpret_cast<char*>(&_impl_.operation_type_)) + sizeof(_impl_.velocity_));
  3334. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3335. }
  3336. const char* ManualCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  3337. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3338. while (!ctx->Done(&ptr)) {
  3339. ::uint32_t tag;
  3340. ptr = ::_pbi::ReadTag(ptr, &tag);
  3341. switch (tag >> 3) {
  3342. // string key = 1;
  3343. case 1:
  3344. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
  3345. auto str = _internal_mutable_key();
  3346. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  3347. CHK_(ptr);
  3348. CHK_(::_pbi::VerifyUTF8(str, "NavMessage.ManualCmd.key"));
  3349. } else {
  3350. goto handle_unusual;
  3351. }
  3352. continue;
  3353. // int32 operation_type = 2;
  3354. case 2:
  3355. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
  3356. _impl_.operation_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3357. CHK_(ptr);
  3358. } else {
  3359. goto handle_unusual;
  3360. }
  3361. continue;
  3362. // float velocity = 3;
  3363. case 3:
  3364. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
  3365. _impl_.velocity_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  3366. ptr += sizeof(float);
  3367. } else {
  3368. goto handle_unusual;
  3369. }
  3370. continue;
  3371. default:
  3372. goto handle_unusual;
  3373. } // switch
  3374. handle_unusual:
  3375. if ((tag == 0) || ((tag & 7) == 4)) {
  3376. CHK_(ptr);
  3377. ctx->SetLastTag(tag);
  3378. goto message_done;
  3379. }
  3380. ptr = UnknownFieldParse(
  3381. tag,
  3382. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3383. ptr, ctx);
  3384. CHK_(ptr != nullptr);
  3385. } // while
  3386. message_done:
  3387. return ptr;
  3388. failure:
  3389. ptr = nullptr;
  3390. goto message_done;
  3391. #undef CHK_
  3392. }
  3393. ::uint8_t* ManualCmd::_InternalSerialize(
  3394. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3395. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.ManualCmd)
  3396. ::uint32_t cached_has_bits = 0;
  3397. (void) cached_has_bits;
  3398. // string key = 1;
  3399. if (!this->_internal_key().empty()) {
  3400. const std::string& _s = this->_internal_key();
  3401. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3402. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.ManualCmd.key");
  3403. target = stream->WriteStringMaybeAliased(1, _s, target);
  3404. }
  3405. // int32 operation_type = 2;
  3406. if (this->_internal_operation_type() != 0) {
  3407. target = stream->EnsureSpace(target);
  3408. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  3409. 2, this->_internal_operation_type(), target);
  3410. }
  3411. // float velocity = 3;
  3412. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  3413. float tmp_velocity = this->_internal_velocity();
  3414. ::uint32_t raw_velocity;
  3415. memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
  3416. if (raw_velocity != 0) {
  3417. target = stream->EnsureSpace(target);
  3418. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  3419. 3, this->_internal_velocity(), target);
  3420. }
  3421. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3422. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3423. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3424. }
  3425. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.ManualCmd)
  3426. return target;
  3427. }
  3428. ::size_t ManualCmd::ByteSizeLong() const {
  3429. // @@protoc_insertion_point(message_byte_size_start:NavMessage.ManualCmd)
  3430. ::size_t total_size = 0;
  3431. ::uint32_t cached_has_bits = 0;
  3432. // Prevent compiler warnings about cached_has_bits being unused
  3433. (void) cached_has_bits;
  3434. // string key = 1;
  3435. if (!this->_internal_key().empty()) {
  3436. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3437. this->_internal_key());
  3438. }
  3439. // int32 operation_type = 2;
  3440. if (this->_internal_operation_type() != 0) {
  3441. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  3442. this->_internal_operation_type());
  3443. }
  3444. // float velocity = 3;
  3445. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  3446. float tmp_velocity = this->_internal_velocity();
  3447. ::uint32_t raw_velocity;
  3448. memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
  3449. if (raw_velocity != 0) {
  3450. total_size += 5;
  3451. }
  3452. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3453. }
  3454. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ManualCmd::_class_data_ = {
  3455. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3456. ManualCmd::MergeImpl
  3457. };
  3458. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ManualCmd::GetClassData() const { return &_class_data_; }
  3459. void ManualCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  3460. auto* const _this = static_cast<ManualCmd*>(&to_msg);
  3461. auto& from = static_cast<const ManualCmd&>(from_msg);
  3462. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.ManualCmd)
  3463. ABSL_DCHECK_NE(&from, _this);
  3464. ::uint32_t cached_has_bits = 0;
  3465. (void) cached_has_bits;
  3466. if (!from._internal_key().empty()) {
  3467. _this->_internal_set_key(from._internal_key());
  3468. }
  3469. if (from._internal_operation_type() != 0) {
  3470. _this->_internal_set_operation_type(from._internal_operation_type());
  3471. }
  3472. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  3473. float tmp_velocity = from._internal_velocity();
  3474. ::uint32_t raw_velocity;
  3475. memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
  3476. if (raw_velocity != 0) {
  3477. _this->_internal_set_velocity(from._internal_velocity());
  3478. }
  3479. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3480. }
  3481. void ManualCmd::CopyFrom(const ManualCmd& from) {
  3482. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.ManualCmd)
  3483. if (&from == this) return;
  3484. Clear();
  3485. MergeFrom(from);
  3486. }
  3487. bool ManualCmd::IsInitialized() const {
  3488. return true;
  3489. }
  3490. void ManualCmd::InternalSwap(ManualCmd* other) {
  3491. using std::swap;
  3492. auto* lhs_arena = GetArenaForAllocation();
  3493. auto* rhs_arena = other->GetArenaForAllocation();
  3494. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3495. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
  3496. &other->_impl_.key_, rhs_arena);
  3497. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3498. PROTOBUF_FIELD_OFFSET(ManualCmd, _impl_.velocity_)
  3499. + sizeof(ManualCmd::_impl_.velocity_)
  3500. - PROTOBUF_FIELD_OFFSET(ManualCmd, _impl_.operation_type_)>(
  3501. reinterpret_cast<char*>(&_impl_.operation_type_),
  3502. reinterpret_cast<char*>(&other->_impl_.operation_type_));
  3503. }
  3504. ::PROTOBUF_NAMESPACE_ID::Metadata ManualCmd::GetMetadata() const {
  3505. return ::_pbi::AssignDescriptors(
  3506. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  3507. file_level_metadata_message_2eproto[9]);
  3508. }
  3509. // ===================================================================
  3510. class NavStatu::_Internal {
  3511. public:
  3512. using HasBits = decltype(std::declval<NavStatu>()._impl_._has_bits_);
  3513. static constexpr ::int32_t kHasBitsOffset =
  3514. 8 * PROTOBUF_FIELD_OFFSET(NavStatu, _impl_._has_bits_);
  3515. static const ::NavMessage::LidarOdomStatu& odom(const NavStatu* msg);
  3516. static void set_has_odom(HasBits* has_bits) {
  3517. (*has_bits)[0] |= 1u;
  3518. }
  3519. static const ::NavMessage::Trajectory& selected_traj(const NavStatu* msg);
  3520. static void set_has_selected_traj(HasBits* has_bits) {
  3521. (*has_bits)[0] |= 2u;
  3522. }
  3523. static const ::NavMessage::Trajectory& predict_traj(const NavStatu* msg);
  3524. static void set_has_predict_traj(HasBits* has_bits) {
  3525. (*has_bits)[0] |= 4u;
  3526. }
  3527. };
  3528. const ::NavMessage::LidarOdomStatu&
  3529. NavStatu::_Internal::odom(const NavStatu* msg) {
  3530. return *msg->_impl_.odom_;
  3531. }
  3532. const ::NavMessage::Trajectory&
  3533. NavStatu::_Internal::selected_traj(const NavStatu* msg) {
  3534. return *msg->_impl_.selected_traj_;
  3535. }
  3536. const ::NavMessage::Trajectory&
  3537. NavStatu::_Internal::predict_traj(const NavStatu* msg) {
  3538. return *msg->_impl_.predict_traj_;
  3539. }
  3540. NavStatu::NavStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  3541. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  3542. SharedCtor(arena);
  3543. // @@protoc_insertion_point(arena_constructor:NavMessage.NavStatu)
  3544. }
  3545. NavStatu::NavStatu(const NavStatu& from)
  3546. : ::PROTOBUF_NAMESPACE_ID::Message() {
  3547. NavStatu* const _this = this; (void)_this;
  3548. new (&_impl_) Impl_{
  3549. decltype(_impl_._has_bits_){from._impl_._has_bits_}
  3550. , /*decltype(_impl_._cached_size_)*/{}
  3551. , decltype(_impl_.key_) {}
  3552. , decltype(_impl_.space_id_) {}
  3553. , decltype(_impl_.odom_){nullptr}
  3554. , decltype(_impl_.selected_traj_){nullptr}
  3555. , decltype(_impl_.predict_traj_){nullptr}
  3556. , decltype(_impl_.statu_) {}
  3557. , decltype(_impl_.move_mode_) {}
  3558. , decltype(_impl_.main_agv_) {}
  3559. , decltype(_impl_.in_space_) {}
  3560. };
  3561. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3562. _impl_.key_.InitDefault();
  3563. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3564. _impl_.key_.Set("", GetArenaForAllocation());
  3565. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3566. if (!from._internal_key().empty()) {
  3567. _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
  3568. }
  3569. _impl_.space_id_.InitDefault();
  3570. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3571. _impl_.space_id_.Set("", GetArenaForAllocation());
  3572. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3573. if (!from._internal_space_id().empty()) {
  3574. _this->_impl_.space_id_.Set(from._internal_space_id(), _this->GetArenaForAllocation());
  3575. }
  3576. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  3577. _this->_impl_.odom_ = new ::NavMessage::LidarOdomStatu(*from._impl_.odom_);
  3578. }
  3579. if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
  3580. _this->_impl_.selected_traj_ = new ::NavMessage::Trajectory(*from._impl_.selected_traj_);
  3581. }
  3582. if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
  3583. _this->_impl_.predict_traj_ = new ::NavMessage::Trajectory(*from._impl_.predict_traj_);
  3584. }
  3585. ::memcpy(&_impl_.statu_, &from._impl_.statu_,
  3586. static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.in_space_) -
  3587. reinterpret_cast<char*>(&_impl_.statu_)) + sizeof(_impl_.in_space_));
  3588. // @@protoc_insertion_point(copy_constructor:NavMessage.NavStatu)
  3589. }
  3590. inline void NavStatu::SharedCtor(::_pb::Arena* arena) {
  3591. (void)arena;
  3592. new (&_impl_) Impl_{
  3593. decltype(_impl_._has_bits_){}
  3594. , /*decltype(_impl_._cached_size_)*/{}
  3595. , decltype(_impl_.key_) {}
  3596. , decltype(_impl_.space_id_) {}
  3597. , decltype(_impl_.odom_){nullptr}
  3598. , decltype(_impl_.selected_traj_){nullptr}
  3599. , decltype(_impl_.predict_traj_){nullptr}
  3600. , decltype(_impl_.statu_) { 0 }
  3601. , decltype(_impl_.move_mode_) { 0 }
  3602. , decltype(_impl_.main_agv_) { false }
  3603. , decltype(_impl_.in_space_) { false }
  3604. };
  3605. _impl_.key_.InitDefault();
  3606. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3607. _impl_.key_.Set("", GetArenaForAllocation());
  3608. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3609. _impl_.space_id_.InitDefault();
  3610. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3611. _impl_.space_id_.Set("", GetArenaForAllocation());
  3612. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  3613. }
  3614. NavStatu::~NavStatu() {
  3615. // @@protoc_insertion_point(destructor:NavMessage.NavStatu)
  3616. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  3617. (void)arena;
  3618. return;
  3619. }
  3620. SharedDtor();
  3621. }
  3622. inline void NavStatu::SharedDtor() {
  3623. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  3624. _impl_.key_.Destroy();
  3625. _impl_.space_id_.Destroy();
  3626. if (this != internal_default_instance()) delete _impl_.odom_;
  3627. if (this != internal_default_instance()) delete _impl_.selected_traj_;
  3628. if (this != internal_default_instance()) delete _impl_.predict_traj_;
  3629. }
  3630. void NavStatu::SetCachedSize(int size) const {
  3631. _impl_._cached_size_.Set(size);
  3632. }
  3633. void NavStatu::Clear() {
  3634. // @@protoc_insertion_point(message_clear_start:NavMessage.NavStatu)
  3635. ::uint32_t cached_has_bits = 0;
  3636. // Prevent compiler warnings about cached_has_bits being unused
  3637. (void) cached_has_bits;
  3638. _impl_.key_.ClearToEmpty();
  3639. _impl_.space_id_.ClearToEmpty();
  3640. cached_has_bits = _impl_._has_bits_[0];
  3641. if (cached_has_bits & 0x00000007u) {
  3642. if (cached_has_bits & 0x00000001u) {
  3643. ABSL_DCHECK(_impl_.odom_ != nullptr);
  3644. _impl_.odom_->Clear();
  3645. }
  3646. if (cached_has_bits & 0x00000002u) {
  3647. ABSL_DCHECK(_impl_.selected_traj_ != nullptr);
  3648. _impl_.selected_traj_->Clear();
  3649. }
  3650. if (cached_has_bits & 0x00000004u) {
  3651. ABSL_DCHECK(_impl_.predict_traj_ != nullptr);
  3652. _impl_.predict_traj_->Clear();
  3653. }
  3654. }
  3655. ::memset(&_impl_.statu_, 0, static_cast<::size_t>(
  3656. reinterpret_cast<char*>(&_impl_.in_space_) -
  3657. reinterpret_cast<char*>(&_impl_.statu_)) + sizeof(_impl_.in_space_));
  3658. _impl_._has_bits_.Clear();
  3659. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  3660. }
  3661. const char* NavStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  3662. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  3663. _Internal::HasBits has_bits{};
  3664. while (!ctx->Done(&ptr)) {
  3665. ::uint32_t tag;
  3666. ptr = ::_pbi::ReadTag(ptr, &tag);
  3667. switch (tag >> 3) {
  3668. // int32 statu = 1;
  3669. case 1:
  3670. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
  3671. _impl_.statu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3672. CHK_(ptr);
  3673. } else {
  3674. goto handle_unusual;
  3675. }
  3676. continue;
  3677. // bool main_agv = 2;
  3678. case 2:
  3679. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
  3680. _impl_.main_agv_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3681. CHK_(ptr);
  3682. } else {
  3683. goto handle_unusual;
  3684. }
  3685. continue;
  3686. // int32 move_mode = 3;
  3687. case 3:
  3688. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
  3689. _impl_.move_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
  3690. CHK_(ptr);
  3691. } else {
  3692. goto handle_unusual;
  3693. }
  3694. continue;
  3695. // .NavMessage.LidarOdomStatu odom = 4;
  3696. case 4:
  3697. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  3698. ptr = ctx->ParseMessage(_internal_mutable_odom(), ptr);
  3699. CHK_(ptr);
  3700. } else {
  3701. goto handle_unusual;
  3702. }
  3703. continue;
  3704. // string key = 5;
  3705. case 5:
  3706. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
  3707. auto str = _internal_mutable_key();
  3708. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  3709. CHK_(ptr);
  3710. CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavStatu.key"));
  3711. } else {
  3712. goto handle_unusual;
  3713. }
  3714. continue;
  3715. // .NavMessage.Trajectory selected_traj = 6;
  3716. case 6:
  3717. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
  3718. ptr = ctx->ParseMessage(_internal_mutable_selected_traj(), ptr);
  3719. CHK_(ptr);
  3720. } else {
  3721. goto handle_unusual;
  3722. }
  3723. continue;
  3724. // .NavMessage.Trajectory predict_traj = 7;
  3725. case 7:
  3726. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
  3727. ptr = ctx->ParseMessage(_internal_mutable_predict_traj(), ptr);
  3728. CHK_(ptr);
  3729. } else {
  3730. goto handle_unusual;
  3731. }
  3732. continue;
  3733. // bool in_space = 8;
  3734. case 8:
  3735. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
  3736. _impl_.in_space_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
  3737. CHK_(ptr);
  3738. } else {
  3739. goto handle_unusual;
  3740. }
  3741. continue;
  3742. // string space_id = 9;
  3743. case 9:
  3744. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
  3745. auto str = _internal_mutable_space_id();
  3746. ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
  3747. CHK_(ptr);
  3748. CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavStatu.space_id"));
  3749. } else {
  3750. goto handle_unusual;
  3751. }
  3752. continue;
  3753. default:
  3754. goto handle_unusual;
  3755. } // switch
  3756. handle_unusual:
  3757. if ((tag == 0) || ((tag & 7) == 4)) {
  3758. CHK_(ptr);
  3759. ctx->SetLastTag(tag);
  3760. goto message_done;
  3761. }
  3762. ptr = UnknownFieldParse(
  3763. tag,
  3764. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  3765. ptr, ctx);
  3766. CHK_(ptr != nullptr);
  3767. } // while
  3768. message_done:
  3769. _impl_._has_bits_.Or(has_bits);
  3770. return ptr;
  3771. failure:
  3772. ptr = nullptr;
  3773. goto message_done;
  3774. #undef CHK_
  3775. }
  3776. ::uint8_t* NavStatu::_InternalSerialize(
  3777. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  3778. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavStatu)
  3779. ::uint32_t cached_has_bits = 0;
  3780. (void) cached_has_bits;
  3781. // int32 statu = 1;
  3782. if (this->_internal_statu() != 0) {
  3783. target = stream->EnsureSpace(target);
  3784. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  3785. 1, this->_internal_statu(), target);
  3786. }
  3787. // bool main_agv = 2;
  3788. if (this->_internal_main_agv() != 0) {
  3789. target = stream->EnsureSpace(target);
  3790. target = ::_pbi::WireFormatLite::WriteBoolToArray(
  3791. 2, this->_internal_main_agv(), target);
  3792. }
  3793. // int32 move_mode = 3;
  3794. if (this->_internal_move_mode() != 0) {
  3795. target = stream->EnsureSpace(target);
  3796. target = ::_pbi::WireFormatLite::WriteInt32ToArray(
  3797. 3, this->_internal_move_mode(), target);
  3798. }
  3799. cached_has_bits = _impl_._has_bits_[0];
  3800. // .NavMessage.LidarOdomStatu odom = 4;
  3801. if (cached_has_bits & 0x00000001u) {
  3802. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3803. InternalWriteMessage(4, _Internal::odom(this),
  3804. _Internal::odom(this).GetCachedSize(), target, stream);
  3805. }
  3806. // string key = 5;
  3807. if (!this->_internal_key().empty()) {
  3808. const std::string& _s = this->_internal_key();
  3809. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3810. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavStatu.key");
  3811. target = stream->WriteStringMaybeAliased(5, _s, target);
  3812. }
  3813. // .NavMessage.Trajectory selected_traj = 6;
  3814. if (cached_has_bits & 0x00000002u) {
  3815. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3816. InternalWriteMessage(6, _Internal::selected_traj(this),
  3817. _Internal::selected_traj(this).GetCachedSize(), target, stream);
  3818. }
  3819. // .NavMessage.Trajectory predict_traj = 7;
  3820. if (cached_has_bits & 0x00000004u) {
  3821. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  3822. InternalWriteMessage(7, _Internal::predict_traj(this),
  3823. _Internal::predict_traj(this).GetCachedSize(), target, stream);
  3824. }
  3825. // bool in_space = 8;
  3826. if (this->_internal_in_space() != 0) {
  3827. target = stream->EnsureSpace(target);
  3828. target = ::_pbi::WireFormatLite::WriteBoolToArray(
  3829. 8, this->_internal_in_space(), target);
  3830. }
  3831. // string space_id = 9;
  3832. if (!this->_internal_space_id().empty()) {
  3833. const std::string& _s = this->_internal_space_id();
  3834. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  3835. _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavStatu.space_id");
  3836. target = stream->WriteStringMaybeAliased(9, _s, target);
  3837. }
  3838. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  3839. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  3840. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  3841. }
  3842. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavStatu)
  3843. return target;
  3844. }
  3845. ::size_t NavStatu::ByteSizeLong() const {
  3846. // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavStatu)
  3847. ::size_t total_size = 0;
  3848. ::uint32_t cached_has_bits = 0;
  3849. // Prevent compiler warnings about cached_has_bits being unused
  3850. (void) cached_has_bits;
  3851. // string key = 5;
  3852. if (!this->_internal_key().empty()) {
  3853. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3854. this->_internal_key());
  3855. }
  3856. // string space_id = 9;
  3857. if (!this->_internal_space_id().empty()) {
  3858. total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  3859. this->_internal_space_id());
  3860. }
  3861. cached_has_bits = _impl_._has_bits_[0];
  3862. if (cached_has_bits & 0x00000007u) {
  3863. // .NavMessage.LidarOdomStatu odom = 4;
  3864. if (cached_has_bits & 0x00000001u) {
  3865. total_size += 1 +
  3866. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  3867. *_impl_.odom_);
  3868. }
  3869. // .NavMessage.Trajectory selected_traj = 6;
  3870. if (cached_has_bits & 0x00000002u) {
  3871. total_size += 1 +
  3872. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  3873. *_impl_.selected_traj_);
  3874. }
  3875. // .NavMessage.Trajectory predict_traj = 7;
  3876. if (cached_has_bits & 0x00000004u) {
  3877. total_size += 1 +
  3878. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  3879. *_impl_.predict_traj_);
  3880. }
  3881. }
  3882. // int32 statu = 1;
  3883. if (this->_internal_statu() != 0) {
  3884. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  3885. this->_internal_statu());
  3886. }
  3887. // int32 move_mode = 3;
  3888. if (this->_internal_move_mode() != 0) {
  3889. total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
  3890. this->_internal_move_mode());
  3891. }
  3892. // bool main_agv = 2;
  3893. if (this->_internal_main_agv() != 0) {
  3894. total_size += 2;
  3895. }
  3896. // bool in_space = 8;
  3897. if (this->_internal_in_space() != 0) {
  3898. total_size += 2;
  3899. }
  3900. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  3901. }
  3902. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NavStatu::_class_data_ = {
  3903. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  3904. NavStatu::MergeImpl
  3905. };
  3906. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NavStatu::GetClassData() const { return &_class_data_; }
  3907. void NavStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  3908. auto* const _this = static_cast<NavStatu*>(&to_msg);
  3909. auto& from = static_cast<const NavStatu&>(from_msg);
  3910. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavStatu)
  3911. ABSL_DCHECK_NE(&from, _this);
  3912. ::uint32_t cached_has_bits = 0;
  3913. (void) cached_has_bits;
  3914. if (!from._internal_key().empty()) {
  3915. _this->_internal_set_key(from._internal_key());
  3916. }
  3917. if (!from._internal_space_id().empty()) {
  3918. _this->_internal_set_space_id(from._internal_space_id());
  3919. }
  3920. cached_has_bits = from._impl_._has_bits_[0];
  3921. if (cached_has_bits & 0x00000007u) {
  3922. if (cached_has_bits & 0x00000001u) {
  3923. _this->_internal_mutable_odom()->::NavMessage::LidarOdomStatu::MergeFrom(
  3924. from._internal_odom());
  3925. }
  3926. if (cached_has_bits & 0x00000002u) {
  3927. _this->_internal_mutable_selected_traj()->::NavMessage::Trajectory::MergeFrom(
  3928. from._internal_selected_traj());
  3929. }
  3930. if (cached_has_bits & 0x00000004u) {
  3931. _this->_internal_mutable_predict_traj()->::NavMessage::Trajectory::MergeFrom(
  3932. from._internal_predict_traj());
  3933. }
  3934. }
  3935. if (from._internal_statu() != 0) {
  3936. _this->_internal_set_statu(from._internal_statu());
  3937. }
  3938. if (from._internal_move_mode() != 0) {
  3939. _this->_internal_set_move_mode(from._internal_move_mode());
  3940. }
  3941. if (from._internal_main_agv() != 0) {
  3942. _this->_internal_set_main_agv(from._internal_main_agv());
  3943. }
  3944. if (from._internal_in_space() != 0) {
  3945. _this->_internal_set_in_space(from._internal_in_space());
  3946. }
  3947. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  3948. }
  3949. void NavStatu::CopyFrom(const NavStatu& from) {
  3950. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavStatu)
  3951. if (&from == this) return;
  3952. Clear();
  3953. MergeFrom(from);
  3954. }
  3955. bool NavStatu::IsInitialized() const {
  3956. return true;
  3957. }
  3958. void NavStatu::InternalSwap(NavStatu* other) {
  3959. using std::swap;
  3960. auto* lhs_arena = GetArenaForAllocation();
  3961. auto* rhs_arena = other->GetArenaForAllocation();
  3962. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  3963. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  3964. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
  3965. &other->_impl_.key_, rhs_arena);
  3966. ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.space_id_, lhs_arena,
  3967. &other->_impl_.space_id_, rhs_arena);
  3968. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  3969. PROTOBUF_FIELD_OFFSET(NavStatu, _impl_.in_space_)
  3970. + sizeof(NavStatu::_impl_.in_space_)
  3971. - PROTOBUF_FIELD_OFFSET(NavStatu, _impl_.odom_)>(
  3972. reinterpret_cast<char*>(&_impl_.odom_),
  3973. reinterpret_cast<char*>(&other->_impl_.odom_));
  3974. }
  3975. ::PROTOBUF_NAMESPACE_ID::Metadata NavStatu::GetMetadata() const {
  3976. return ::_pbi::AssignDescriptors(
  3977. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  3978. file_level_metadata_message_2eproto[10]);
  3979. }
  3980. // ===================================================================
  3981. class RobotStatu::_Internal {
  3982. public:
  3983. using HasBits = decltype(std::declval<RobotStatu>()._impl_._has_bits_);
  3984. static constexpr ::int32_t kHasBitsOffset =
  3985. 8 * PROTOBUF_FIELD_OFFSET(RobotStatu, _impl_._has_bits_);
  3986. static const ::NavMessage::AgvStatu& agvstatu(const RobotStatu* msg);
  3987. static void set_has_agvstatu(HasBits* has_bits) {
  3988. (*has_bits)[0] |= 1u;
  3989. }
  3990. };
  3991. const ::NavMessage::AgvStatu&
  3992. RobotStatu::_Internal::agvstatu(const RobotStatu* msg) {
  3993. return *msg->_impl_.agvstatu_;
  3994. }
  3995. RobotStatu::RobotStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  3996. : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  3997. SharedCtor(arena);
  3998. // @@protoc_insertion_point(arena_constructor:NavMessage.RobotStatu)
  3999. }
  4000. RobotStatu::RobotStatu(const RobotStatu& from)
  4001. : ::PROTOBUF_NAMESPACE_ID::Message() {
  4002. RobotStatu* const _this = this; (void)_this;
  4003. new (&_impl_) Impl_{
  4004. decltype(_impl_._has_bits_){from._impl_._has_bits_}
  4005. , /*decltype(_impl_._cached_size_)*/{}
  4006. , decltype(_impl_.agvstatu_){nullptr}
  4007. , decltype(_impl_.x_) {}
  4008. , decltype(_impl_.y_) {}
  4009. , decltype(_impl_.theta_) {}
  4010. };
  4011. _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4012. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  4013. _this->_impl_.agvstatu_ = new ::NavMessage::AgvStatu(*from._impl_.agvstatu_);
  4014. }
  4015. ::memcpy(&_impl_.x_, &from._impl_.x_,
  4016. static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.theta_) -
  4017. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
  4018. // @@protoc_insertion_point(copy_constructor:NavMessage.RobotStatu)
  4019. }
  4020. inline void RobotStatu::SharedCtor(::_pb::Arena* arena) {
  4021. (void)arena;
  4022. new (&_impl_) Impl_{
  4023. decltype(_impl_._has_bits_){}
  4024. , /*decltype(_impl_._cached_size_)*/{}
  4025. , decltype(_impl_.agvstatu_){nullptr}
  4026. , decltype(_impl_.x_) { 0 }
  4027. , decltype(_impl_.y_) { 0 }
  4028. , decltype(_impl_.theta_) { 0 }
  4029. };
  4030. }
  4031. RobotStatu::~RobotStatu() {
  4032. // @@protoc_insertion_point(destructor:NavMessage.RobotStatu)
  4033. if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  4034. (void)arena;
  4035. return;
  4036. }
  4037. SharedDtor();
  4038. }
  4039. inline void RobotStatu::SharedDtor() {
  4040. ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  4041. if (this != internal_default_instance()) delete _impl_.agvstatu_;
  4042. }
  4043. void RobotStatu::SetCachedSize(int size) const {
  4044. _impl_._cached_size_.Set(size);
  4045. }
  4046. void RobotStatu::Clear() {
  4047. // @@protoc_insertion_point(message_clear_start:NavMessage.RobotStatu)
  4048. ::uint32_t cached_has_bits = 0;
  4049. // Prevent compiler warnings about cached_has_bits being unused
  4050. (void) cached_has_bits;
  4051. cached_has_bits = _impl_._has_bits_[0];
  4052. if (cached_has_bits & 0x00000001u) {
  4053. ABSL_DCHECK(_impl_.agvstatu_ != nullptr);
  4054. _impl_.agvstatu_->Clear();
  4055. }
  4056. ::memset(&_impl_.x_, 0, static_cast<::size_t>(
  4057. reinterpret_cast<char*>(&_impl_.theta_) -
  4058. reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
  4059. _impl_._has_bits_.Clear();
  4060. _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  4061. }
  4062. const char* RobotStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
  4063. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  4064. _Internal::HasBits has_bits{};
  4065. while (!ctx->Done(&ptr)) {
  4066. ::uint32_t tag;
  4067. ptr = ::_pbi::ReadTag(ptr, &tag);
  4068. switch (tag >> 3) {
  4069. // float x = 1;
  4070. case 1:
  4071. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
  4072. _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  4073. ptr += sizeof(float);
  4074. } else {
  4075. goto handle_unusual;
  4076. }
  4077. continue;
  4078. // float y = 2;
  4079. case 2:
  4080. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
  4081. _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  4082. ptr += sizeof(float);
  4083. } else {
  4084. goto handle_unusual;
  4085. }
  4086. continue;
  4087. // float theta = 3;
  4088. case 3:
  4089. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
  4090. _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
  4091. ptr += sizeof(float);
  4092. } else {
  4093. goto handle_unusual;
  4094. }
  4095. continue;
  4096. // .NavMessage.AgvStatu agvStatu = 4;
  4097. case 4:
  4098. if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
  4099. ptr = ctx->ParseMessage(_internal_mutable_agvstatu(), ptr);
  4100. CHK_(ptr);
  4101. } else {
  4102. goto handle_unusual;
  4103. }
  4104. continue;
  4105. default:
  4106. goto handle_unusual;
  4107. } // switch
  4108. handle_unusual:
  4109. if ((tag == 0) || ((tag & 7) == 4)) {
  4110. CHK_(ptr);
  4111. ctx->SetLastTag(tag);
  4112. goto message_done;
  4113. }
  4114. ptr = UnknownFieldParse(
  4115. tag,
  4116. _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
  4117. ptr, ctx);
  4118. CHK_(ptr != nullptr);
  4119. } // while
  4120. message_done:
  4121. _impl_._has_bits_.Or(has_bits);
  4122. return ptr;
  4123. failure:
  4124. ptr = nullptr;
  4125. goto message_done;
  4126. #undef CHK_
  4127. }
  4128. ::uint8_t* RobotStatu::_InternalSerialize(
  4129. ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  4130. // @@protoc_insertion_point(serialize_to_array_start:NavMessage.RobotStatu)
  4131. ::uint32_t cached_has_bits = 0;
  4132. (void) cached_has_bits;
  4133. // float x = 1;
  4134. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4135. float tmp_x = this->_internal_x();
  4136. ::uint32_t raw_x;
  4137. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  4138. if (raw_x != 0) {
  4139. target = stream->EnsureSpace(target);
  4140. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  4141. 1, this->_internal_x(), target);
  4142. }
  4143. // float y = 2;
  4144. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4145. float tmp_y = this->_internal_y();
  4146. ::uint32_t raw_y;
  4147. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  4148. if (raw_y != 0) {
  4149. target = stream->EnsureSpace(target);
  4150. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  4151. 2, this->_internal_y(), target);
  4152. }
  4153. // float theta = 3;
  4154. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4155. float tmp_theta = this->_internal_theta();
  4156. ::uint32_t raw_theta;
  4157. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  4158. if (raw_theta != 0) {
  4159. target = stream->EnsureSpace(target);
  4160. target = ::_pbi::WireFormatLite::WriteFloatToArray(
  4161. 3, this->_internal_theta(), target);
  4162. }
  4163. cached_has_bits = _impl_._has_bits_[0];
  4164. // .NavMessage.AgvStatu agvStatu = 4;
  4165. if (cached_has_bits & 0x00000001u) {
  4166. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
  4167. InternalWriteMessage(4, _Internal::agvstatu(this),
  4168. _Internal::agvstatu(this).GetCachedSize(), target, stream);
  4169. }
  4170. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  4171. target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
  4172. _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  4173. }
  4174. // @@protoc_insertion_point(serialize_to_array_end:NavMessage.RobotStatu)
  4175. return target;
  4176. }
  4177. ::size_t RobotStatu::ByteSizeLong() const {
  4178. // @@protoc_insertion_point(message_byte_size_start:NavMessage.RobotStatu)
  4179. ::size_t total_size = 0;
  4180. ::uint32_t cached_has_bits = 0;
  4181. // Prevent compiler warnings about cached_has_bits being unused
  4182. (void) cached_has_bits;
  4183. // .NavMessage.AgvStatu agvStatu = 4;
  4184. cached_has_bits = _impl_._has_bits_[0];
  4185. if (cached_has_bits & 0x00000001u) {
  4186. total_size += 1 +
  4187. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
  4188. *_impl_.agvstatu_);
  4189. }
  4190. // float x = 1;
  4191. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4192. float tmp_x = this->_internal_x();
  4193. ::uint32_t raw_x;
  4194. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  4195. if (raw_x != 0) {
  4196. total_size += 5;
  4197. }
  4198. // float y = 2;
  4199. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4200. float tmp_y = this->_internal_y();
  4201. ::uint32_t raw_y;
  4202. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  4203. if (raw_y != 0) {
  4204. total_size += 5;
  4205. }
  4206. // float theta = 3;
  4207. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4208. float tmp_theta = this->_internal_theta();
  4209. ::uint32_t raw_theta;
  4210. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  4211. if (raw_theta != 0) {
  4212. total_size += 5;
  4213. }
  4214. return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
  4215. }
  4216. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RobotStatu::_class_data_ = {
  4217. ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
  4218. RobotStatu::MergeImpl
  4219. };
  4220. const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RobotStatu::GetClassData() const { return &_class_data_; }
  4221. void RobotStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
  4222. auto* const _this = static_cast<RobotStatu*>(&to_msg);
  4223. auto& from = static_cast<const RobotStatu&>(from_msg);
  4224. // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.RobotStatu)
  4225. ABSL_DCHECK_NE(&from, _this);
  4226. ::uint32_t cached_has_bits = 0;
  4227. (void) cached_has_bits;
  4228. if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
  4229. _this->_internal_mutable_agvstatu()->::NavMessage::AgvStatu::MergeFrom(
  4230. from._internal_agvstatu());
  4231. }
  4232. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4233. float tmp_x = from._internal_x();
  4234. ::uint32_t raw_x;
  4235. memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
  4236. if (raw_x != 0) {
  4237. _this->_internal_set_x(from._internal_x());
  4238. }
  4239. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4240. float tmp_y = from._internal_y();
  4241. ::uint32_t raw_y;
  4242. memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
  4243. if (raw_y != 0) {
  4244. _this->_internal_set_y(from._internal_y());
  4245. }
  4246. static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
  4247. float tmp_theta = from._internal_theta();
  4248. ::uint32_t raw_theta;
  4249. memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
  4250. if (raw_theta != 0) {
  4251. _this->_internal_set_theta(from._internal_theta());
  4252. }
  4253. _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  4254. }
  4255. void RobotStatu::CopyFrom(const RobotStatu& from) {
  4256. // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.RobotStatu)
  4257. if (&from == this) return;
  4258. Clear();
  4259. MergeFrom(from);
  4260. }
  4261. bool RobotStatu::IsInitialized() const {
  4262. return true;
  4263. }
  4264. void RobotStatu::InternalSwap(RobotStatu* other) {
  4265. using std::swap;
  4266. _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  4267. swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  4268. ::PROTOBUF_NAMESPACE_ID::internal::memswap<
  4269. PROTOBUF_FIELD_OFFSET(RobotStatu, _impl_.theta_)
  4270. + sizeof(RobotStatu::_impl_.theta_)
  4271. - PROTOBUF_FIELD_OFFSET(RobotStatu, _impl_.agvstatu_)>(
  4272. reinterpret_cast<char*>(&_impl_.agvstatu_),
  4273. reinterpret_cast<char*>(&other->_impl_.agvstatu_));
  4274. }
  4275. ::PROTOBUF_NAMESPACE_ID::Metadata RobotStatu::GetMetadata() const {
  4276. return ::_pbi::AssignDescriptors(
  4277. &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
  4278. file_level_metadata_message_2eproto[11]);
  4279. }
  4280. // @@protoc_insertion_point(namespace_scope)
  4281. } // namespace NavMessage
  4282. PROTOBUF_NAMESPACE_OPEN
  4283. template<> PROTOBUF_NOINLINE ::NavMessage::LidarOdomStatu*
  4284. Arena::CreateMaybeMessage< ::NavMessage::LidarOdomStatu >(Arena* arena) {
  4285. return Arena::CreateMessageInternal< ::NavMessage::LidarOdomStatu >(arena);
  4286. }
  4287. template<> PROTOBUF_NOINLINE ::NavMessage::AgvStatu*
  4288. Arena::CreateMaybeMessage< ::NavMessage::AgvStatu >(Arena* arena) {
  4289. return Arena::CreateMessageInternal< ::NavMessage::AgvStatu >(arena);
  4290. }
  4291. template<> PROTOBUF_NOINLINE ::NavMessage::ToAgvCmd*
  4292. Arena::CreateMaybeMessage< ::NavMessage::ToAgvCmd >(Arena* arena) {
  4293. return Arena::CreateMessageInternal< ::NavMessage::ToAgvCmd >(arena);
  4294. }
  4295. template<> PROTOBUF_NOINLINE ::NavMessage::Pose2d*
  4296. Arena::CreateMaybeMessage< ::NavMessage::Pose2d >(Arena* arena) {
  4297. return Arena::CreateMessageInternal< ::NavMessage::Pose2d >(arena);
  4298. }
  4299. template<> PROTOBUF_NOINLINE ::NavMessage::PathNode*
  4300. Arena::CreateMaybeMessage< ::NavMessage::PathNode >(Arena* arena) {
  4301. return Arena::CreateMessageInternal< ::NavMessage::PathNode >(arena);
  4302. }
  4303. template<> PROTOBUF_NOINLINE ::NavMessage::Trajectory*
  4304. Arena::CreateMaybeMessage< ::NavMessage::Trajectory >(Arena* arena) {
  4305. return Arena::CreateMessageInternal< ::NavMessage::Trajectory >(arena);
  4306. }
  4307. template<> PROTOBUF_NOINLINE ::NavMessage::NewAction*
  4308. Arena::CreateMaybeMessage< ::NavMessage::NewAction >(Arena* arena) {
  4309. return Arena::CreateMessageInternal< ::NavMessage::NewAction >(arena);
  4310. }
  4311. template<> PROTOBUF_NOINLINE ::NavMessage::NavCmd*
  4312. Arena::CreateMaybeMessage< ::NavMessage::NavCmd >(Arena* arena) {
  4313. return Arena::CreateMessageInternal< ::NavMessage::NavCmd >(arena);
  4314. }
  4315. template<> PROTOBUF_NOINLINE ::NavMessage::NavResponse*
  4316. Arena::CreateMaybeMessage< ::NavMessage::NavResponse >(Arena* arena) {
  4317. return Arena::CreateMessageInternal< ::NavMessage::NavResponse >(arena);
  4318. }
  4319. template<> PROTOBUF_NOINLINE ::NavMessage::ManualCmd*
  4320. Arena::CreateMaybeMessage< ::NavMessage::ManualCmd >(Arena* arena) {
  4321. return Arena::CreateMessageInternal< ::NavMessage::ManualCmd >(arena);
  4322. }
  4323. template<> PROTOBUF_NOINLINE ::NavMessage::NavStatu*
  4324. Arena::CreateMaybeMessage< ::NavMessage::NavStatu >(Arena* arena) {
  4325. return Arena::CreateMessageInternal< ::NavMessage::NavStatu >(arena);
  4326. }
  4327. template<> PROTOBUF_NOINLINE ::NavMessage::RobotStatu*
  4328. Arena::CreateMaybeMessage< ::NavMessage::RobotStatu >(Arena* arena) {
  4329. return Arena::CreateMessageInternal< ::NavMessage::RobotStatu >(arena);
  4330. }
  4331. PROTOBUF_NAMESPACE_CLOSE
  4332. // @@protoc_insertion_point(global_scope)
  4333. #include "google/protobuf/port_undef.inc"