message.pb.cc 145 KB

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