message.pb.cc 176 KB

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