rodrigoqueiroz / geoscenarioserver

9 stars 1 forks source link

'trigger' is not working #110

Open gawinwong opened 1 year ago

gawinwong commented 1 year ago

I have a node with the 'gs' as 'trigger'.

<node id='-2767678' action='modify' visible='true' lat='31.5' lon='118.5'>
    <tag k='activate' v='location' />
    <tag k='astart' v='yes' />
    <tag k='gs' v='trigger' />
    <tag k='name' v='t1' />
    <tag k='owner' v='ego_vehicle' />
    <tag k='radius' v='400' />
    <tag k='target' v='vv1' />
  </node>

I have a node with the 'gs' as 'egostart'. I spawned the ego vehicle in carla with the name "ego_vehicle" but not spawned in geoscenario. But I added the vehicle into carla_vehicles in geoscenario. When the ego get into the trigger location, the target vehicle 'vv1' doesn't start to move.

gawinwong commented 1 year ago

image

Does only 'PV' support triggers? But I have found the warning in GSS says that PV is not supported yet.

# Path Vehicle (PV)
        elif btype == 'pv':
            vehicle = Vehicle(vid, name, start_state, yaw=yaw)
            vehicle.model = model
            sim_traffic.add_vehicle(vehicle)
            log.warning("Path-based vehicles are still not supported in GeoScenario Server {}".format(vid))
            continue

So how can I set trigger to make other vehicles move when Ego enter the trigger?