Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
vadere
vadere
Commits
ec1bfe94
Commit
ec1bfe94
authored
Apr 16, 2019
by
Benedikt Kleinmeier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
In "OSMBehaviorController", added TODO to avoid "AssertionError" in "VTrajectory.add()".
parent
7e1125ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
VadereSimulator/src/org/vadere/simulator/models/osm/OSMBehaviorController.java
...rg/vadere/simulator/models/osm/OSMBehaviorController.java
+5
-0
No files found.
VadereSimulator/src/org/vadere/simulator/models/osm/OSMBehaviorController.java
View file @
ec1bfe94
...
...
@@ -239,6 +239,11 @@ public class OSMBehaviorController {
}
private
void
swapPedestrians
(
PedestrianOSM
pedestrian1
,
PedestrianOSM
pedestrian2
,
Topography
topography
)
{
// TODO Revise code to avoid AssertionError in VTrajectory.java:110
// at org.vadere.state.simulation.VTrajectory.add(VTrajectory.java:110)
// at org.vadere.simulator.models.osm.OSMBehaviorController.makeStep(OSMBehaviorController.java:79)
// at org.vadere.simulator.models.osm.OSMBehaviorController.swapPedestrians(OSMBehaviorController.java:250)
// This error arises because one agent makes two steps within one update step and step duration or something else is wrong.
VPoint
newPosition
=
pedestrian2
.
getPosition
().
clone
();
VPoint
oldPosition
=
pedestrian1
.
getPosition
().
clone
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment