找回密码
 立即注册
搜索
热搜: 活动 交友 discuz
查看: 427|回复: 2

地图同步方案

[复制链接]

8

主题

14

回帖

146

积分

注册会员

积分
146
发表于 2025-5-7 18:56:36 | 显示全部楼层 |阅读模式
本帖最后由 邹杰 于 2025-5-7 21:01 编辑

同步流程
1.云端程序将所有景区的路网都同步到一个专用库中, 并以scence_id做区分.  
2.云端Map渲染程序检测gx_navigation表中is_update若是1, 则进行地图渲染
3.每台车每隔一段时间以增量方式将本地gx_route_out_points_local数据上传到云端的专用库
4.云端Map同步程序, 每隔一段时间从专用库中取N条数据做过滤判断, 并将有效数据写入gx_route_out_points_server表中, 并将gx_route_out_points_local对应数据标记为已使用(cloud_is_using=1), 待云端程序删除
5.每台车每隔一段时间以增量方式将云端专用库中的gx_route_out_points_server数据同步到本地gx_route_out_points_server表中.

================================================ 分割 =============================

具体步骤
需增加、修改四部分

docker环境修改

* 需往ros2和web容器注入一个环境变量用于区分程序的运行环境. (GX_RUNTIME_ENV: cloud 云服务器环境, local 车环境)
* 云服务环境下,Mysql8容器启动需要创建多个库(全局规划器专用库(global_database)、地图同步(map_database)专用库等)

修改表结构
* gx_map、gx_route、gx_navigtion、gx_nav_route、gx_point表 增加 scence_id字段表示所关联景区
* gx_route_out_points_local 表 增加 cloud_is_using (0:未计算 1:有效点 2:无效点) 字段
* gx_route_out_points_server, gx_route_out_points_local 去掉id主键, 防止主键用完问题

增加数据同步程序
*  将所有景区路网同步到专用库
*  每台车需增量上传local数据, 增量下载server数据
*  维护(修改、删除、新增)路网数据(Map图片文件,nav_route、navigtion、route、map、point表)
*  维护gx_route_out_points_local表中的数据

调整Map节点
*  将local表数据过滤一遍, 再写入到server表
*  现有代码需兼容多景区,且不影响单景区的使用逻辑

================================================ 分割 =============================

Map过滤方案
1. 每隔1秒从local表中正序取cloud_is_using=0的100条point数据
2. 判断point是否在某个Map图片内
        若存在将point点展开(getRobotPoints, 即以点为中心往外扩成一个矩形), 并取得矩形对应Map图片的POI区域, 判断POI是否存在白色像素,若存在则视为有效点, 入库到server
        若不存在则视为无效点, 直接转到第3步
3. 标记为已使用, 待同步程序删除


15

主题

128

回帖

375

积分

中级会员

积分
375
发表于 2026-10-10 04:27:37 | 显示全部楼层
http://tuchkas.ru/

15

主题

128

回帖

375

积分

中级会员

