[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[sumo-user] Different vehicle behavior in same surroundings
|
Hello,
I'm trying to run 2 predefined Sumo scenarios one after the other (scenario
ids 10_0, and 20_0).
They contain 10 and 20 Sumo controlled vehicles each, and I place my
remotely controlled vehicle at a certain position in both to drive among
them.
The problem is the following:
when I run scenario 10 and then scenario 20 after it, the behavior is
different than when I run scenario 20 right away.
here is a demonstration:
Only scenario 20_0:
_________________________________
Scenario ID: 20_0
---------------------------------------- time-step: 0
EGO lane pos and speed : 100.0 , 8.0
x, y, angle, speed for EGO to execute: 101.530884567 5.19671627088
90.7360694615 8.10524126657
HUMAN_19 lane position and speed : 121.0 10.0
---------------------------------------- time-step: 1
EGO lane pos and speed : 101.530884567 , 8.10524126657
x, y, angle, speed for EGO to execute: 103.100752622 5.1765673393
91.6889555588 8.39699835768
HUMAN_19 lane position and speed : 123.054754372 10.2737718593
---------------------------------------- time-step: 2
...
First scenario 10_0 and then 20_0:
__________________________________
Scenario ID: 20_0
---------------------------------------- time-step: 0
EGO lane pos and speed : 100.0 , 8.0
x, y, angle, speed for EGO to execute: 101.530884567 5.19671627088
90.7360694615 8.10524126657
HUMAN_19 lane position and speed : 121.0 10.0
---------------------------------------- time-step: 1
EGO lane pos and speed : 101.530884567 , 8.10524126657
x, y, angle, speed for EGO to execute: 103.100752622 5.1765673393
91.6889555588 8.39699835768
HUMAN_19 lane position and speed : 123.093816682 10.4690834098
---------------------------------------- time-step: 2
…
You can see that the behavior of HUMAN_19 is slightly different in time-step
1 event though EGO doesn’t change its remote control parameters.
I have included a small example in the .zip folder attached. If you run:
python2.7 small_example/src/run_scenario.py,
first scenario 10_0 then scenario 20_0 will be executed, one after another.
If you comment in line 63 (#scenario_ids = ['20_0']) in run_example.py, only
scenario 20_0 will be executed.
After running the two options, you will be able to see the above output,
where in time-step 1 ‘HUMAN_19’ behaves differently even though the
environment is exactly the same.
Do you have any clue why?
Thanks!
Best,
Branka
small_example.zip
<http://sumo-user-mailing-list.90755.n8.nabble.com/file/t361/small_example.zip>
--
Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/