-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
[JuPedSim] Speed adjustment #14269
Merged
Merged
[JuPedSim] Speed adjustment #14269
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
260ac9c
[JuPedSim] A pedestrian's speed is possibly adjusted from its lane's …
bcoueraud87 957d247
[JuPedSim] Added test for pedestrian speed adjustment.
bcoueraud87 ef5c7bb
[JuPedSim] Minor style changes.
bcoueraud87 8079315
Removed a const qualifier that I added.
bcoueraud87 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Warning: Polygon for junction 'J1' has been dilated as it is just a segment. |
2,579 changes: 2,579 additions & 0 deletions
2,579
tests/sumo/pedestrian_model/jupedsim/speed_change/fcd.sumo
Large diffs are not rendered by default.
Oops, something went wrong.
13 changes: 13 additions & 0 deletions
13
tests/sumo/pedestrian_model/jupedsim/speed_change/input_routes.rou.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- generated on 2022-09-07 15:44:19 by Eclipse SUMO netedit Version v1_14_1+0668-9e54f98b5d2 | ||
--> | ||
|
||
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/routes_file.xsd"> | ||
<!-- Routes --> | ||
<route id="r_0" edges="E0 E1"/> | ||
<!-- Vehicles, persons and containers (sorted by depart) --> | ||
<person id="p_0" depart="0.00" color="red"> | ||
<walk route="r_0" arrivalPos="-0.10"/> | ||
</person> | ||
</routes> |
51 changes: 51 additions & 0 deletions
51
tests/sumo/pedestrian_model/jupedsim/speed_change/net.net.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- generated on 2024-01-26 15:08:31 by Eclipse SUMO netedit Version v1_19_0+0701-cce4e253116 | ||
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/neteditConfiguration.xsd"> | ||
|
||
<input> | ||
<sumo-net-file value="C:\Users\coue_be\Dev\sumo\tests\sumo\pedestrian_model\jupedsim\speed_change\net.net.xml"/> | ||
</input> | ||
|
||
<output> | ||
<output-file value="C:\Users\coue_be\Dev\sumo\tests\sumo\pedestrian_model\jupedsim\speed_change\net.net.xml"/> | ||
</output> | ||
|
||
<processing> | ||
<geometry.min-radius.fix.railways value="false"/> | ||
<geometry.max-grade.fix value="false"/> | ||
<offset.disable-normalization value="true"/> | ||
<lefthand value="0"/> | ||
</processing> | ||
|
||
<junctions> | ||
<no-internal-links value="true"/> | ||
<no-turnarounds value="true"/> | ||
<junctions.corner-detail value="5"/> | ||
<junctions.limit-turn-speed value="5.50"/> | ||
<rectangular-lane-cut value="0"/> | ||
</junctions> | ||
|
||
<pedestrian> | ||
<walkingareas value="0"/> | ||
</pedestrian> | ||
|
||
</configuration> | ||
--> | ||
|
||
<net version="1.16" junctionCornerDetail="5" limitTurnSpeed="5.50" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/net_file.xsd"> | ||
|
||
<location netOffset="0.00,0.00" convBoundary="0.00,0.00,200.00,0.00" origBoundary="-10000000000.00,-10000000000.00,10000000000.00,10000000000.00" projParameter="!"/> | ||
|
||
<edge id="E0" from="J0" to="J1" priority="-1"> | ||
<lane id="E0_0" index="0" allow="pedestrian" speed="13.89" length="100.00" shape="0.00,-1.60 100.00,-1.60"/> | ||
</edge> | ||
<edge id="E1" from="J1" to="J2" priority="-1"> | ||
<lane id="E1_0" index="0" allow="pedestrian" speed="0.50" length="100.00" shape="100.00,-1.60 200.00,-1.60"/> | ||
</edge> | ||
|
||
<junction id="J0" type="dead_end" x="0.00" y="0.00" incLanes="" intLanes="" shape="0.00,0.00 0.00,-3.20"/> | ||
<junction id="J1" type="dead_end" x="100.00" y="0.00" incLanes="E0_0" intLanes="" shape="100.00,0.00 100.00,-3.20 100.00,0.00"/> | ||
<junction id="J2" type="dead_end" x="200.00" y="0.00" incLanes="E1_0" intLanes="" shape="200.00,-3.20 200.00,0.00"/> | ||
|
||
</net> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--net-file net.net.xml --route-files input_routes.rou.xml --no-step-log --tripinfo-output tripinfos.xml --fcd-output fcd.xml |
Empty file.
48 changes: 48 additions & 0 deletions
48
tests/sumo/pedestrian_model/jupedsim/speed_change/tripinfos.sumo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<!-- generated on 2024-01-26 15:08:54 by Eclipse SUMO sumo Version v1_19_0+0701-cce4e253116 | ||
This data file and the accompanying materials | ||
are made available under the terms of the Eclipse Public License v2.0 | ||
which accompanies this distribution, and is available at | ||
http://www.eclipse.org/legal/epl-v20.html | ||
This file may also be made available under the following Secondary | ||
Licenses when the conditions for such availability set forth in the Eclipse | ||
Public License 2.0 are satisfied: GNU General Public License, version 2 | ||
or later which is available at | ||
https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html | ||
SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later | ||
<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd"> | ||
|
||
<input> | ||
<net-file value="net.net.xml"/> | ||
<route-files value="input_routes.rou.xml"/> | ||
</input> | ||
|
||
<output> | ||
<write-license value="true"/> | ||
<fcd-output value="fcd.xml"/> | ||
<tripinfo-output value="tripinfos.xml"/> | ||
</output> | ||
|
||
<time> | ||
<end value="2000"/> | ||
</time> | ||
|
||
<processing> | ||
<default.speeddev value="0"/> | ||
<pedestrian.model value="jupedsim"/> | ||
</processing> | ||
|
||
<report> | ||
<xml-validation value="never"/> | ||
<no-step-log value="true"/> | ||
</report> | ||
|
||
</configuration> | ||
--> | ||
|
||
<tripinfos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/tripinfo_file.xsd"> | ||
<personinfo id="p_0" depart="0.00" type="DEFAULT_PEDTYPE" speedFactor="1.00"> | ||
<walk depart="0.00" departPos="0.00" arrival="267.00" arrivalPos="99.90" duration="267.00" routeLength="199.90" timeLoss="123.07" maxSpeed="1.39"/> | ||
</personinfo> | ||
</tripinfos> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bcoueraud87 this should not be const