-
Notifications
You must be signed in to change notification settings - Fork 205
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
Reference points in SyncAction #214
Comments
I thought I had found the same problem coincidentally. |
@bleach31 Yes, you have the same or similar use case. The #185 issue is about esmini not respecting axle definitions, instead assuming rear axle is according to bound box center definition (vehicle ref point coinciding with rear axle). @ReiDa8684 Thanks for excellent description of your use case. While the initial idea was not to control the exact end positions, more to end up in a critical situation and then quit the action some short time/distance before actual collision. But I see the use case and find it very interesting. So thanks for sharing your "dream" :) After quick thinking about it: A question: What about freespace (true) distance? Would it be an alternative approach addressing the same use cases or would that be a totally different case? The freespace would continuously evaluate and choose sync point according to the closest distance from any point along the entity bounding box (corner or along a side) to the target point. I realize one potential disadvantage being that measurement might be discontinuous over time, e.g. if the vehicle heading changes resulting in shifting local sync point (which point along the bounding box is closest to target point). On the other hand, one advantage is that the user don't have to think about and hard code the local sync point. I agree that this should be discussed within OpenSCENARIO 1.X work group. So I actually created an issue there, linking to this issue for your excellent description. |
@bleach31 good to see, that I am not the only one struggling with this topic. @eknabevcc thank you for the valuable feedback and proposed next steps: as an add-on to my motivation: Concerning the proposed usage of "freespace": An alternative approach: |
@eknabevcc I analyzed some new approaches and would like to post them here, maybe they are useful for the discussions within the work group: This approach seams to be possible already in OpenScenario and esmini and I will set up an test example. For straight trajectories I do not see any potential problems in this approach. 2) using local coordinate system of other vehicle In this approach, the syncpoint which shall be reached by the target reference point is defined in the ego vehicles coordinate system. I was quite optimistic on this approach, but it turned out to be not feasible: preliminary Summary:
|
Hello,
i am following up the issue "Steady state phase of target in SyncAction" of @johannesWen
We still try to simulate a EURO NCAP CPTA scenario, in which the (planned or synchronized) crash point needs to be reached very exactly.
The SyncAction really simplifies a lot, but is there any way to use other reference points then the center of the rear axle in OpenScenario?
I tried several approaches to reach a precise crashpoint:
1) using just one global coordinate of the crashpoint for both, the syncpoint of the ego (SE) and the target (ST)
As you can see in the attached figure, this leads to the situation that the rear axles overlap at the correct point and time, but is obvioulsy not what was intended.
2) changing the bounding boxes of the vehicles
Maybe ok on straight trajectories, but in curves this led to very strange graphical representation, e.g. not respecting basic physics, that the wheels of the rear axle do not slide in lateral direction.
3) shifting the syncpoints of the ego (SE) and the target (ST)
As you can see in the attached figure, this solves the problem in principle, but:
the shifting of the syncpoints is dependent on the dimensions of the vehicle, the geometry of the trajectory before the crash and also the geometry of the bumper.
4) [I have a dream] use local syncpoints
I am looking for something like in the attached figure. Let's extend the SyncAction, so that it accepts other syncpoints than the center of the rear axle. If it would be possible to define a syncpoint in the local coordinate system of the vehicles, it may look like in the figure: Definition of a global target position to be reached by a local syncpoint.
Just one more screenshot from CPTA description to illustrate my motivation:
I am fully aware, that this is not a esmini-specific problem but a limitation of OpenScenario. Anyway, any useful hint how to solve such situations are appreciated.
The text was updated successfully, but these errors were encountered: