-
Notifications
You must be signed in to change notification settings - Fork 103
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
Following a fixed distance along a curve #204
Comments
For your first question, the inaccuracy is due to the forward Euler approximation being done internally. You might be able to get better results with a smaller step size (see the note here), but with this method there will always be some noise. As to your second question, to my knowledge there's no direct way to calculate that distance in Scenic right now, though this has come up in the past and it's something we'd like to add/review a PR adding. |
Thanks @Eric-Vin. Thinking about your hint with the Euler approximation, I guess the VectorField which defines the orientation of a PolylineRegion is simply not intended to support my specific use-case:
My plan now is to modify one of the Regions implemented in Scenic 3 (PathRegion?) by defining something like a 1D VectorField to serve as the track's orientation. Its Please let me know if you think this is a reasonable idea (and if this might be of general interest as a PR). |
Apologies for the late response, just saw that this comment was posted! This seems like a reasonable idea to me overall, and the idea for the default vector field for |
Versions: Scenic 2.1.0, Python 3.11
Hi.
My goal is to model a scenario where the ego vehicle follows a curved track, and there is an obstacle on this track. I want to be able to specify the distance between ego and obstacle, not as the crow flies, but measured along the track (like a braking distance on a curved road).
I am using the
following
specifier to obtain this, like in the minimal example below, but do not get the intended results:The obstacle was not placed on the track, and the ego-obstacle-distance is not 10. Am I misunderstanding something here?
Or is there any other syntax to specify a distance along a curve?
The text was updated successfully, but these errors were encountered: