Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hdmap - I want to know more about the map in the simulation #603

Closed
carlin314 opened this issue Oct 9, 2017 · 47 comments
Closed

hdmap - I want to know more about the map in the simulation #603

carlin314 opened this issue Oct 9, 2017 · 47 comments
Labels
Module: HD Map Indicates HD Map module related issues Module: Simulation & Dreamview Indicates simulation module related issues Type: Help wanted Indicates that a maintainer wants help on an issue/pull request from the rest of the community

Comments

@carlin314
Copy link

I see the map tool in modules, but I guess the hdmap in your simulation is sunnyvale_loop.bin,

but I can't find this file, I dont really understand the map

it comples the map in opendrive format to binary, all i know is this

but I hope there is some more document to use the map tool

could someone who know about it tell me how the original file .xml to the final file .bin

@msbeta
Copy link
Contributor

msbeta commented Oct 14, 2017

You can try the following command to convert file .xml to .bin file, parameter InputDir refers to the directory where XML is saved, and OutputDir refers to the output directory where bin will be saved.
bazel build //modules/map/tools:proto_map_generator
bazel-bin/modules/map/tools/proto_map_generator --map_dir=InputDir --output_dir=OutputDir

@chucklqsun
Copy link

@msbeta is Apollo using OpenDrive format for hdmap? How to open and edit the map file of sunnyvale for some purposes, such as modify lane? I use odrviewer from opendrive.org to open the map xml file and failed.

@rockcdr
Copy link

rockcdr commented Jan 18, 2018

Tested on OpenDrive sample files (V1.4 format) from OpenDrive.org. "proto_map_generator" does not work.

@chucklqsun
Copy link

@rockcdr I've reviewed the Apollo code and find its HDMap head and body structure does NOT completely follow OpenDrive v1.4 official spec.

@rockcdr
Copy link

rockcdr commented Jan 18, 2018

@chucklqsun Yes, in the base_map.xml, it is strange to have revMajor="0" and revMinor="6". Should be "1" and something.

<?xml version="1.0" encoding="UTF-8" ?> <OpenDRIVE xmlns="http://www.opendrive.org"> <header revMajor="0" revMinor="6" name="yongfengchanyeyuan" version="1.4" date="2017-11-20T17:58:11" north="3.741827476e+01" south="3.740239160e+01" east="-1.219960182e+02" west="-1.220307622e+02" vendor="Baidu"> <geoReference> <![CDATA[+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs]]> </geoReference> </header>

@wanglei828 wanglei828 added Type: Help wanted Indicates that a maintainer wants help on an issue/pull request from the rest of the community Module: HD Map Indicates HD Map module related issues Module: Simulation & Dreamview Indicates simulation module related issues labels Mar 16, 2018
@msbeta
Copy link
Contributor

msbeta commented Mar 30, 2018

@chucklqsun @rockcdr The Apollo OpenDrive Format has modified and extended the standard OpenDrive specification, so if necessary, you can email us,or you can leave your email address,we will send the the Apollo OpenDrive specification to you.

@msbeta
Copy link
Contributor

msbeta commented Mar 30, 2018

Hi @carlin314 @chucklqsun @rockcdr , hope our answer resolved your question. We will close the issue for now. If you have any additional question, please feel free to open an new issue. Our engineer team are more than happy to help that.

Thank you for supporting Apollo!

@chucklqsun
Copy link

@msbeta Thanks for your reply. It will be very helpful if you send me a copy of Apollo OpenDrive specification (to 77167680[at]qq.com ).

@msbeta
Copy link
Contributor

msbeta commented Apr 12, 2018

hi, @chucklqsun , I have already emailed the Apollo map specification document to you. Please feel free to let me know if there are any other issues we can help with on the map side, thanks!

@chucklqsun
Copy link

@msbeta Got it! Thanks mate.

@carlin314
Copy link
Author

@msbeta It will be also very helpful if you send me a copy of Apollo OpenDrive specification (to cmw314lion@gmail.com ).I am also confused of the difference between the origin opendrive and apollo opendrive

@thilo20
Copy link

thilo20 commented Apr 24, 2018

can you please send me the Apollo OpenDrive spec to Thilo.schaper@gmx.de?

@candyguo
Copy link

can you please send me the Apollo OpenDrive spec to candyguo_fly@163.com?

@siyangy siyangy removed their assignment Apr 25, 2018
@methedras
Copy link

@msbeta Please send me the current Apollo OpenDRIVE spec to peter.fryscak@vectorzeroinc.com

@rockcdr
Copy link

rockcdr commented Jul 5, 2018

@msbeta, Please send me the Apollo OpenDrive spec to rockcdr@gmail.com

@dorintt
Copy link

dorintt commented Jul 12, 2018

Why not publish the apollo specific opendrive spec? I thought Baidu wants to make everything open source so it's easy to get started.

@whunmr
Copy link

whunmr commented Jul 25, 2018

@msbeta, could you please send me the Apollo OpenDrive spec to whunmr[at]gmail.com

thanks mate.

@alexbuyval
Copy link

@msbeta Could you, please, send me the Apollo OD spec to alexbuyval@gmail.com

Thanks!

@xiangguomin
Copy link

@msbeta Can you please send me the apollo OpenDrive spec to xiangguomin@gmail.com as well?
Thanks!

@natashadsouza
Copy link
Contributor

Hi going forward please use: the following link to send us your details. Thanks!

@JWhitleyWork
Copy link
Contributor

@msbeta and/or @natashadsouza - I have filled out the above form several days ago but have not received any response. Could you please email this to me at jwhitley@autonomoustuff.com? Thank you.

@jmloveyj
Copy link

@msbeta and/or @natashadsouza - I have filled out the above form several days ago but have not received any response. Could you please email this to me at jmloveyj@sina.cn? Thank you.

@wobistdu
Copy link

@natashadsouza I have filled out the survey, but not getting any email from you, can you email this to me? tiankuan@gmail.com

@ruisir001
Copy link

@msbeta @natashadsouza , Could you, please, send me the Apollo OpenDrive spec to liurui019@163.com

Thanks!

@ruisir001
Copy link

@chucklqsun Could you, please, send me the Apollo OpenDrive spec to liurui019@163.com

@Wang4758
Copy link

@msbeta Could you please send me the Apollo OpenDrive spec to xiao.wang4758@gmail.com?

@ankaret
Copy link

ankaret commented Feb 15, 2019

@msbeta @natashadsouza I have filled the survey but haven't received any email from you, can you please send me the Apollo OpenDrive spec to anna.rettinger@gmail.com?

@diff8911
Copy link

@msbeta Could you please send me the Apollo OpenDrive spec to diff8911@gmail.com?

@natashadsouza
Copy link
Contributor

Closing this issue. Please follow up on #3005 with all your requests. Thanks!

@MonkeyJohn
Copy link

Closing this issue. Please follow up on #3005 with all your requests. Thanks!
@natashadsouza Could you please send me the Apollo OpenDrive spec to xjs127@163.com?

@pjs9115916
Copy link

@msbeta Got it! Thanks mate.

It will be also very helpful if you send me a copy of Apollo OpenDrive specification (to panjisong@cuhk.edu.cn ).I am also confused of the difference between the origin opendrive and apollo opendrive

@ArtistZhou
Copy link

where can i get apollo opendrive sample data? i found Apollo OpenDRIVE specification:https://github.com/chucklqsun/apollo_learning

@ArtistZhou
Copy link

@chucklqsun @rockcdr The Apollo OpenDrive Format has modified and extended the standard OpenDrive specification, so if necessary, you can email us,or you can leave your email address,we will send the the Apollo OpenDrive specification to you.

Can I get xml file from you? I can not find this file base_map.xml

@windcatcher
Copy link

@msbeta Could you please send me the Apollo OpenDrive spec to lms681@163.com?

@wangruoyi123456
Copy link

@msbeta@natashadsouza Could you please send me the Apollo OpenDrive spec to wangruoyi@neolix.cn
thanks

