message.pb.cc 174 KB

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