message.pb.cc 161 KB

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