12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: message.proto
- #include "message.pb.h"
- #include <algorithm>
- #include "google/protobuf/io/coded_stream.h"
- #include "google/protobuf/extension_set.h"
- #include "google/protobuf/wire_format_lite.h"
- #include "google/protobuf/descriptor.h"
- #include "google/protobuf/generated_message_reflection.h"
- #include "google/protobuf/reflection_ops.h"
- #include "google/protobuf/wire_format.h"
- // @@protoc_insertion_point(includes)
- // Must be included last.
- #include "google/protobuf/port_def.inc"
- PROTOBUF_PRAGMA_INIT_SEG
- namespace _pb = ::PROTOBUF_NAMESPACE_ID;
- namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
- namespace NavMessage {
- template <typename>
- PROTOBUF_CONSTEXPR LidarOdomStatu::LidarOdomStatu(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.x_)*/ 0
- , /*decltype(_impl_.y_)*/ 0
- , /*decltype(_impl_.theta_)*/ 0
- , /*decltype(_impl_.v_)*/ 0
- , /*decltype(_impl_.vth_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct LidarOdomStatuDefaultTypeInternal {
- PROTOBUF_CONSTEXPR LidarOdomStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~LidarOdomStatuDefaultTypeInternal() {}
- union {
- LidarOdomStatu _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 LidarOdomStatuDefaultTypeInternal _LidarOdomStatu_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR AgvStatu::AgvStatu(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.v_)*/ 0
- , /*decltype(_impl_.w_)*/ 0
- , /*decltype(_impl_.clamp_)*/ 0
- , /*decltype(_impl_.clamp_other_)*/ 0
- , /*decltype(_impl_.lifter_)*/ 0
- , /*decltype(_impl_.lifter_other_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct AgvStatuDefaultTypeInternal {
- PROTOBUF_CONSTEXPR AgvStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~AgvStatuDefaultTypeInternal() {}
- union {
- AgvStatu _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 AgvStatuDefaultTypeInternal _AgvStatu_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR ToAgvCmd::ToAgvCmd(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.h_)*/ 0
- , /*decltype(_impl_.m_)*/ 0
- , /*decltype(_impl_.t_)*/ 0
- , /*decltype(_impl_.v_)*/ 0
- , /*decltype(_impl_.w_)*/ 0
- , /*decltype(_impl_.l_)*/ 0
- , /*decltype(_impl_.p_)*/ 0
- , /*decltype(_impl_.d_)*/ 0
- , /*decltype(_impl_.end_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct ToAgvCmdDefaultTypeInternal {
- PROTOBUF_CONSTEXPR ToAgvCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~ToAgvCmdDefaultTypeInternal() {}
- union {
- ToAgvCmd _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ToAgvCmdDefaultTypeInternal _ToAgvCmd_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR Pose2d::Pose2d(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.x_)*/ 0
- , /*decltype(_impl_.y_)*/ 0
- , /*decltype(_impl_.theta_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct Pose2dDefaultTypeInternal {
- PROTOBUF_CONSTEXPR Pose2dDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~Pose2dDefaultTypeInternal() {}
- union {
- Pose2d _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Pose2dDefaultTypeInternal _Pose2d_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR PathNode::PathNode(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.id_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.x_)*/ 0
- , /*decltype(_impl_.y_)*/ 0
- , /*decltype(_impl_.l_)*/ 0
- , /*decltype(_impl_.w_)*/ 0
- , /*decltype(_impl_.theta_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct PathNodeDefaultTypeInternal {
- PROTOBUF_CONSTEXPR PathNodeDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~PathNodeDefaultTypeInternal() {}
- union {
- PathNode _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PathNodeDefaultTypeInternal _PathNode_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR Trajectory::Trajectory(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.poses_)*/{}
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct TrajectoryDefaultTypeInternal {
- PROTOBUF_CONSTEXPR TrajectoryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~TrajectoryDefaultTypeInternal() {}
- union {
- Trajectory _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TrajectoryDefaultTypeInternal _Trajectory_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR NewAction::NewAction(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_._has_bits_)*/{}
- , /*decltype(_impl_._cached_size_)*/{}
- , /*decltype(_impl_.pathnodes_)*/{}
- , /*decltype(_impl_.spacenode_)*/nullptr
- , /*decltype(_impl_.passnode_)*/nullptr
- , /*decltype(_impl_.streetnode_)*/nullptr
- , /*decltype(_impl_.type_)*/ 0
- , /*decltype(_impl_.wheelbase_)*/ 0
- , /*decltype(_impl_.changedmode_)*/ 0
- } {}
- struct NewActionDefaultTypeInternal {
- PROTOBUF_CONSTEXPR NewActionDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~NewActionDefaultTypeInternal() {}
- union {
- NewAction _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NewActionDefaultTypeInternal _NewAction_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR NavCmd::NavCmd(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.newactions_)*/{}
- , /*decltype(_impl_.key_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.action_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct NavCmdDefaultTypeInternal {
- PROTOBUF_CONSTEXPR NavCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~NavCmdDefaultTypeInternal() {}
- union {
- NavCmd _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavCmdDefaultTypeInternal _NavCmd_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR NavResponse::NavResponse(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.info_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.ret_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct NavResponseDefaultTypeInternal {
- PROTOBUF_CONSTEXPR NavResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~NavResponseDefaultTypeInternal() {}
- union {
- NavResponse _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavResponseDefaultTypeInternal _NavResponse_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR ManualCmd::ManualCmd(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_.key_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.operation_type_)*/ 0
- , /*decltype(_impl_.velocity_)*/ 0
- , /*decltype(_impl_._cached_size_)*/{}} {}
- struct ManualCmdDefaultTypeInternal {
- PROTOBUF_CONSTEXPR ManualCmdDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~ManualCmdDefaultTypeInternal() {}
- union {
- ManualCmd _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ManualCmdDefaultTypeInternal _ManualCmd_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR NavStatu::NavStatu(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_._has_bits_)*/{}
- , /*decltype(_impl_._cached_size_)*/{}
- , /*decltype(_impl_.key_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.space_id_)*/ {
- &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
- }
- , /*decltype(_impl_.odom_)*/nullptr
- , /*decltype(_impl_.selected_traj_)*/nullptr
- , /*decltype(_impl_.predict_traj_)*/nullptr
- , /*decltype(_impl_.statu_)*/ 0
- , /*decltype(_impl_.move_mode_)*/ 0
- , /*decltype(_impl_.main_agv_)*/ false
- , /*decltype(_impl_.in_space_)*/ false
- } {}
- struct NavStatuDefaultTypeInternal {
- PROTOBUF_CONSTEXPR NavStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~NavStatuDefaultTypeInternal() {}
- union {
- NavStatu _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 NavStatuDefaultTypeInternal _NavStatu_default_instance_;
- template <typename>
- PROTOBUF_CONSTEXPR RobotStatu::RobotStatu(
- ::_pbi::ConstantInitialized): _impl_{
- /*decltype(_impl_._has_bits_)*/{}
- , /*decltype(_impl_._cached_size_)*/{}
- , /*decltype(_impl_.agvstatu_)*/nullptr
- , /*decltype(_impl_.x_)*/ 0
- , /*decltype(_impl_.y_)*/ 0
- , /*decltype(_impl_.theta_)*/ 0
- } {}
- struct RobotStatuDefaultTypeInternal {
- PROTOBUF_CONSTEXPR RobotStatuDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
- ~RobotStatuDefaultTypeInternal() {}
- union {
- RobotStatu _instance;
- };
- };
- PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RobotStatuDefaultTypeInternal _RobotStatu_default_instance_;
- } // namespace NavMessage
- static ::_pb::Metadata file_level_metadata_message_2eproto[12];
- static constexpr const ::_pb::EnumDescriptor**
- file_level_enum_descriptors_message_2eproto = nullptr;
- static constexpr const ::_pb::ServiceDescriptor**
- file_level_service_descriptors_message_2eproto = nullptr;
- const ::uint32_t TableStruct_message_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(
- protodesc_cold) = {
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.theta_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.v_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::LidarOdomStatu, _impl_.vth_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.v_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.w_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.clamp_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.clamp_other_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.lifter_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::AgvStatu, _impl_.lifter_other_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.h_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.m_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.t_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.v_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.w_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.l_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.p_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.d_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ToAgvCmd, _impl_.end_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::Pose2d, _impl_.theta_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.l_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.w_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.theta_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::PathNode, _impl_.id_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::Trajectory, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::Trajectory, _impl_.poses_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.type_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.spacenode_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.passnode_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.streetnode_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.pathnodes_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.wheelbase_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NewAction, _impl_.changedmode_),
- ~0u,
- 0,
- 1,
- 2,
- ~0u,
- ~0u,
- ~0u,
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _impl_.action_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _impl_.key_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavCmd, _impl_.newactions_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _impl_.ret_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavResponse, _impl_.info_),
- ~0u, // no _has_bits_
- PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.key_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.operation_type_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::ManualCmd, _impl_.velocity_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.statu_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.main_agv_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.move_mode_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.odom_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.key_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.selected_traj_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.predict_traj_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.in_space_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::NavStatu, _impl_.space_id_),
- ~0u,
- ~0u,
- ~0u,
- 0,
- ~0u,
- 1,
- 2,
- ~0u,
- ~0u,
- PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_._has_bits_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- ~0u, // no _inlined_string_donated_
- ~0u, // no _split_
- ~0u, // no sizeof(Split)
- PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.x_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.y_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.theta_),
- PROTOBUF_FIELD_OFFSET(::NavMessage::RobotStatu, _impl_.agvstatu_),
- ~0u,
- ~0u,
- ~0u,
- 0,
- };
- static const ::_pbi::MigrationSchema
- schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, -1, sizeof(::NavMessage::LidarOdomStatu)},
- { 13, -1, -1, sizeof(::NavMessage::AgvStatu)},
- { 27, -1, -1, sizeof(::NavMessage::ToAgvCmd)},
- { 44, -1, -1, sizeof(::NavMessage::Pose2d)},
- { 55, -1, -1, sizeof(::NavMessage::PathNode)},
- { 69, -1, -1, sizeof(::NavMessage::Trajectory)},
- { 78, 93, -1, sizeof(::NavMessage::NewAction)},
- { 100, -1, -1, sizeof(::NavMessage::NavCmd)},
- { 111, -1, -1, sizeof(::NavMessage::NavResponse)},
- { 121, -1, -1, sizeof(::NavMessage::ManualCmd)},
- { 132, 149, -1, sizeof(::NavMessage::NavStatu)},
- { 158, 170, -1, sizeof(::NavMessage::RobotStatu)},
- };
- static const ::_pb::Message* const file_default_instances[] = {
- &::NavMessage::_LidarOdomStatu_default_instance_._instance,
- &::NavMessage::_AgvStatu_default_instance_._instance,
- &::NavMessage::_ToAgvCmd_default_instance_._instance,
- &::NavMessage::_Pose2d_default_instance_._instance,
- &::NavMessage::_PathNode_default_instance_._instance,
- &::NavMessage::_Trajectory_default_instance_._instance,
- &::NavMessage::_NewAction_default_instance_._instance,
- &::NavMessage::_NavCmd_default_instance_._instance,
- &::NavMessage::_NavResponse_default_instance_._instance,
- &::NavMessage::_ManualCmd_default_instance_._instance,
- &::NavMessage::_NavStatu_default_instance_._instance,
- &::NavMessage::_RobotStatu_default_instance_._instance,
- };
- const char descriptor_table_protodef_message_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
- "\n\rmessage.proto\022\nNavMessage\"M\n\016LidarOdom"
- "Statu\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005theta\030\003 \001"
- "(\002\022\t\n\001v\030\004 \001(\002\022\013\n\003vth\030\005 \001(\002\"j\n\010AgvStatu\022\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\013c"
- "lamp_other\030\004 \001(\005\022\016\n\006lifter\030\005 \001(\005\022\024\n\014lift"
- "er_other\030\006 \001(\005\"o\n\010ToAgvCmd\022\t\n\001H\030\001 \001(\005\022\t\n"
- "\001M\030\002 \001(\005\022\t\n\001T\030\003 \001(\005\022\t\n\001V\030\004 \001(\002\022\t\n\001W\030\005 \001("
- "\002\022\t\n\001L\030\006 \001(\002\022\t\n\001P\030\007 \001(\005\022\t\n\001D\030\010 \001(\002\022\013\n\003en"
- "d\030\t \001(\005\"-\n\006Pose2d\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022"
- "\r\n\005theta\030\003 \001(\002\"Q\n\010PathNode\022\t\n\001x\030\001 \001(\002\022\t\n"
- "\001y\030\002 \001(\002\022\t\n\001l\030\003 \001(\002\022\t\n\001w\030\004 \001(\002\022\r\n\005theta\030"
- "\005 \001(\002\022\n\n\002id\030\006 \001(\t\"/\n\nTrajectory\022!\n\005poses"
- "\030\001 \003(\0132\022.NavMessage.Pose2d\"\345\001\n\tNewAction"
- "\022\014\n\004type\030\001 \001(\005\022\'\n\tspaceNode\030\002 \001(\0132\024.NavM"
- "essage.PathNode\022&\n\010passNode\030\003 \001(\0132\024.NavM"
- "essage.PathNode\022(\n\nstreetNode\030\004 \001(\0132\024.Na"
- "vMessage.PathNode\022\'\n\tpathNodes\030\005 \003(\0132\024.N"
- "avMessage.PathNode\022\021\n\twheelbase\030\006 \001(\002\022\023\n"
- "\013changedMode\030\007 \001(\005\"P\n\006NavCmd\022\016\n\006action\030\001"
- " \001(\005\022\013\n\003key\030\002 \001(\t\022)\n\nnewActions\030\005 \003(\0132\025."
- "NavMessage.NewAction\"(\n\013NavResponse\022\013\n\003r"
- "et\030\001 \001(\005\022\014\n\004info\030\002 \001(\t\"B\n\tManualCmd\022\013\n\003k"
- "ey\030\001 \001(\t\022\026\n\016operation_type\030\002 \001(\005\022\020\n\010velo"
- "city\030\003 \001(\002\"\366\001\n\010NavStatu\022\r\n\005statu\030\001 \001(\005\022\020"
- "\n\010main_agv\030\002 \001(\010\022\021\n\tmove_mode\030\003 \001(\005\022(\n\004o"
- "dom\030\004 \001(\0132\032.NavMessage.LidarOdomStatu\022\013\n"
- "\003key\030\005 \001(\t\022-\n\rselected_traj\030\006 \001(\0132\026.NavM"
- "essage.Trajectory\022,\n\014predict_traj\030\007 \001(\0132"
- "\026.NavMessage.Trajectory\022\020\n\010in_space\030\010 \001("
- "\010\022\020\n\010space_id\030\t \001(\t\"Y\n\nRobotStatu\022\t\n\001x\030\001"
- " \001(\002\022\t\n\001y\030\002 \001(\002\022\r\n\005theta\030\003 \001(\002\022&\n\010agvSta"
- "tu\030\004 \001(\0132\024.NavMessage.AgvStatu2\302\001\n\nNavEx"
- "cutor\0226\n\005Start\022\022.NavMessage.NavCmd\032\027.Nav"
- "Message.NavResponse\"\000\0227\n\006Cancel\022\022.NavMes"
- "sage.NavCmd\032\027.NavMessage.NavResponse\"\000\022C"
- "\n\017ManualOperation\022\025.NavMessage.ManualCmd"
- "\032\027.NavMessage.NavResponse\"\000b\006proto3"
- };
- static ::absl::once_flag descriptor_table_message_2eproto_once;
- const ::_pbi::DescriptorTable descriptor_table_message_2eproto = {
- false,
- false,
- 1475,
- descriptor_table_protodef_message_2eproto,
- "message.proto",
- &descriptor_table_message_2eproto_once,
- nullptr,
- 0,
- 12,
- schemas,
- file_default_instances,
- TableStruct_message_2eproto::offsets,
- file_level_metadata_message_2eproto,
- file_level_enum_descriptors_message_2eproto,
- file_level_service_descriptors_message_2eproto,
- };
- // This function exists to be marked as weak.
- // It can significantly speed up compilation by breaking up LLVM's SCC
- // in the .pb.cc translation units. Large translation units see a
- // reduction of more than 35% of walltime for optimized builds. Without
- // the weak attribute all the messages in the file, including all the
- // vtables and everything they use become part of the same SCC through
- // a cycle like:
- // GetMetadata -> descriptor table -> default instances ->
- // vtables -> GetMetadata
- // By adding a weak function here we break the connection from the
- // individual vtables back into the descriptor table.
- PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_message_2eproto_getter() {
- return &descriptor_table_message_2eproto;
- }
- // Force running AddDescriptors() at dynamic initialization time.
- PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
- static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_message_2eproto(&descriptor_table_message_2eproto);
- namespace NavMessage {
- // ===================================================================
- class LidarOdomStatu::_Internal {
- public:
- };
- LidarOdomStatu::LidarOdomStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.LidarOdomStatu)
- }
- LidarOdomStatu::LidarOdomStatu(const LidarOdomStatu& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:NavMessage.LidarOdomStatu)
- }
- inline void LidarOdomStatu::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.x_) { 0 }
- , decltype(_impl_.y_) { 0 }
- , decltype(_impl_.theta_) { 0 }
- , decltype(_impl_.v_) { 0 }
- , decltype(_impl_.vth_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- }
- LidarOdomStatu::~LidarOdomStatu() {
- // @@protoc_insertion_point(destructor:NavMessage.LidarOdomStatu)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void LidarOdomStatu::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void LidarOdomStatu::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void LidarOdomStatu::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.LidarOdomStatu)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&_impl_.x_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.vth_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.vth_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* LidarOdomStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // float x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float theta = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
- _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float v = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
- _impl_.v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float vth = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
- _impl_.vth_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* LidarOdomStatu::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.LidarOdomStatu)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 1, this->_internal_x(), target);
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 2, this->_internal_y(), target);
- }
- // float theta = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 3, this->_internal_theta(), target);
- }
- // float v = 4;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = this->_internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 4, this->_internal_v(), target);
- }
- // float vth = 5;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_vth = this->_internal_vth();
- ::uint32_t raw_vth;
- memcpy(&raw_vth, &tmp_vth, sizeof(tmp_vth));
- if (raw_vth != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 5, this->_internal_vth(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.LidarOdomStatu)
- return target;
- }
- ::size_t LidarOdomStatu::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.LidarOdomStatu)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- total_size += 5;
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- total_size += 5;
- }
- // float theta = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- total_size += 5;
- }
- // float v = 4;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = this->_internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- total_size += 5;
- }
- // float vth = 5;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_vth = this->_internal_vth();
- ::uint32_t raw_vth;
- memcpy(&raw_vth, &tmp_vth, sizeof(tmp_vth));
- if (raw_vth != 0) {
- total_size += 5;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData LidarOdomStatu::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- LidarOdomStatu::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*LidarOdomStatu::GetClassData() const { return &_class_data_; }
- void LidarOdomStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<LidarOdomStatu*>(&to_msg);
- auto& from = static_cast<const LidarOdomStatu&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.LidarOdomStatu)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = from._internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = from._internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- _this->_internal_set_y(from._internal_y());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = from._internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- _this->_internal_set_theta(from._internal_theta());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = from._internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- _this->_internal_set_v(from._internal_v());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_vth = from._internal_vth();
- ::uint32_t raw_vth;
- memcpy(&raw_vth, &tmp_vth, sizeof(tmp_vth));
- if (raw_vth != 0) {
- _this->_internal_set_vth(from._internal_vth());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void LidarOdomStatu::CopyFrom(const LidarOdomStatu& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.LidarOdomStatu)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool LidarOdomStatu::IsInitialized() const {
- return true;
- }
- void LidarOdomStatu::InternalSwap(LidarOdomStatu* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(LidarOdomStatu, _impl_.vth_)
- + sizeof(LidarOdomStatu::_impl_.vth_)
- - PROTOBUF_FIELD_OFFSET(LidarOdomStatu, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata LidarOdomStatu::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[0]);
- }
- // ===================================================================
- class AgvStatu::_Internal {
- public:
- };
- AgvStatu::AgvStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.AgvStatu)
- }
- AgvStatu::AgvStatu(const AgvStatu& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:NavMessage.AgvStatu)
- }
- inline void AgvStatu::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.v_) { 0 }
- , decltype(_impl_.w_) { 0 }
- , decltype(_impl_.clamp_) { 0 }
- , decltype(_impl_.clamp_other_) { 0 }
- , decltype(_impl_.lifter_) { 0 }
- , decltype(_impl_.lifter_other_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- }
- AgvStatu::~AgvStatu() {
- // @@protoc_insertion_point(destructor:NavMessage.AgvStatu)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void AgvStatu::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void AgvStatu::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void AgvStatu::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.AgvStatu)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&_impl_.v_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.lifter_other_) -
- reinterpret_cast<char*>(&_impl_.v_)) + sizeof(_impl_.lifter_other_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* AgvStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // float v = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
- _impl_.v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float w = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
- _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 clamp = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
- _impl_.clamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 clamp_other = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
- _impl_.clamp_other_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 lifter = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 40)) {
- _impl_.lifter_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 lifter_other = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 48)) {
- _impl_.lifter_other_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* AgvStatu::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.AgvStatu)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // float v = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = this->_internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 1, this->_internal_v(), target);
- }
- // float w = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = this->_internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 2, this->_internal_w(), target);
- }
- // int32 clamp = 3;
- if (this->_internal_clamp() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 3, this->_internal_clamp(), target);
- }
- // int32 clamp_other = 4;
- if (this->_internal_clamp_other() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 4, this->_internal_clamp_other(), target);
- }
- // int32 lifter = 5;
- if (this->_internal_lifter() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 5, this->_internal_lifter(), target);
- }
- // int32 lifter_other = 6;
- if (this->_internal_lifter_other() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 6, this->_internal_lifter_other(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.AgvStatu)
- return target;
- }
- ::size_t AgvStatu::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.AgvStatu)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // float v = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = this->_internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- total_size += 5;
- }
- // float w = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = this->_internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- total_size += 5;
- }
- // int32 clamp = 3;
- if (this->_internal_clamp() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_clamp());
- }
- // int32 clamp_other = 4;
- if (this->_internal_clamp_other() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_clamp_other());
- }
- // int32 lifter = 5;
- if (this->_internal_lifter() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_lifter());
- }
- // int32 lifter_other = 6;
- if (this->_internal_lifter_other() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_lifter_other());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData AgvStatu::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- AgvStatu::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*AgvStatu::GetClassData() const { return &_class_data_; }
- void AgvStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<AgvStatu*>(&to_msg);
- auto& from = static_cast<const AgvStatu&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.AgvStatu)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = from._internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- _this->_internal_set_v(from._internal_v());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = from._internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- _this->_internal_set_w(from._internal_w());
- }
- if (from._internal_clamp() != 0) {
- _this->_internal_set_clamp(from._internal_clamp());
- }
- if (from._internal_clamp_other() != 0) {
- _this->_internal_set_clamp_other(from._internal_clamp_other());
- }
- if (from._internal_lifter() != 0) {
- _this->_internal_set_lifter(from._internal_lifter());
- }
- if (from._internal_lifter_other() != 0) {
- _this->_internal_set_lifter_other(from._internal_lifter_other());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void AgvStatu::CopyFrom(const AgvStatu& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.AgvStatu)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool AgvStatu::IsInitialized() const {
- return true;
- }
- void AgvStatu::InternalSwap(AgvStatu* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(AgvStatu, _impl_.lifter_other_)
- + sizeof(AgvStatu::_impl_.lifter_other_)
- - PROTOBUF_FIELD_OFFSET(AgvStatu, _impl_.v_)>(
- reinterpret_cast<char*>(&_impl_.v_),
- reinterpret_cast<char*>(&other->_impl_.v_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata AgvStatu::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[1]);
- }
- // ===================================================================
- class ToAgvCmd::_Internal {
- public:
- };
- ToAgvCmd::ToAgvCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.ToAgvCmd)
- }
- ToAgvCmd::ToAgvCmd(const ToAgvCmd& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:NavMessage.ToAgvCmd)
- }
- inline void ToAgvCmd::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.h_) { 0 }
- , decltype(_impl_.m_) { 0 }
- , decltype(_impl_.t_) { 0 }
- , decltype(_impl_.v_) { 0 }
- , decltype(_impl_.w_) { 0 }
- , decltype(_impl_.l_) { 0 }
- , decltype(_impl_.p_) { 0 }
- , decltype(_impl_.d_) { 0 }
- , decltype(_impl_.end_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- }
- ToAgvCmd::~ToAgvCmd() {
- // @@protoc_insertion_point(destructor:NavMessage.ToAgvCmd)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void ToAgvCmd::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void ToAgvCmd::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void ToAgvCmd::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.ToAgvCmd)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&_impl_.h_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.end_) -
- reinterpret_cast<char*>(&_impl_.h_)) + sizeof(_impl_.end_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* ToAgvCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 H = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
- _impl_.h_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 M = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
- _impl_.m_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 T = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
- _impl_.t_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // float V = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
- _impl_.v_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float W = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
- _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float L = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 53)) {
- _impl_.l_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 P = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
- _impl_.p_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // float D = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 69)) {
- _impl_.d_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 end = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 72)) {
- _impl_.end_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* ToAgvCmd::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.ToAgvCmd)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 H = 1;
- if (this->_internal_h() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 1, this->_internal_h(), target);
- }
- // int32 M = 2;
- if (this->_internal_m() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 2, this->_internal_m(), target);
- }
- // int32 T = 3;
- if (this->_internal_t() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 3, this->_internal_t(), target);
- }
- // float V = 4;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = this->_internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 4, this->_internal_v(), target);
- }
- // float W = 5;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = this->_internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 5, this->_internal_w(), target);
- }
- // float L = 6;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_l = this->_internal_l();
- ::uint32_t raw_l;
- memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
- if (raw_l != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 6, this->_internal_l(), target);
- }
- // int32 P = 7;
- if (this->_internal_p() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 7, this->_internal_p(), target);
- }
- // float D = 8;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_d = this->_internal_d();
- ::uint32_t raw_d;
- memcpy(&raw_d, &tmp_d, sizeof(tmp_d));
- if (raw_d != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 8, this->_internal_d(), target);
- }
- // int32 end = 9;
- if (this->_internal_end() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 9, this->_internal_end(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.ToAgvCmd)
- return target;
- }
- ::size_t ToAgvCmd::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.ToAgvCmd)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // int32 H = 1;
- if (this->_internal_h() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_h());
- }
- // int32 M = 2;
- if (this->_internal_m() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_m());
- }
- // int32 T = 3;
- if (this->_internal_t() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_t());
- }
- // float V = 4;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = this->_internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- total_size += 5;
- }
- // float W = 5;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = this->_internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- total_size += 5;
- }
- // float L = 6;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_l = this->_internal_l();
- ::uint32_t raw_l;
- memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
- if (raw_l != 0) {
- total_size += 5;
- }
- // int32 P = 7;
- if (this->_internal_p() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_p());
- }
- // float D = 8;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_d = this->_internal_d();
- ::uint32_t raw_d;
- memcpy(&raw_d, &tmp_d, sizeof(tmp_d));
- if (raw_d != 0) {
- total_size += 5;
- }
- // int32 end = 9;
- if (this->_internal_end() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_end());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ToAgvCmd::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- ToAgvCmd::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ToAgvCmd::GetClassData() const { return &_class_data_; }
- void ToAgvCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<ToAgvCmd*>(&to_msg);
- auto& from = static_cast<const ToAgvCmd&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.ToAgvCmd)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (from._internal_h() != 0) {
- _this->_internal_set_h(from._internal_h());
- }
- if (from._internal_m() != 0) {
- _this->_internal_set_m(from._internal_m());
- }
- if (from._internal_t() != 0) {
- _this->_internal_set_t(from._internal_t());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_v = from._internal_v();
- ::uint32_t raw_v;
- memcpy(&raw_v, &tmp_v, sizeof(tmp_v));
- if (raw_v != 0) {
- _this->_internal_set_v(from._internal_v());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = from._internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- _this->_internal_set_w(from._internal_w());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_l = from._internal_l();
- ::uint32_t raw_l;
- memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
- if (raw_l != 0) {
- _this->_internal_set_l(from._internal_l());
- }
- if (from._internal_p() != 0) {
- _this->_internal_set_p(from._internal_p());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_d = from._internal_d();
- ::uint32_t raw_d;
- memcpy(&raw_d, &tmp_d, sizeof(tmp_d));
- if (raw_d != 0) {
- _this->_internal_set_d(from._internal_d());
- }
- if (from._internal_end() != 0) {
- _this->_internal_set_end(from._internal_end());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void ToAgvCmd::CopyFrom(const ToAgvCmd& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.ToAgvCmd)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ToAgvCmd::IsInitialized() const {
- return true;
- }
- void ToAgvCmd::InternalSwap(ToAgvCmd* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(ToAgvCmd, _impl_.end_)
- + sizeof(ToAgvCmd::_impl_.end_)
- - PROTOBUF_FIELD_OFFSET(ToAgvCmd, _impl_.h_)>(
- reinterpret_cast<char*>(&_impl_.h_),
- reinterpret_cast<char*>(&other->_impl_.h_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata ToAgvCmd::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[2]);
- }
- // ===================================================================
- class Pose2d::_Internal {
- public:
- };
- Pose2d::Pose2d(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.Pose2d)
- }
- Pose2d::Pose2d(const Pose2d& from)
- : ::PROTOBUF_NAMESPACE_ID::Message(), _impl_(from._impl_) {
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(
- from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:NavMessage.Pose2d)
- }
- inline void Pose2d::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.x_) { 0 }
- , decltype(_impl_.y_) { 0 }
- , decltype(_impl_.theta_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- }
- Pose2d::~Pose2d() {
- // @@protoc_insertion_point(destructor:NavMessage.Pose2d)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void Pose2d::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- }
- void Pose2d::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void Pose2d::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.Pose2d)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- ::memset(&_impl_.x_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.theta_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Pose2d::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // float x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float theta = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
- _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* Pose2d::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.Pose2d)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 1, this->_internal_x(), target);
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 2, this->_internal_y(), target);
- }
- // float theta = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 3, this->_internal_theta(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.Pose2d)
- return target;
- }
- ::size_t Pose2d::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.Pose2d)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- total_size += 5;
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- total_size += 5;
- }
- // float theta = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- total_size += 5;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Pose2d::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- Pose2d::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Pose2d::GetClassData() const { return &_class_data_; }
- void Pose2d::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<Pose2d*>(&to_msg);
- auto& from = static_cast<const Pose2d&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.Pose2d)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = from._internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = from._internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- _this->_internal_set_y(from._internal_y());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = from._internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- _this->_internal_set_theta(from._internal_theta());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void Pose2d::CopyFrom(const Pose2d& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.Pose2d)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Pose2d::IsInitialized() const {
- return true;
- }
- void Pose2d::InternalSwap(Pose2d* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(Pose2d, _impl_.theta_)
- + sizeof(Pose2d::_impl_.theta_)
- - PROTOBUF_FIELD_OFFSET(Pose2d, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Pose2d::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[3]);
- }
- // ===================================================================
- class PathNode::_Internal {
- public:
- };
- PathNode::PathNode(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.PathNode)
- }
- PathNode::PathNode(const PathNode& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- PathNode* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.id_) {}
- , decltype(_impl_.x_) {}
- , decltype(_impl_.y_) {}
- , decltype(_impl_.l_) {}
- , decltype(_impl_.w_) {}
- , decltype(_impl_.theta_) {}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.id_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.id_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_id().empty()) {
- _this->_impl_.id_.Set(from._internal_id(), _this->GetArenaForAllocation());
- }
- ::memcpy(&_impl_.x_, &from._impl_.x_,
- static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.theta_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
- // @@protoc_insertion_point(copy_constructor:NavMessage.PathNode)
- }
- inline void PathNode::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.id_) {}
- , decltype(_impl_.x_) { 0 }
- , decltype(_impl_.y_) { 0 }
- , decltype(_impl_.l_) { 0 }
- , decltype(_impl_.w_) { 0 }
- , decltype(_impl_.theta_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- _impl_.id_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.id_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- PathNode::~PathNode() {
- // @@protoc_insertion_point(destructor:NavMessage.PathNode)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void PathNode::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.id_.Destroy();
- }
- void PathNode::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void PathNode::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.PathNode)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.id_.ClearToEmpty();
- ::memset(&_impl_.x_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.theta_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* PathNode::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // float x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float l = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
- _impl_.l_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float w = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 37)) {
- _impl_.w_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float theta = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 45)) {
- _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // string id = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
- auto str = _internal_mutable_id();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "NavMessage.PathNode.id"));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* PathNode::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.PathNode)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 1, this->_internal_x(), target);
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 2, this->_internal_y(), target);
- }
- // float l = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_l = this->_internal_l();
- ::uint32_t raw_l;
- memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
- if (raw_l != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 3, this->_internal_l(), target);
- }
- // float w = 4;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = this->_internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 4, this->_internal_w(), target);
- }
- // float theta = 5;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 5, this->_internal_theta(), target);
- }
- // string id = 6;
- if (!this->_internal_id().empty()) {
- const std::string& _s = this->_internal_id();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.PathNode.id");
- target = stream->WriteStringMaybeAliased(6, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.PathNode)
- return target;
- }
- ::size_t PathNode::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.PathNode)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string id = 6;
- if (!this->_internal_id().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_id());
- }
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- total_size += 5;
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- total_size += 5;
- }
- // float l = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_l = this->_internal_l();
- ::uint32_t raw_l;
- memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
- if (raw_l != 0) {
- total_size += 5;
- }
- // float w = 4;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = this->_internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- total_size += 5;
- }
- // float theta = 5;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- total_size += 5;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData PathNode::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- PathNode::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*PathNode::GetClassData() const { return &_class_data_; }
- void PathNode::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<PathNode*>(&to_msg);
- auto& from = static_cast<const PathNode&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.PathNode)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_id().empty()) {
- _this->_internal_set_id(from._internal_id());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = from._internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = from._internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- _this->_internal_set_y(from._internal_y());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_l = from._internal_l();
- ::uint32_t raw_l;
- memcpy(&raw_l, &tmp_l, sizeof(tmp_l));
- if (raw_l != 0) {
- _this->_internal_set_l(from._internal_l());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_w = from._internal_w();
- ::uint32_t raw_w;
- memcpy(&raw_w, &tmp_w, sizeof(tmp_w));
- if (raw_w != 0) {
- _this->_internal_set_w(from._internal_w());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = from._internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- _this->_internal_set_theta(from._internal_theta());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void PathNode::CopyFrom(const PathNode& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.PathNode)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool PathNode::IsInitialized() const {
- return true;
- }
- void PathNode::InternalSwap(PathNode* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.id_, lhs_arena,
- &other->_impl_.id_, rhs_arena);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(PathNode, _impl_.theta_)
- + sizeof(PathNode::_impl_.theta_)
- - PROTOBUF_FIELD_OFFSET(PathNode, _impl_.x_)>(
- reinterpret_cast<char*>(&_impl_.x_),
- reinterpret_cast<char*>(&other->_impl_.x_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata PathNode::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[4]);
- }
- // ===================================================================
- class Trajectory::_Internal {
- public:
- };
- Trajectory::Trajectory(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.Trajectory)
- }
- Trajectory::Trajectory(const Trajectory& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- Trajectory* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.poses_){from._impl_.poses_}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- // @@protoc_insertion_point(copy_constructor:NavMessage.Trajectory)
- }
- inline void Trajectory::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.poses_){arena}
- , /*decltype(_impl_._cached_size_)*/{}
- };
- }
- Trajectory::~Trajectory() {
- // @@protoc_insertion_point(destructor:NavMessage.Trajectory)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void Trajectory::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _internal_mutable_poses()->~RepeatedPtrField();
- }
- void Trajectory::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void Trajectory::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.Trajectory)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _internal_mutable_poses()->Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* Trajectory::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // repeated .NavMessage.Pose2d poses = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_poses(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* Trajectory::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.Trajectory)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // repeated .NavMessage.Pose2d poses = 1;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_poses_size()); i < n; i++) {
- const auto& repfield = this->_internal_poses(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.Trajectory)
- return target;
- }
- ::size_t Trajectory::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.Trajectory)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .NavMessage.Pose2d poses = 1;
- total_size += 1UL * this->_internal_poses_size();
- for (const auto& msg : this->_internal_poses()) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Trajectory::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- Trajectory::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Trajectory::GetClassData() const { return &_class_data_; }
- void Trajectory::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<Trajectory*>(&to_msg);
- auto& from = static_cast<const Trajectory&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.Trajectory)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_poses()->MergeFrom(from._internal_poses());
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void Trajectory::CopyFrom(const Trajectory& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.Trajectory)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool Trajectory::IsInitialized() const {
- return true;
- }
- void Trajectory::InternalSwap(Trajectory* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _internal_mutable_poses()->InternalSwap(other->_internal_mutable_poses());
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata Trajectory::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[5]);
- }
- // ===================================================================
- class NewAction::_Internal {
- public:
- using HasBits = decltype(std::declval<NewAction>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(NewAction, _impl_._has_bits_);
- static const ::NavMessage::PathNode& spacenode(const NewAction* msg);
- static void set_has_spacenode(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static const ::NavMessage::PathNode& passnode(const NewAction* msg);
- static void set_has_passnode(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static const ::NavMessage::PathNode& streetnode(const NewAction* msg);
- static void set_has_streetnode(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- };
- const ::NavMessage::PathNode&
- NewAction::_Internal::spacenode(const NewAction* msg) {
- return *msg->_impl_.spacenode_;
- }
- const ::NavMessage::PathNode&
- NewAction::_Internal::passnode(const NewAction* msg) {
- return *msg->_impl_.passnode_;
- }
- const ::NavMessage::PathNode&
- NewAction::_Internal::streetnode(const NewAction* msg) {
- return *msg->_impl_.streetnode_;
- }
- NewAction::NewAction(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.NewAction)
- }
- NewAction::NewAction(const NewAction& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- NewAction* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_._has_bits_){from._impl_._has_bits_}
- , /*decltype(_impl_._cached_size_)*/{}
- , decltype(_impl_.pathnodes_){from._impl_.pathnodes_}
- , decltype(_impl_.spacenode_){nullptr}
- , decltype(_impl_.passnode_){nullptr}
- , decltype(_impl_.streetnode_){nullptr}
- , decltype(_impl_.type_) {}
- , decltype(_impl_.wheelbase_) {}
- , decltype(_impl_.changedmode_) {}
- };
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
- _this->_impl_.spacenode_ = new ::NavMessage::PathNode(*from._impl_.spacenode_);
- }
- if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
- _this->_impl_.passnode_ = new ::NavMessage::PathNode(*from._impl_.passnode_);
- }
- if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
- _this->_impl_.streetnode_ = new ::NavMessage::PathNode(*from._impl_.streetnode_);
- }
- ::memcpy(&_impl_.type_, &from._impl_.type_,
- static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.changedmode_) -
- reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.changedmode_));
- // @@protoc_insertion_point(copy_constructor:NavMessage.NewAction)
- }
- inline void NewAction::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_._has_bits_){}
- , /*decltype(_impl_._cached_size_)*/{}
- , decltype(_impl_.pathnodes_){arena}
- , decltype(_impl_.spacenode_){nullptr}
- , decltype(_impl_.passnode_){nullptr}
- , decltype(_impl_.streetnode_){nullptr}
- , decltype(_impl_.type_) { 0 }
- , decltype(_impl_.wheelbase_) { 0 }
- , decltype(_impl_.changedmode_) { 0 }
- };
- }
- NewAction::~NewAction() {
- // @@protoc_insertion_point(destructor:NavMessage.NewAction)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void NewAction::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _internal_mutable_pathnodes()->~RepeatedPtrField();
- if (this != internal_default_instance()) delete _impl_.spacenode_;
- if (this != internal_default_instance()) delete _impl_.passnode_;
- if (this != internal_default_instance()) delete _impl_.streetnode_;
- }
- void NewAction::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void NewAction::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.NewAction)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _internal_mutable_pathnodes()->Clear();
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.spacenode_ != nullptr);
- _impl_.spacenode_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- ABSL_DCHECK(_impl_.passnode_ != nullptr);
- _impl_.passnode_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- ABSL_DCHECK(_impl_.streetnode_ != nullptr);
- _impl_.streetnode_->Clear();
- }
- }
- ::memset(&_impl_.type_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.changedmode_) -
- reinterpret_cast<char*>(&_impl_.type_)) + sizeof(_impl_.changedmode_));
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* NewAction::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 type = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
- _impl_.type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.PathNode spaceNode = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- ptr = ctx->ParseMessage(_internal_mutable_spacenode(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.PathNode passNode = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
- ptr = ctx->ParseMessage(_internal_mutable_passnode(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.PathNode streetNode = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
- ptr = ctx->ParseMessage(_internal_mutable_streetnode(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // repeated .NavMessage.PathNode pathNodes = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_pathnodes(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
- } else {
- goto handle_unusual;
- }
- continue;
- // float wheelbase = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 53)) {
- _impl_.wheelbase_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 changedMode = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
- _impl_.changedmode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- _impl_._has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* NewAction::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NewAction)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 type = 1;
- if (this->_internal_type() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 1, this->_internal_type(), target);
- }
- cached_has_bits = _impl_._has_bits_[0];
- // .NavMessage.PathNode spaceNode = 2;
- if (cached_has_bits & 0x00000001u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(2, _Internal::spacenode(this),
- _Internal::spacenode(this).GetCachedSize(), target, stream);
- }
- // .NavMessage.PathNode passNode = 3;
- if (cached_has_bits & 0x00000002u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(3, _Internal::passnode(this),
- _Internal::passnode(this).GetCachedSize(), target, stream);
- }
- // .NavMessage.PathNode streetNode = 4;
- if (cached_has_bits & 0x00000004u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(4, _Internal::streetnode(this),
- _Internal::streetnode(this).GetCachedSize(), target, stream);
- }
- // repeated .NavMessage.PathNode pathNodes = 5;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_pathnodes_size()); i < n; i++) {
- const auto& repfield = this->_internal_pathnodes(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
- }
- // float wheelbase = 6;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_wheelbase = this->_internal_wheelbase();
- ::uint32_t raw_wheelbase;
- memcpy(&raw_wheelbase, &tmp_wheelbase, sizeof(tmp_wheelbase));
- if (raw_wheelbase != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 6, this->_internal_wheelbase(), target);
- }
- // int32 changedMode = 7;
- if (this->_internal_changedmode() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 7, this->_internal_changedmode(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NewAction)
- return target;
- }
- ::size_t NewAction::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.NewAction)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .NavMessage.PathNode pathNodes = 5;
- total_size += 1UL * this->_internal_pathnodes_size();
- for (const auto& msg : this->_internal_pathnodes()) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- // .NavMessage.PathNode spaceNode = 2;
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.spacenode_);
- }
- // .NavMessage.PathNode passNode = 3;
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.passnode_);
- }
- // .NavMessage.PathNode streetNode = 4;
- if (cached_has_bits & 0x00000004u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.streetnode_);
- }
- }
- // int32 type = 1;
- if (this->_internal_type() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_type());
- }
- // float wheelbase = 6;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_wheelbase = this->_internal_wheelbase();
- ::uint32_t raw_wheelbase;
- memcpy(&raw_wheelbase, &tmp_wheelbase, sizeof(tmp_wheelbase));
- if (raw_wheelbase != 0) {
- total_size += 5;
- }
- // int32 changedMode = 7;
- if (this->_internal_changedmode() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_changedmode());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NewAction::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- NewAction::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NewAction::GetClassData() const { return &_class_data_; }
- void NewAction::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<NewAction*>(&to_msg);
- auto& from = static_cast<const NewAction&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NewAction)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_pathnodes()->MergeFrom(from._internal_pathnodes());
- cached_has_bits = from._impl_._has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- if (cached_has_bits & 0x00000001u) {
- _this->_internal_mutable_spacenode()->::NavMessage::PathNode::MergeFrom(
- from._internal_spacenode());
- }
- if (cached_has_bits & 0x00000002u) {
- _this->_internal_mutable_passnode()->::NavMessage::PathNode::MergeFrom(
- from._internal_passnode());
- }
- if (cached_has_bits & 0x00000004u) {
- _this->_internal_mutable_streetnode()->::NavMessage::PathNode::MergeFrom(
- from._internal_streetnode());
- }
- }
- if (from._internal_type() != 0) {
- _this->_internal_set_type(from._internal_type());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_wheelbase = from._internal_wheelbase();
- ::uint32_t raw_wheelbase;
- memcpy(&raw_wheelbase, &tmp_wheelbase, sizeof(tmp_wheelbase));
- if (raw_wheelbase != 0) {
- _this->_internal_set_wheelbase(from._internal_wheelbase());
- }
- if (from._internal_changedmode() != 0) {
- _this->_internal_set_changedmode(from._internal_changedmode());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void NewAction::CopyFrom(const NewAction& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NewAction)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool NewAction::IsInitialized() const {
- return true;
- }
- void NewAction::InternalSwap(NewAction* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- _internal_mutable_pathnodes()->InternalSwap(other->_internal_mutable_pathnodes());
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(NewAction, _impl_.changedmode_)
- + sizeof(NewAction::_impl_.changedmode_)
- - PROTOBUF_FIELD_OFFSET(NewAction, _impl_.spacenode_)>(
- reinterpret_cast<char*>(&_impl_.spacenode_),
- reinterpret_cast<char*>(&other->_impl_.spacenode_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata NewAction::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[6]);
- }
- // ===================================================================
- class NavCmd::_Internal {
- public:
- };
- NavCmd::NavCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.NavCmd)
- }
- NavCmd::NavCmd(const NavCmd& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- NavCmd* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.newactions_){from._impl_.newactions_}
- , decltype(_impl_.key_) {}
- , decltype(_impl_.action_) {}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.key_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.key_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_key().empty()) {
- _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
- }
- _this->_impl_.action_ = from._impl_.action_;
- // @@protoc_insertion_point(copy_constructor:NavMessage.NavCmd)
- }
- inline void NavCmd::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.newactions_){arena}
- , decltype(_impl_.key_) {}
- , decltype(_impl_.action_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- _impl_.key_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.key_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- NavCmd::~NavCmd() {
- // @@protoc_insertion_point(destructor:NavMessage.NavCmd)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void NavCmd::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _internal_mutable_newactions()->~RepeatedPtrField();
- _impl_.key_.Destroy();
- }
- void NavCmd::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void NavCmd::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.NavCmd)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _internal_mutable_newactions()->Clear();
- _impl_.key_.ClearToEmpty();
- _impl_.action_ = 0;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* NavCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 action = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
- _impl_.action_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // string key = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- auto str = _internal_mutable_key();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavCmd.key"));
- } else {
- goto handle_unusual;
- }
- continue;
- // repeated .NavMessage.NewAction newActions = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
- ptr -= 1;
- do {
- ptr += 1;
- ptr = ctx->ParseMessage(_internal_add_newactions(), ptr);
- CHK_(ptr);
- if (!ctx->DataAvailable(ptr)) break;
- } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* NavCmd::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavCmd)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 action = 1;
- if (this->_internal_action() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 1, this->_internal_action(), target);
- }
- // string key = 2;
- if (!this->_internal_key().empty()) {
- const std::string& _s = this->_internal_key();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavCmd.key");
- target = stream->WriteStringMaybeAliased(2, _s, target);
- }
- // repeated .NavMessage.NewAction newActions = 5;
- for (unsigned i = 0,
- n = static_cast<unsigned>(this->_internal_newactions_size()); i < n; i++) {
- const auto& repfield = this->_internal_newactions(i);
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavCmd)
- return target;
- }
- ::size_t NavCmd::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavCmd)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // repeated .NavMessage.NewAction newActions = 5;
- total_size += 1UL * this->_internal_newactions_size();
- for (const auto& msg : this->_internal_newactions()) {
- total_size +=
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
- }
- // string key = 2;
- if (!this->_internal_key().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_key());
- }
- // int32 action = 1;
- if (this->_internal_action() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_action());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NavCmd::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- NavCmd::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NavCmd::GetClassData() const { return &_class_data_; }
- void NavCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<NavCmd*>(&to_msg);
- auto& from = static_cast<const NavCmd&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavCmd)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- _this->_internal_mutable_newactions()->MergeFrom(from._internal_newactions());
- if (!from._internal_key().empty()) {
- _this->_internal_set_key(from._internal_key());
- }
- if (from._internal_action() != 0) {
- _this->_internal_set_action(from._internal_action());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void NavCmd::CopyFrom(const NavCmd& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavCmd)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool NavCmd::IsInitialized() const {
- return true;
- }
- void NavCmd::InternalSwap(NavCmd* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- _internal_mutable_newactions()->InternalSwap(other->_internal_mutable_newactions());
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
- &other->_impl_.key_, rhs_arena);
- swap(_impl_.action_, other->_impl_.action_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata NavCmd::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[7]);
- }
- // ===================================================================
- class NavResponse::_Internal {
- public:
- };
- NavResponse::NavResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.NavResponse)
- }
- NavResponse::NavResponse(const NavResponse& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- NavResponse* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.info_) {}
- , decltype(_impl_.ret_) {}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.info_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.info_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_info().empty()) {
- _this->_impl_.info_.Set(from._internal_info(), _this->GetArenaForAllocation());
- }
- _this->_impl_.ret_ = from._impl_.ret_;
- // @@protoc_insertion_point(copy_constructor:NavMessage.NavResponse)
- }
- inline void NavResponse::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.info_) {}
- , decltype(_impl_.ret_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- _impl_.info_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.info_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- NavResponse::~NavResponse() {
- // @@protoc_insertion_point(destructor:NavMessage.NavResponse)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void NavResponse::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.info_.Destroy();
- }
- void NavResponse::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void NavResponse::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.NavResponse)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.info_.ClearToEmpty();
- _impl_.ret_ = 0;
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* NavResponse::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 ret = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
- _impl_.ret_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // string info = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
- auto str = _internal_mutable_info();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavResponse.info"));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* NavResponse::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavResponse)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 ret = 1;
- if (this->_internal_ret() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 1, this->_internal_ret(), target);
- }
- // string info = 2;
- if (!this->_internal_info().empty()) {
- const std::string& _s = this->_internal_info();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavResponse.info");
- target = stream->WriteStringMaybeAliased(2, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavResponse)
- return target;
- }
- ::size_t NavResponse::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavResponse)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string info = 2;
- if (!this->_internal_info().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_info());
- }
- // int32 ret = 1;
- if (this->_internal_ret() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_ret());
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NavResponse::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- NavResponse::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NavResponse::GetClassData() const { return &_class_data_; }
- void NavResponse::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<NavResponse*>(&to_msg);
- auto& from = static_cast<const NavResponse&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavResponse)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_info().empty()) {
- _this->_internal_set_info(from._internal_info());
- }
- if (from._internal_ret() != 0) {
- _this->_internal_set_ret(from._internal_ret());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void NavResponse::CopyFrom(const NavResponse& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavResponse)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool NavResponse::IsInitialized() const {
- return true;
- }
- void NavResponse::InternalSwap(NavResponse* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.info_, lhs_arena,
- &other->_impl_.info_, rhs_arena);
- swap(_impl_.ret_, other->_impl_.ret_);
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata NavResponse::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[8]);
- }
- // ===================================================================
- class ManualCmd::_Internal {
- public:
- };
- ManualCmd::ManualCmd(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.ManualCmd)
- }
- ManualCmd::ManualCmd(const ManualCmd& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- ManualCmd* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_.key_) {}
- , decltype(_impl_.operation_type_) {}
- , decltype(_impl_.velocity_) {}
- , /*decltype(_impl_._cached_size_)*/{}};
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.key_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.key_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_key().empty()) {
- _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
- }
- ::memcpy(&_impl_.operation_type_, &from._impl_.operation_type_,
- static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.velocity_) -
- reinterpret_cast<char*>(&_impl_.operation_type_)) + sizeof(_impl_.velocity_));
- // @@protoc_insertion_point(copy_constructor:NavMessage.ManualCmd)
- }
- inline void ManualCmd::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_.key_) {}
- , decltype(_impl_.operation_type_) { 0 }
- , decltype(_impl_.velocity_) { 0 }
- , /*decltype(_impl_._cached_size_)*/{}
- };
- _impl_.key_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.key_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- ManualCmd::~ManualCmd() {
- // @@protoc_insertion_point(destructor:NavMessage.ManualCmd)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void ManualCmd::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.key_.Destroy();
- }
- void ManualCmd::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void ManualCmd::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.ManualCmd)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.key_.ClearToEmpty();
- ::memset(&_impl_.operation_type_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.velocity_) -
- reinterpret_cast<char*>(&_impl_.operation_type_)) + sizeof(_impl_.velocity_));
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* ManualCmd::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // string key = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
- auto str = _internal_mutable_key();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "NavMessage.ManualCmd.key"));
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 operation_type = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
- _impl_.operation_type_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // float velocity = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
- _impl_.velocity_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* ManualCmd::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.ManualCmd)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // string key = 1;
- if (!this->_internal_key().empty()) {
- const std::string& _s = this->_internal_key();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.ManualCmd.key");
- target = stream->WriteStringMaybeAliased(1, _s, target);
- }
- // int32 operation_type = 2;
- if (this->_internal_operation_type() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 2, this->_internal_operation_type(), target);
- }
- // float velocity = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_velocity = this->_internal_velocity();
- ::uint32_t raw_velocity;
- memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
- if (raw_velocity != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 3, this->_internal_velocity(), target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.ManualCmd)
- return target;
- }
- ::size_t ManualCmd::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.ManualCmd)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string key = 1;
- if (!this->_internal_key().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_key());
- }
- // int32 operation_type = 2;
- if (this->_internal_operation_type() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_operation_type());
- }
- // float velocity = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_velocity = this->_internal_velocity();
- ::uint32_t raw_velocity;
- memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
- if (raw_velocity != 0) {
- total_size += 5;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData ManualCmd::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- ManualCmd::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*ManualCmd::GetClassData() const { return &_class_data_; }
- void ManualCmd::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<ManualCmd*>(&to_msg);
- auto& from = static_cast<const ManualCmd&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.ManualCmd)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_key().empty()) {
- _this->_internal_set_key(from._internal_key());
- }
- if (from._internal_operation_type() != 0) {
- _this->_internal_set_operation_type(from._internal_operation_type());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_velocity = from._internal_velocity();
- ::uint32_t raw_velocity;
- memcpy(&raw_velocity, &tmp_velocity, sizeof(tmp_velocity));
- if (raw_velocity != 0) {
- _this->_internal_set_velocity(from._internal_velocity());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void ManualCmd::CopyFrom(const ManualCmd& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.ManualCmd)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool ManualCmd::IsInitialized() const {
- return true;
- }
- void ManualCmd::InternalSwap(ManualCmd* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
- &other->_impl_.key_, rhs_arena);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(ManualCmd, _impl_.velocity_)
- + sizeof(ManualCmd::_impl_.velocity_)
- - PROTOBUF_FIELD_OFFSET(ManualCmd, _impl_.operation_type_)>(
- reinterpret_cast<char*>(&_impl_.operation_type_),
- reinterpret_cast<char*>(&other->_impl_.operation_type_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata ManualCmd::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[9]);
- }
- // ===================================================================
- class NavStatu::_Internal {
- public:
- using HasBits = decltype(std::declval<NavStatu>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(NavStatu, _impl_._has_bits_);
- static const ::NavMessage::LidarOdomStatu& odom(const NavStatu* msg);
- static void set_has_odom(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- static const ::NavMessage::Trajectory& selected_traj(const NavStatu* msg);
- static void set_has_selected_traj(HasBits* has_bits) {
- (*has_bits)[0] |= 2u;
- }
- static const ::NavMessage::Trajectory& predict_traj(const NavStatu* msg);
- static void set_has_predict_traj(HasBits* has_bits) {
- (*has_bits)[0] |= 4u;
- }
- };
- const ::NavMessage::LidarOdomStatu&
- NavStatu::_Internal::odom(const NavStatu* msg) {
- return *msg->_impl_.odom_;
- }
- const ::NavMessage::Trajectory&
- NavStatu::_Internal::selected_traj(const NavStatu* msg) {
- return *msg->_impl_.selected_traj_;
- }
- const ::NavMessage::Trajectory&
- NavStatu::_Internal::predict_traj(const NavStatu* msg) {
- return *msg->_impl_.predict_traj_;
- }
- NavStatu::NavStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.NavStatu)
- }
- NavStatu::NavStatu(const NavStatu& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- NavStatu* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_._has_bits_){from._impl_._has_bits_}
- , /*decltype(_impl_._cached_size_)*/{}
- , decltype(_impl_.key_) {}
- , decltype(_impl_.space_id_) {}
- , decltype(_impl_.odom_){nullptr}
- , decltype(_impl_.selected_traj_){nullptr}
- , decltype(_impl_.predict_traj_){nullptr}
- , decltype(_impl_.statu_) {}
- , decltype(_impl_.move_mode_) {}
- , decltype(_impl_.main_agv_) {}
- , decltype(_impl_.in_space_) {}
- };
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- _impl_.key_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.key_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_key().empty()) {
- _this->_impl_.key_.Set(from._internal_key(), _this->GetArenaForAllocation());
- }
- _impl_.space_id_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.space_id_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- if (!from._internal_space_id().empty()) {
- _this->_impl_.space_id_.Set(from._internal_space_id(), _this->GetArenaForAllocation());
- }
- if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
- _this->_impl_.odom_ = new ::NavMessage::LidarOdomStatu(*from._impl_.odom_);
- }
- if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
- _this->_impl_.selected_traj_ = new ::NavMessage::Trajectory(*from._impl_.selected_traj_);
- }
- if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
- _this->_impl_.predict_traj_ = new ::NavMessage::Trajectory(*from._impl_.predict_traj_);
- }
- ::memcpy(&_impl_.statu_, &from._impl_.statu_,
- static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.in_space_) -
- reinterpret_cast<char*>(&_impl_.statu_)) + sizeof(_impl_.in_space_));
- // @@protoc_insertion_point(copy_constructor:NavMessage.NavStatu)
- }
- inline void NavStatu::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_._has_bits_){}
- , /*decltype(_impl_._cached_size_)*/{}
- , decltype(_impl_.key_) {}
- , decltype(_impl_.space_id_) {}
- , decltype(_impl_.odom_){nullptr}
- , decltype(_impl_.selected_traj_){nullptr}
- , decltype(_impl_.predict_traj_){nullptr}
- , decltype(_impl_.statu_) { 0 }
- , decltype(_impl_.move_mode_) { 0 }
- , decltype(_impl_.main_agv_) { false }
- , decltype(_impl_.in_space_) { false }
- };
- _impl_.key_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.key_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.space_id_.InitDefault();
- #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
- _impl_.space_id_.Set("", GetArenaForAllocation());
- #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
- }
- NavStatu::~NavStatu() {
- // @@protoc_insertion_point(destructor:NavMessage.NavStatu)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void NavStatu::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- _impl_.key_.Destroy();
- _impl_.space_id_.Destroy();
- if (this != internal_default_instance()) delete _impl_.odom_;
- if (this != internal_default_instance()) delete _impl_.selected_traj_;
- if (this != internal_default_instance()) delete _impl_.predict_traj_;
- }
- void NavStatu::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void NavStatu::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.NavStatu)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- _impl_.key_.ClearToEmpty();
- _impl_.space_id_.ClearToEmpty();
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.odom_ != nullptr);
- _impl_.odom_->Clear();
- }
- if (cached_has_bits & 0x00000002u) {
- ABSL_DCHECK(_impl_.selected_traj_ != nullptr);
- _impl_.selected_traj_->Clear();
- }
- if (cached_has_bits & 0x00000004u) {
- ABSL_DCHECK(_impl_.predict_traj_ != nullptr);
- _impl_.predict_traj_->Clear();
- }
- }
- ::memset(&_impl_.statu_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.in_space_) -
- reinterpret_cast<char*>(&_impl_.statu_)) + sizeof(_impl_.in_space_));
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* NavStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // int32 statu = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
- _impl_.statu_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // bool main_agv = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
- _impl_.main_agv_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // int32 move_mode = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
- _impl_.move_mode_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.LidarOdomStatu odom = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
- ptr = ctx->ParseMessage(_internal_mutable_odom(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // string key = 5;
- case 5:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
- auto str = _internal_mutable_key();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavStatu.key"));
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.Trajectory selected_traj = 6;
- case 6:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
- ptr = ctx->ParseMessage(_internal_mutable_selected_traj(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.Trajectory predict_traj = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
- ptr = ctx->ParseMessage(_internal_mutable_predict_traj(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // bool in_space = 8;
- case 8:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 64)) {
- _impl_.in_space_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- // string space_id = 9;
- case 9:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
- auto str = _internal_mutable_space_id();
- ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
- CHK_(ptr);
- CHK_(::_pbi::VerifyUTF8(str, "NavMessage.NavStatu.space_id"));
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- _impl_._has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* NavStatu::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.NavStatu)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // int32 statu = 1;
- if (this->_internal_statu() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 1, this->_internal_statu(), target);
- }
- // bool main_agv = 2;
- if (this->_internal_main_agv() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(
- 2, this->_internal_main_agv(), target);
- }
- // int32 move_mode = 3;
- if (this->_internal_move_mode() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 3, this->_internal_move_mode(), target);
- }
- cached_has_bits = _impl_._has_bits_[0];
- // .NavMessage.LidarOdomStatu odom = 4;
- if (cached_has_bits & 0x00000001u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(4, _Internal::odom(this),
- _Internal::odom(this).GetCachedSize(), target, stream);
- }
- // string key = 5;
- if (!this->_internal_key().empty()) {
- const std::string& _s = this->_internal_key();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavStatu.key");
- target = stream->WriteStringMaybeAliased(5, _s, target);
- }
- // .NavMessage.Trajectory selected_traj = 6;
- if (cached_has_bits & 0x00000002u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(6, _Internal::selected_traj(this),
- _Internal::selected_traj(this).GetCachedSize(), target, stream);
- }
- // .NavMessage.Trajectory predict_traj = 7;
- if (cached_has_bits & 0x00000004u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(7, _Internal::predict_traj(this),
- _Internal::predict_traj(this).GetCachedSize(), target, stream);
- }
- // bool in_space = 8;
- if (this->_internal_in_space() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteBoolToArray(
- 8, this->_internal_in_space(), target);
- }
- // string space_id = 9;
- if (!this->_internal_space_id().empty()) {
- const std::string& _s = this->_internal_space_id();
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
- _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "NavMessage.NavStatu.space_id");
- target = stream->WriteStringMaybeAliased(9, _s, target);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.NavStatu)
- return target;
- }
- ::size_t NavStatu::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.NavStatu)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // string key = 5;
- if (!this->_internal_key().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_key());
- }
- // string space_id = 9;
- if (!this->_internal_space_id().empty()) {
- total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
- this->_internal_space_id());
- }
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- // .NavMessage.LidarOdomStatu odom = 4;
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.odom_);
- }
- // .NavMessage.Trajectory selected_traj = 6;
- if (cached_has_bits & 0x00000002u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.selected_traj_);
- }
- // .NavMessage.Trajectory predict_traj = 7;
- if (cached_has_bits & 0x00000004u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.predict_traj_);
- }
- }
- // int32 statu = 1;
- if (this->_internal_statu() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_statu());
- }
- // int32 move_mode = 3;
- if (this->_internal_move_mode() != 0) {
- total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
- this->_internal_move_mode());
- }
- // bool main_agv = 2;
- if (this->_internal_main_agv() != 0) {
- total_size += 2;
- }
- // bool in_space = 8;
- if (this->_internal_in_space() != 0) {
- total_size += 2;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NavStatu::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- NavStatu::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NavStatu::GetClassData() const { return &_class_data_; }
- void NavStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<NavStatu*>(&to_msg);
- auto& from = static_cast<const NavStatu&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.NavStatu)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if (!from._internal_key().empty()) {
- _this->_internal_set_key(from._internal_key());
- }
- if (!from._internal_space_id().empty()) {
- _this->_internal_set_space_id(from._internal_space_id());
- }
- cached_has_bits = from._impl_._has_bits_[0];
- if (cached_has_bits & 0x00000007u) {
- if (cached_has_bits & 0x00000001u) {
- _this->_internal_mutable_odom()->::NavMessage::LidarOdomStatu::MergeFrom(
- from._internal_odom());
- }
- if (cached_has_bits & 0x00000002u) {
- _this->_internal_mutable_selected_traj()->::NavMessage::Trajectory::MergeFrom(
- from._internal_selected_traj());
- }
- if (cached_has_bits & 0x00000004u) {
- _this->_internal_mutable_predict_traj()->::NavMessage::Trajectory::MergeFrom(
- from._internal_predict_traj());
- }
- }
- if (from._internal_statu() != 0) {
- _this->_internal_set_statu(from._internal_statu());
- }
- if (from._internal_move_mode() != 0) {
- _this->_internal_set_move_mode(from._internal_move_mode());
- }
- if (from._internal_main_agv() != 0) {
- _this->_internal_set_main_agv(from._internal_main_agv());
- }
- if (from._internal_in_space() != 0) {
- _this->_internal_set_in_space(from._internal_in_space());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void NavStatu::CopyFrom(const NavStatu& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.NavStatu)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool NavStatu::IsInitialized() const {
- return true;
- }
- void NavStatu::InternalSwap(NavStatu* other) {
- using std::swap;
- auto* lhs_arena = GetArenaForAllocation();
- auto* rhs_arena = other->GetArenaForAllocation();
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.key_, lhs_arena,
- &other->_impl_.key_, rhs_arena);
- ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.space_id_, lhs_arena,
- &other->_impl_.space_id_, rhs_arena);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(NavStatu, _impl_.in_space_)
- + sizeof(NavStatu::_impl_.in_space_)
- - PROTOBUF_FIELD_OFFSET(NavStatu, _impl_.odom_)>(
- reinterpret_cast<char*>(&_impl_.odom_),
- reinterpret_cast<char*>(&other->_impl_.odom_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata NavStatu::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[10]);
- }
- // ===================================================================
- class RobotStatu::_Internal {
- public:
- using HasBits = decltype(std::declval<RobotStatu>()._impl_._has_bits_);
- static constexpr ::int32_t kHasBitsOffset =
- 8 * PROTOBUF_FIELD_OFFSET(RobotStatu, _impl_._has_bits_);
- static const ::NavMessage::AgvStatu& agvstatu(const RobotStatu* msg);
- static void set_has_agvstatu(HasBits* has_bits) {
- (*has_bits)[0] |= 1u;
- }
- };
- const ::NavMessage::AgvStatu&
- RobotStatu::_Internal::agvstatu(const RobotStatu* msg) {
- return *msg->_impl_.agvstatu_;
- }
- RobotStatu::RobotStatu(::PROTOBUF_NAMESPACE_ID::Arena* arena)
- : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
- SharedCtor(arena);
- // @@protoc_insertion_point(arena_constructor:NavMessage.RobotStatu)
- }
- RobotStatu::RobotStatu(const RobotStatu& from)
- : ::PROTOBUF_NAMESPACE_ID::Message() {
- RobotStatu* const _this = this; (void)_this;
- new (&_impl_) Impl_{
- decltype(_impl_._has_bits_){from._impl_._has_bits_}
- , /*decltype(_impl_._cached_size_)*/{}
- , decltype(_impl_.agvstatu_){nullptr}
- , decltype(_impl_.x_) {}
- , decltype(_impl_.y_) {}
- , decltype(_impl_.theta_) {}
- };
- _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
- _this->_impl_.agvstatu_ = new ::NavMessage::AgvStatu(*from._impl_.agvstatu_);
- }
- ::memcpy(&_impl_.x_, &from._impl_.x_,
- static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.theta_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
- // @@protoc_insertion_point(copy_constructor:NavMessage.RobotStatu)
- }
- inline void RobotStatu::SharedCtor(::_pb::Arena* arena) {
- (void)arena;
- new (&_impl_) Impl_{
- decltype(_impl_._has_bits_){}
- , /*decltype(_impl_._cached_size_)*/{}
- , decltype(_impl_.agvstatu_){nullptr}
- , decltype(_impl_.x_) { 0 }
- , decltype(_impl_.y_) { 0 }
- , decltype(_impl_.theta_) { 0 }
- };
- }
- RobotStatu::~RobotStatu() {
- // @@protoc_insertion_point(destructor:NavMessage.RobotStatu)
- if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
- (void)arena;
- return;
- }
- SharedDtor();
- }
- inline void RobotStatu::SharedDtor() {
- ABSL_DCHECK(GetArenaForAllocation() == nullptr);
- if (this != internal_default_instance()) delete _impl_.agvstatu_;
- }
- void RobotStatu::SetCachedSize(int size) const {
- _impl_._cached_size_.Set(size);
- }
- void RobotStatu::Clear() {
- // @@protoc_insertion_point(message_clear_start:NavMessage.RobotStatu)
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- ABSL_DCHECK(_impl_.agvstatu_ != nullptr);
- _impl_.agvstatu_->Clear();
- }
- ::memset(&_impl_.x_, 0, static_cast<::size_t>(
- reinterpret_cast<char*>(&_impl_.theta_) -
- reinterpret_cast<char*>(&_impl_.x_)) + sizeof(_impl_.theta_));
- _impl_._has_bits_.Clear();
- _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
- }
- const char* RobotStatu::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
- #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
- _Internal::HasBits has_bits{};
- while (!ctx->Done(&ptr)) {
- ::uint32_t tag;
- ptr = ::_pbi::ReadTag(ptr, &tag);
- switch (tag >> 3) {
- // float x = 1;
- case 1:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 13)) {
- _impl_.x_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float y = 2;
- case 2:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 21)) {
- _impl_.y_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // float theta = 3;
- case 3:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 29)) {
- _impl_.theta_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr);
- ptr += sizeof(float);
- } else {
- goto handle_unusual;
- }
- continue;
- // .NavMessage.AgvStatu agvStatu = 4;
- case 4:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
- ptr = ctx->ParseMessage(_internal_mutable_agvstatu(), ptr);
- CHK_(ptr);
- } else {
- goto handle_unusual;
- }
- continue;
- default:
- goto handle_unusual;
- } // switch
- handle_unusual:
- if ((tag == 0) || ((tag & 7) == 4)) {
- CHK_(ptr);
- ctx->SetLastTag(tag);
- goto message_done;
- }
- ptr = UnknownFieldParse(
- tag,
- _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
- ptr, ctx);
- CHK_(ptr != nullptr);
- } // while
- message_done:
- _impl_._has_bits_.Or(has_bits);
- return ptr;
- failure:
- ptr = nullptr;
- goto message_done;
- #undef CHK_
- }
- ::uint8_t* RobotStatu::_InternalSerialize(
- ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
- // @@protoc_insertion_point(serialize_to_array_start:NavMessage.RobotStatu)
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 1, this->_internal_x(), target);
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 2, this->_internal_y(), target);
- }
- // float theta = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteFloatToArray(
- 3, this->_internal_theta(), target);
- }
- cached_has_bits = _impl_._has_bits_[0];
- // .NavMessage.AgvStatu agvStatu = 4;
- if (cached_has_bits & 0x00000001u) {
- target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
- InternalWriteMessage(4, _Internal::agvstatu(this),
- _Internal::agvstatu(this).GetCachedSize(), target, stream);
- }
- if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
- target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
- _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
- }
- // @@protoc_insertion_point(serialize_to_array_end:NavMessage.RobotStatu)
- return target;
- }
- ::size_t RobotStatu::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:NavMessage.RobotStatu)
- ::size_t total_size = 0;
- ::uint32_t cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- // .NavMessage.AgvStatu agvStatu = 4;
- cached_has_bits = _impl_._has_bits_[0];
- if (cached_has_bits & 0x00000001u) {
- total_size += 1 +
- ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
- *_impl_.agvstatu_);
- }
- // float x = 1;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = this->_internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- total_size += 5;
- }
- // float y = 2;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = this->_internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- total_size += 5;
- }
- // float theta = 3;
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = this->_internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- total_size += 5;
- }
- return MaybeComputeUnknownFieldsSize(total_size, &_impl_._cached_size_);
- }
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData RobotStatu::_class_data_ = {
- ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSourceCheck,
- RobotStatu::MergeImpl
- };
- const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*RobotStatu::GetClassData() const { return &_class_data_; }
- void RobotStatu::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message& to_msg, const ::PROTOBUF_NAMESPACE_ID::Message& from_msg) {
- auto* const _this = static_cast<RobotStatu*>(&to_msg);
- auto& from = static_cast<const RobotStatu&>(from_msg);
- // @@protoc_insertion_point(class_specific_merge_from_start:NavMessage.RobotStatu)
- ABSL_DCHECK_NE(&from, _this);
- ::uint32_t cached_has_bits = 0;
- (void) cached_has_bits;
- if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
- _this->_internal_mutable_agvstatu()->::NavMessage::AgvStatu::MergeFrom(
- from._internal_agvstatu());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_x = from._internal_x();
- ::uint32_t raw_x;
- memcpy(&raw_x, &tmp_x, sizeof(tmp_x));
- if (raw_x != 0) {
- _this->_internal_set_x(from._internal_x());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_y = from._internal_y();
- ::uint32_t raw_y;
- memcpy(&raw_y, &tmp_y, sizeof(tmp_y));
- if (raw_y != 0) {
- _this->_internal_set_y(from._internal_y());
- }
- static_assert(sizeof(::uint32_t) == sizeof(float), "Code assumes ::uint32_t and float are the same size.");
- float tmp_theta = from._internal_theta();
- ::uint32_t raw_theta;
- memcpy(&raw_theta, &tmp_theta, sizeof(tmp_theta));
- if (raw_theta != 0) {
- _this->_internal_set_theta(from._internal_theta());
- }
- _this->_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
- }
- void RobotStatu::CopyFrom(const RobotStatu& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:NavMessage.RobotStatu)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool RobotStatu::IsInitialized() const {
- return true;
- }
- void RobotStatu::InternalSwap(RobotStatu* other) {
- using std::swap;
- _internal_metadata_.InternalSwap(&other->_internal_metadata_);
- swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
- ::PROTOBUF_NAMESPACE_ID::internal::memswap<
- PROTOBUF_FIELD_OFFSET(RobotStatu, _impl_.theta_)
- + sizeof(RobotStatu::_impl_.theta_)
- - PROTOBUF_FIELD_OFFSET(RobotStatu, _impl_.agvstatu_)>(
- reinterpret_cast<char*>(&_impl_.agvstatu_),
- reinterpret_cast<char*>(&other->_impl_.agvstatu_));
- }
- ::PROTOBUF_NAMESPACE_ID::Metadata RobotStatu::GetMetadata() const {
- return ::_pbi::AssignDescriptors(
- &descriptor_table_message_2eproto_getter, &descriptor_table_message_2eproto_once,
- file_level_metadata_message_2eproto[11]);
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace NavMessage
- PROTOBUF_NAMESPACE_OPEN
- template<> PROTOBUF_NOINLINE ::NavMessage::LidarOdomStatu*
- Arena::CreateMaybeMessage< ::NavMessage::LidarOdomStatu >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::LidarOdomStatu >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::AgvStatu*
- Arena::CreateMaybeMessage< ::NavMessage::AgvStatu >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::AgvStatu >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::ToAgvCmd*
- Arena::CreateMaybeMessage< ::NavMessage::ToAgvCmd >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::ToAgvCmd >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::Pose2d*
- Arena::CreateMaybeMessage< ::NavMessage::Pose2d >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::Pose2d >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::PathNode*
- Arena::CreateMaybeMessage< ::NavMessage::PathNode >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::PathNode >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::Trajectory*
- Arena::CreateMaybeMessage< ::NavMessage::Trajectory >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::Trajectory >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::NewAction*
- Arena::CreateMaybeMessage< ::NavMessage::NewAction >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::NewAction >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::NavCmd*
- Arena::CreateMaybeMessage< ::NavMessage::NavCmd >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::NavCmd >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::NavResponse*
- Arena::CreateMaybeMessage< ::NavMessage::NavResponse >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::NavResponse >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::ManualCmd*
- Arena::CreateMaybeMessage< ::NavMessage::ManualCmd >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::ManualCmd >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::NavStatu*
- Arena::CreateMaybeMessage< ::NavMessage::NavStatu >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::NavStatu >(arena);
- }
- template<> PROTOBUF_NOINLINE ::NavMessage::RobotStatu*
- Arena::CreateMaybeMessage< ::NavMessage::RobotStatu >(Arena* arena) {
- return Arena::CreateMessageInternal< ::NavMessage::RobotStatu >(arena);
- }
- PROTOBUF_NAMESPACE_CLOSE
- // @@protoc_insertion_point(global_scope)
- #include "google/protobuf/port_undef.inc"
|