@glebkiselev
Copy link

@msbeta Could you please send me the Apollo OpenDrive spec to glebkiselev777@gmail.com?

@sszove
Copy link

sszove commented Nov 25, 2020

@msbeta Could you please send me the Apollo OpenDrive spec to arc_shawn@163.com?

@wangzhensuo
Copy link

wangzhensuo commented Jan 5, 2021

Tested on OpenDrive sample files (V1.4 format) from OpenDrive.org. "proto_map_generator" does not work.

I tested on base_map.xml from apollo. it is also could not be convert.
./bazel-bin/modules/map/tools/proto_map_generator --map_dir=./modules/map/data/sunnyvale_loop --output_dir=./modules/map/data/sunnyvale_loop

@wangzhensuo
Copy link

I found a method to fix this error.
when I run cmd,I meet errors:

[cpoc@in-dev-docker:/apollo]$ bazel-bin/modules/map/tools/proto_map_generator --map_dir=modules/map/data/new --output_dir=modules/map/data/new
E0111 10:33:41.756587 28383 opendrive_adapter.cc:44] []fail to parse opendrive header, unsupport data in more than one zones
F0111 10:33:41.757151 28383 proto_map_generator.cc:39] Check failed: apollo::hdmap::adapter::OpendriveAdapter::LoadData(map_filename, &pb_map) []fail to load data from : modules/map/data/new/base_map.xml
*** Check failure stack trace: ***
@ 0x7f6591ecb60d google::LogMessage::Fail()
@ 0x7f6591ecdaca google::LogMessage::SendToLog()
@ 0x7f6591ecb01d google::LogMessage::Flush()
@ 0x7f6591ecea79 google::LogMessageFatal::~LogMessageFatal()
@ 0x557fab562409 main
@ 0x7f6590d31b97 __libc_start_main
@ 0x557fab56216a _start
@ (nil) (unknown)
Aborted (core dumped)

then,I found where errors occurs

int eastZone = GetLongZone(east);
int westZone = GetLongZone(west);
if (eastZone != westZone) {
  std::string err_msg = "unsupport data in more than one zones";
  return Status(apollo::common::ErrorCode::HDMAP_DATA_ERROR, err_msg);
}

then,I opened base_map.xml,and change "east" and "west" to the same value.
and run above cmd
(bazel-bin/modules/map/tools/proto_map_generator --map_dir=modules/map/data/new --output_dir=modules/map/data/new)
again. it is successfully generate base_map.txt and base_map.bin from base_map.xml.
I do not know this method is correct or not,if anyone know a better method,please tell me,thank you.

@rahulkrishn1990
Copy link

Hallo @natashadsouza,

I have filled above form requesting the Custom Apollo's OpenDrive format.
Could you please email me the document at enishettyrahul@gmail.com ?

Regards,
Rahul

@SamerSeed
Copy link

Could you send your specks on iskander.aka@mail.ru, please?

@rahulkrishn1990
Copy link

rahulkrishn1990 commented Mar 27, 2021 via email

@SamerSeed
Copy link

SamerSeed commented Mar 27, 2021 via email

@rahulkrishn1990
Copy link

rahulkrishn1990 commented Mar 27, 2021 via email

@ghost
Copy link

ghost commented Apr 7, 2021

LGSVL还是很香的,导入导出,不难吧。细微差别,自己改一下代码就好了啊,目前看还不用修改

@mingkunwxc
Copy link

Thanks for your reply. It will be very helpful if you send me a copy of Apollo OpenDrive specification (to mingkun_wxc@163.com ).

@worldmapforyou
Copy link

I developed an online apollo opendrive visualization tool, refer to the following website: www.worldmapforyou.com, you can open the apollo opendrive data of ***.bin, the data will not be sent to the server, but directly parsed on the client. Can view the properties of the map

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Module: HD Map Indicates HD Map module related issues Module: Simulation & Dreamview Indicates simulation module related issues Type: Help wanted Indicates that a maintainer wants help on an issue/pull request from the rest of the community
Projects
None yet
Development

No branches or pull requests