Closed mchlswyr closed 3 years ago
I also repeated test 2 with master (wise-sim on release) and I also got the same collision
Collision between vehicles 99 3
which confuses me. In any case, we are getting the collisions with both the ego and among the GSS vehicles too, which is good.
This collision is a collision detected by GSServer, not by GSClient. In GSServer, when the unit circles overlap, you see
...
Collision between vehicles x y
...
That's why it is reported when using this branch and when using master. When GSClient detects the collision, it gets reported to GSServer, and you will see
...
VID X:
state DISABLED
position (0.0, 0.0)
speed 0.0
...
VID Y:
state DISABLED
position (0.0, 0.0)
speed 0.0
...
I had a lot of trouble getting the ego and vehicle 3 to collide in GSClient, but I was able to get it eventually. I don't think it's a big deal to get the vehicles to crash. The main thing is that both scenarios work now and collisions are enabled. Getting GSClient to detect the crash was just to make sure that collisions are fixed and not somehow still disabled.
Changes
GSClient.cpp
, the vehicles were being spawned at the origin and their state wasn't being set (so it was defaulting to the origin)isActive
toFalse
(i.e., stop GSS)Testing
Setup
Test 1
Test 2
maps/ring_road/ringroad.osm
,scenarios/ring_road_ccw/geoscenarioserver/ring_road_ccw.osm
,scenarios/ring_road_ccw/ring_road_ccw.osm
scenarios/ring_road_ccw/ring_road_ccw.osm
right before the stop line in front of vehicle 3logs/<timestamp>/GeoScenarioServer.log
: