libOpenDRIVE
libOpenDRIVE copied to clipboard
get road id and s/t coordinates given xyz point
Is it possible that provide a function named get_roadid_st_list_by_xy in C++
Please describe in more detail what function you need
I am sorry. I am not good at English. I am trying to describe clearly. There is a function named get_xyz in Road.h. It return world xyz with inputting s and t. We need the reverse function which return roadid,s,t with inputting xyz or return roadid,s,t list with inputting xy
Ok. I understand. I will be adding that query feature.
Hello @grepthat, do you already have an update here? I am also very interested in that feature.
I am sorry. I am not good at English. I am trying to describe clearly. There is a function named get_xyz in Road.h. It return world xyz with inputting s and t. We need the reverse function which return roadid,s,t with inputting xyz or return roadid,s,t list with inputting xy
@saoraozhe3hao Hi, you said get_xyz() function return world xyz , but in my case there is something wrong.. Coordinate is different from world coordinate. " tmp_xyz = odr_road.get_xyz(1.0, 0.0, 0.0); " I use this line to get world coordinate What is the problem. plz let me know
When loading the map via odr::OpenDriveMap odr_map("data.xodr"); the default option is to center the map. So you would probably need to add OpenDriveMap::x_offs and y_offs to your point to get the correct world coordinate.
Ok. I understand. I will be adding that query feature.
is here has the feature?
I‘ve implemented the query feature, but i don't konw how to sync it to github.
@JuddiW looks good, I would like to try if it works. What do you mean by syncing? You can have a look at this guide: https://gist.github.com/Chaser324/ce0505fbed06b947d962
@lrstttl > @JuddiW looks good, I would like to try if it works. What do you mean by syncing? You can have a look at this guide: https://gist.github.com/Chaser324/ce0505fbed06b947d962
Thank you for your help, I will try it.
@lrstttl > @JuddiW looks good, I would like to try if it works. What do you mean by syncing? You can have a look at this guide: https://gist.github.com/Chaser324/ce0505fbed06b947d962
Thank you for your help, I will try it.
So is the query feature merged?