-
Notifications
You must be signed in to change notification settings - Fork 144
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
get road id and s/t coordinates given xyz point #43
Comments
Please describe in more detail what function you need |
I am sorry. I am not good at English. I am trying to describe clearly. |
Ok. I understand. I will be adding that query feature. |
Hello @grepthat, do you already have an update here? |
@saoraozhe3hao |
When loading the map via |
is here has the feature? |
@JuddiW looks good, I would like to try if it works. |
@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? |
Hello, I am also interested in this. Can someone make this function available? |
@flschnepf @Damonyhk - This is a snippet of the code I use to do a similar thing (get s,t and the lane it belongs to) the main function is the r I hope this helps `
}` |
@markomiz |
@Damonyhk |
@markomiz Thank you for sharing this! Could you explain the |
@catmxt please try this code. double Road::get_hdg(double s) road_st Road::xy2trackST(double x,double y)
} |
@JuddiW thank you! I was able to implement a version in my application which now gets the correct T-coordinate. |
What is the get_hdg function in the code? |
@wangdemon I had the same problem, I implemented it like this: double get_hdg(double gradient_x, double gradient_y)
{
return atan2(gradient_x, gradient_y);
}
// ...
odr::Vec2D gradient = ref_line.get_geometry(s)->get_grad(s);
double hdg = get_hdg(gradient[0], gradient[1]); |
Thank you for your reply However, during testing, the I use |
double Road::get_hdg(double s) |
Thank you |
`road_st Road::xy2trackST(double x,double y)
}
I have a question.This t maybe a negative number,how to solve this situation. |
@zhuabaguai sorry, try this code. double Road::get_hdg(double s) road_st Road::xy2trackST(double x,double y)
} |
appreciate |
Is it possible that provide a function named get_roadid_st_list_by_xy in C++
The text was updated successfully, but these errors were encountered: