Re: [sumo-user] person refuses to board on traci controlled vehicle (without snapshot attached)

2017-01-16 Thread Joerg Schweizer
Thanks Jakob,
your solution worked perfectly when placing persons between startPos and 
pos.
Joerg


On 13/01/17 15:31, Jakob Erdmann wrote:
> Hello,
> the code that decides whether a person is able to board a vehicle is
> pretty harsh: by default the person must be within the range
> [stopPos - 0.1, stopPos] in order to board. Possibly there are numerical
> issues involved in your case.
> I suggest you use additional parameters to increase the eligible pickup
> range:
>
> Assuming the person is waiting at 87.5 send the following stop command
> which sets a 2m range for pickup centered on the person:
>
> traci.vehicle.setStop(  id_veh_sumo,
>   id_edge_sumo,
>   pos = 88.5,
>   flags = 2,
>   laneIndex = 1,
>   startPos = 86.5
>   )
>
> regards,
> Jakob
>
> 2017-01-13 12:25 GMT+01:00 Joerg Schweizer  >:
>
> Hello everybody,
> I'm simply trying to pick up passengers by stopping vehicles with traci,
> using the command
> traci.vehicle.setStop(  id_veh_sumo,
>   id_edge_sumo,
>   pos = position,
>   flags = 2,
>   laneIndex = 1,
>   )
> and the person is defined as
> 
>  arrivalPos="87.5"/>
> 
>  arrivalPos="0.0"/>
>   
>
> On Sumo GUI, one can see that the person is standing directly in front
> of the vehicle. The person is waiting for line "prt" and the vehicle is
> stopped and triggered. So everything looks OK, but nothing happens.
>
>
> Any idea?
>
> Incidentally, I found a similar problem here:
> https://sourceforge.net/p/sumo/mailman/message/33681330/
> 
>
> It seems to work as long as vehicles are defined in xml (just as in my
> case) but not with traci.
>
> Thanks for any help,
> Joerg
>
>
>
>
>
>
>
> --
>
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> sumo-user mailing list
> sumo-user@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/sumo-user
> 
>
>


-- 
Joerg Schweizer
University of Bologna
DICAM - Transportation Group
Viale Risorgimento, 2, I-40136 Bologna, Italy
Tel: +39 051 209 3338, Fax: +39 051 209 3337

--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user


Re: [sumo-user] person refuses to board on traci controlled vehicle (without snapshot attached)

2017-01-13 Thread Jakob Erdmann
Hello,
the code that decides whether a person is able to board a vehicle is pretty
harsh: by default the person must be within the range
[stopPos - 0.1, stopPos] in order to board. Possibly there are numerical
issues involved in your case.
I suggest you use additional parameters to increase the eligible pickup
range:

Assuming the person is waiting at 87.5 send the following stop command
which sets a 2m range for pickup centered on the person:

traci.vehicle.setStop(  id_veh_sumo,
  id_edge_sumo,
  pos = 88.5,
  flags = 2,
  laneIndex = 1,
  startPos = 86.5
  )

regards,
Jakob

2017-01-13 12:25 GMT+01:00 Joerg Schweizer :

> Hello everybody,
> I'm simply trying to pick up passengers by stopping vehicles with traci,
> using the command
> traci.vehicle.setStop(  id_veh_sumo,
>   id_edge_sumo,
>   pos = position,
>   flags = 2,
>   laneIndex = 1,
>   )
> and the person is defined as
> 
>  arrivalPos="87.5"/>
> 
>  arrivalPos="0.0"/>
>   
>
> On Sumo GUI, one can see that the person is standing directly in front
> of the vehicle. The person is waiting for line "prt" and the vehicle is
> stopped and triggered. So everything looks OK, but nothing happens.
>
>
> Any idea?
>
> Incidentally, I found a similar problem here:
> https://sourceforge.net/p/sumo/mailman/message/33681330/
>
> It seems to work as long as vehicles are defined in xml (just as in my
> case) but not with traci.
>
> Thanks for any help,
> Joerg
>
>
>
>
>
>
>
> --
>
>
> 
> --
> Developer Access Program for Intel Xeon Phi Processors
> Access to Intel Xeon Phi processor-based developer platforms.
> With one year of Intel Parallel Studio XE.
> Training and support from Colfax.
> Order your platform today. http://sdm.link/xeonphi
> ___
> sumo-user mailing list
> sumo-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user


[sumo-user] person refuses to board on traci controlled vehicle (without snapshot attached)

2017-01-13 Thread Joerg Schweizer
Hello everybody,
I'm simply trying to pick up passengers by stopping vehicles with traci, 
using the command
traci.vehicle.setStop(  id_veh_sumo,
  id_edge_sumo,
  pos = position,
  flags = 2,
  laneIndex = 1,
  )
and the person is defined as




  

On Sumo GUI, one can see that the person is standing directly in front 
of the vehicle. The person is waiting for line "prt" and the vehicle is 
stopped and triggered. So everything looks OK, but nothing happens.


Any idea?

Incidentally, I found a similar problem here:
https://sourceforge.net/p/sumo/mailman/message/33681330/

It seems to work as long as vehicles are defined in xml (just as in my 
case) but not with traci.

Thanks for any help,
Joerg







-- 


--
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
___
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user