message.pb.cc 173 KB

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