message.pb.cc 158 KB

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