123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254 |
- // 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_._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_.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 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[11];
- 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_),
- ~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_.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_),
- 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)},
- { 25, -1, -1, sizeof(::NavMessage::ToAgvCmd)},
- { 40, -1, -1, sizeof(::NavMessage::Pose2d)},
- { 51, -1, -1, sizeof(::NavMessage::PathNode)},
- { 65, -1, -1, sizeof(::NavMessage::Trajectory)},
- { 74, 89, -1, sizeof(::NavMessage::NewAction)},
- { 96, -1, -1, sizeof(::NavMessage::NavCmd)},
- { 107, -1, -1, sizeof(::NavMessage::NavResponse)},
- { 117, 134, -1, sizeof(::NavMessage::NavStatu)},
- { 143, 155, -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::_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\"D\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\"Y\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\013\n\003end\030\007 \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\010Pa"
- "thNode\022\t\n\001x\030\001 \001(\002\022\t\n\001y\030\002 \001(\002\022\t\n\001l\030\003 \001(\002\022"
- "\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\tsp"
- "aceNode\030\002 \001(\0132\024.NavMessage.PathNode\022&\n\010p"
- "assNode\030\003 \001(\0132\024.NavMessage.PathNode\022(\n\ns"
- "treetNode\030\004 \001(\0132\024.NavMessage.PathNode\022\'\n"
- "\tpathNodes\030\005 \003(\0132\024.NavMessage.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\003ret\030\001 \001(\005\022\014\n\004info\030\002 \001"
- "(\t\"\366\001\n\010NavStatu\022\r\n\005statu\030\001 \001(\005\022\020\n\010main_a"
- "gv\030\002 \001(\010\022\021\n\tmove_mode\030\003 \001(\005\022(\n\004odom\030\004 \001("
- "\0132\032.NavMessage.LidarOdomStatu\022\013\n\003key\030\005 \001"
- "(\t\022-\n\rselected_traj\030\006 \001(\0132\026.NavMessage.T"
- "rajectory\022,\n\014predict_traj\030\007 \001(\0132\026.NavMes"
- "sage.Trajectory\022\020\n\010in_space\030\010 \001(\010\022\020\n\010spa"
- "ce_id\030\t \001(\t\"Y\n\nRobotStatu\022\t\n\001x\030\001 \001(\002\022\t\n\001"
- "y\030\002 \001(\002\022\r\n\005theta\030\003 \001(\002\022&\n\010agvStatu\030\004 \001(\013"
- "2\024.NavMessage.AgvStatu2}\n\nNavExcutor\0226\n\005"
- "Start\022\022.NavMessage.NavCmd\032\027.NavMessage.N"
- "avResponse\"\000\0227\n\006Cancel\022\022.NavMessage.NavC"
- "md\032\027.NavMessage.NavResponse\"\000b\006proto3"
- };
- static ::absl::once_flag descriptor_table_message_2eproto_once;
- const ::_pbi::DescriptorTable descriptor_table_message_2eproto = {
- false,
- false,
- 1277,
- descriptor_table_protodef_message_2eproto,
- "message.proto",
- &descriptor_table_message_2eproto_once,
- nullptr,
- 0,
- 11,
- 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_._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_.clamp_other_) -
- reinterpret_cast<char*>(&_impl_.v_)) + sizeof(_impl_.clamp_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;
- 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);
- }
- 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());
- }
- 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());
- }
- _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_.clamp_other_)
- + sizeof(AgvStatu::_impl_.clamp_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_.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 end = 7;
- case 7:
- if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 56)) {
- _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 end = 7;
- if (this->_internal_end() != 0) {
- target = stream->EnsureSpace(target);
- target = ::_pbi::WireFormatLite::WriteInt32ToArray(
- 7, 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 end = 7;
- 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_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 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[9]);
- }
- // ===================================================================
- 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[10]);
- }
- // @@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::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"
|