message.pb.cc 156 KB

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