积分
375
发表于 2026-10-10 04:34:19 | 显示全部楼层
http://audiobookkeeper.ru http://cottagenet.ru http://eyesvision.ru http://eyesvisions.com http://factoringfee.ru http://filmzones.ru http://gadwall.ru http://gaffertape.ru http://gageboard.ru http://gagrule.ru http://gallduct.ru http://galvanometric.ru http://gangforeman.ru http://gangwayplatform.ru http://garbagechute.ru http://gardeningleave.ru http://gascautery.ru http://gashbucket.ru http://gasreturn.ru http://gatedsweep.ru http://gaugemodel.ru http://gaussianfilter.ru http://gearpitchdiameter.ru http://geartreating.ru http://generalizedanalysis.ru http://generalprovisions.ru http://geophysicalprobe.ru http://geriatricnurse.ru http://getintoaflap.ru  
http://getthebounce.ru http://habeascorpus.ru http://habituate.ru http://hackedbolt.ru http://hackworker.ru http://hadronicannihilation.ru http://haemagglutinin.ru http://hailsquall.ru http://hairysphere.ru http://halforderfringe.ru http://halfsiblings.ru http://hallofresidence.ru http://haltstate.ru http://handcoding.ru http://handportedhead.ru http://handradar.ru http://handsfreetelephone.ru http://hangonpart.ru http://haphazardwinding.ru http://hardalloyteeth.ru http://hardasiron.ru http://hardenedconcrete.ru http://harmonicinteraction.ru http://hartlaubgoose.ru http://hatchholddown.ru http://haveafinetime.ru http://hazardousatmosphere.ru http://headregulator.ru http://heartofgold.ru http://heatageingresistance.ru  
http://heatinggas.ru http://heavydutymetalcutting.ru http://jacketedwall.ru http://japanesecedar.ru http://jibtypecrane.ru http://jobabandonment.ru http://jobstress.ru http://jogformation.ru http://jointcapsule.ru http://jointsealingmaterial.ru http://journallubricator.ru http://juicecatcher.ru http://junctionofchannels.ru http://justiciablehomicide.ru http://juxtapositiontwin.ru http://kaposidisease.ru http://keepagoodoffing.ru http://keepsmthinhand.ru http://kentishglory.ru http://kerbweight.ru http://kerrrotation.ru http://keymanassurance.ru http://keyserum.ru http://kickplate.ru http://killthefattedcalf.ru http://kilowattsecond.ru http://kingweakfish.ru http://kleinbottle.ru http://kneejoint.ru  
http://knifesethouse.ru http://knockonatom.ru http://knowledgestate.ru http://kondoferromagnet.ru http://labeledgraph.ru http://laborracket.ru http://labourearnings.ru http://labourleasing.ru http://laburnumtree.ru http://lacingcourse.ru http://lacrimalpoint.ru http://lactogenicfactor.ru http://lacunarycoefficient.ru http://ladletreatediron.ru http://laggingload.ru http://laissezaller.ru http://lambdatransition.ru http://laminatedmaterial.ru http://lammasshoot.ru http://lamphouse.ru http://lancecorporal.ru http://lancingdie.ru http://landingdoor.ru http://landmarksensor.ru http://landreform.ru http://landuseratio.ru http://languagelaboratory.ru http://largeheart.ru http://lasercalibration.ru http://laserlens.ru  
http://laserpulse.ru http://laterevent.ru http://latrinesergeant.ru http://layabout.ru http://leadcoating.ru http://leadingfirm.ru http://learningcurve.ru http://leaveword.ru http://machinesensible.ru http://magneticequator.ru http://magnetotelluricfield.ru http://mailinghouse.ru http://majorconcern.ru http://mammasdarling.ru http://managerialstaff.ru http://manipulatinghand.ru http://manualchoke.ru http://medinfobooks.ru http://mp3lists.ru http://nameresolution.ru http://naphtheneseries.ru http://narrowmouthed.ru http://nationalcensus.ru http://naturalfunctor.ru http://navelseed.ru http://neatplaster.ru http://necroticcaries.ru http://negativefibration.ru http://neighbouringrights.ru http://objectmodule.ru  
http://observationballoon.ru http://obstructivepatent.ru http://oceanmining.ru http://octupolephonon.ru http://offlinesystem.ru http://offsetholder.ru http://olibanumresinoid.ru http://onesticket.ru http://packedspheres.ru http://pagingterminal.ru http://palatinebones.ru http://palmberry.ru http://papercoating.ru http://paraconvexgroup.ru http://parasolmonoplane.ru http://parkingbrake.ru http://partfamily.ru http://partialmajorant.ru http://quadrupleworm.ru http://qualitybooster.ru http://quasimoney.ru http://quenchedspark.ru http://quodrecuperet.ru http://rabbetledge.ru http://radialchaser.ru http://radiationestimator.ru http://railwaybridge.ru http://randomcoloration.ru http://rapidgrowth.ru http://rattlesnakemaster.ru  
http://reachthroughregion.ru http://readingmagnifier.ru http://rearchain.ru http://recessioncone.ru http://recordedassignment.ru http://rectifiersubstation.ru http://redemptionvalue.ru http://reducingflange.ru http://referenceantigen.ru http://regeneratedprotein.ru http://reinvestmentplan.ru http://safedrilling.ru http://sagprofile.ru http://salestypelease.ru http://samplinginterval.ru http://satellitehydrology.ru http://scarcecommodity.ru http://scrapermat.ru http://screwingunit.ru http://seawaterpump.ru http://secondaryblock.ru http://secularclergy.ru http://seismicefficiency.ru http://selectivediffuser.ru http://semiasphalticflux.ru http://semifinishmachining.ru http://spicetrade.ru http://spysale.ru http://stungun.ru http://tacticaldiameter.ru  
http://tailstockcenter.ru http://tamecurve.ru http://tapecorrection.ru http://tappingchuck.ru http://taskreasoning.ru http://technicalgrade.ru http://telangiectaticlipoma.ru http://telescopicdamper.ru http://temperateclimate.ru http://temperedmeasure.ru http://tenementbuilding.ru http://ultramaficrock.ru http://ultraviolettesting.ru
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|狗熊技术交流

GMT+8, 2026-11-14 10:55 , Processed in 0.018824 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表