Comments (3)
可能还需要修改一下HD Map上每条道的限速。您试试这个代码
from baidu_apollo_proto.proto_v8.modules.common_msgs.map_msgs.map_pb2 import Map
map = Map()
with open("sunnyvale_big_loop.bin", "rb") as f:
map.ParseFromString(f.read())
for lane in map.lane:
print(lane.id.id, round(lane.speed_limit, 2))
lane.speed_limit = 1000
with open("crazy_sunnyvale_big_loop.bin", "wb") as f:
f.write(map.SerializeToString())
with open("crazy_sunnyvale_big_loop.bin", "rb") as f:
map.ParseFromString(f.read())
for lane in map.lane:
print(lane.id.id, round(lane.speed_limit, 2))
https://pypi.org/project/baidu-apollo-proto/
地图太大了我没法上传到GitHub,但是上面那个代码应该可以把 sunnyvale_big_loop
上的速度上限改掉。
from apollo.
可能还需要修改一下高清地图上每条道的限速。您尝试一下这个代码
from baidu_apollo_proto.proto_v8.modules.common_msgs.map_msgs.map_pb2 import Map map = Map() with open("sunnyvale_big_loop.bin", "rb") as f: map.ParseFromString(f.read()) for lane in map.lane: print(lane.id.id, round(lane.speed_limit, 2)) lane.speed_limit = 1000 with open("crazy_sunnyvale_big_loop.bin", "wb") as f: f.write(map.SerializeToString()) with open("crazy_sunnyvale_big_loop.bin", "rb") as f: map.ParseFromString(f.read()) for lane in map.lane: print(lane.id.id, round(lane.speed_limit, 2))
https://pypi.org/project/baidu-apollo-proto/
地图突然出现了我无法上传到GitHub的情况,但是上面的代码可以把
sunnyvale_big_loop
上的速度上限改掉。
好的,我试试,谢谢!!!
from apollo.
可能需要修改一下高清地图上每条道的限制。你可以试试这个代码
from baidu_apollo_proto.proto_v8.modules.common_msgs.map_msgs.map_pb2 import Map map = Map() with open("sunnyvale_big_loop.bin", "rb") as f: map.ParseFromString(f.read()) for lane in map.lane: print(lane.id.id, round(lane.speed_limit, 2)) lane.speed_limit = 1000 with open("crazy_sunnyvale_big_loop.bin", "wb") as f: f.write(map.SerializeToString()) with open("crazy_sunnyvale_big_loop.bin", "rb") as f: map.ParseFromString(f.read()) for lane in map.lane: print(lane.id.id, round(lane.speed_limit, 2))
https://pypi.org/project/baidu-apollo-proto/
地图很方便我把地图上传到GitHub,但是上面那个代码应该可以把
sunnyvale_big_loop
上学期的课程改掉。
Very handy tool
from apollo.
Related Issues (20)
- modules/perception/camera_detection_bev/detector/petr/bev_obstacle_detector.h中的k_data
- Apollo LiDAR perception model fails to detect obstacles under foggy and rainy conditions.
- HDMaps compatible with Apollo open datasets from San Fracisco and Daoxiang Lake
- apollo map shift HOT 3
- Localization module launch error due to missing imu transform HOT 5
- Some questions about `buildtool` HOT 1
- Failed to load default routing. Please make sure the file exists at /apollo/modules/map/data/demo_default_cycle_routing.txt HOT 3
- Planning module frequently fails to make a driving plan HOT 3
- PathDecider in Planning Module
- How to convert XODR files to Apollo 9.0 maps HOT 2
- apollo7.0 piecewise-jerk qp planning problem HOT 1
- 如何调整坐标系使lidar检测障碍物与点云匹配
- Is it possible to point out a GPS coordinate and vehicle will build a route to this point without a HD map? HOT 1
- 使用apollo官方脚本安装docker时报错curl download.docker.com/linux/ubntu/gpg 链接超时 HOT 2
- Bug report - Controller bugs that would affect control performance HOT 1
- PETR V1 cannot run in camera_detection_bev
- question about path bounds decider HOT 1
- question about path bounds decider HOT 1
- apollo编译感知模块报错
- Apollo9.0摄像头Camera适配无data输出 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apollo.