Re: [sumo-user] Default speed mode value used in Sumo

2017-10-21 Thread Santa Maiti via sumo-user
Thanks Jacob. It's working now.

Regards,
Santa

On Sun, Oct 22, 2017 at 4:29 AM, Jakob Erdmann 
wrote:

> Hello,
> command traci.vehicle.setSpeed sets the new desired speed indefinitely. In
> order to go back to normal behavior the command setSpeed(vehID, -1) must be
> sent.
> see http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State
> regards,
> Jakob
>
> 2017-10-20 19:45 GMT+02:00 Santa Maiti :
>
>> Hi Jacob,
>>
>> Please find the sample example code rough.m . The initial vehicle speed
>> is 2 m/s and it is increasing as per accel. speedmode is set to 0. Later,
>> speed is increased and speedmode is set back to 31. But, the speed of the
>> vehicle remains same 20m/s. Can you please tell me where is the mistake
>> here?
>>
>> Thanks,
>> Santa
>>
>> On Fri, Oct 20, 2017 at 5:23 PM, Jakob Erdmann <
>> namdre.s...@googlemail.com> wrote:
>>
>>> Hello,
>>> the default speed mode is 31. Please check whether the vehicles have
>>> already reached their maximum desired speed (speedLimit * speedFactor).
>>> Also, remove any previous setSpeed() commands by sending
>>> traci.vehicle.setSpeed(vehID, -1).
>>> Furthermore, ensure that the maximum allowed acceleration value of the
>>> vehicle type is positive.
>>> regards,
>>> Jakob
>>>
>>> 2017-10-20 7:26 GMT+02:00 Santa Maiti :
>>>
 Hi Jacob,

 Could you please tell me what is the default speed mode value used in
 Sumo, where the vehicles speed up if the lane is free? I thought it's 31.
 In my simulation, I first made the speed mode as 0 that makes all checks
 off. In next simulation step when I'm resetting the speed mode in 31, the
 vehicles are moving at constant speed. They are not accelerating even if
 the lane is empty. I'm working in traci-matlab.

 Thanks in advance,
 Santa

 --
 Santa Maiti,
 Ph.D Student,
 Geomatics, Department of Infrastructure Engineering,
 University of Melbourne.

>>>
>>>
>>
>>
>> --
>> Santa Maiti,
>> Ph.D Student,
>> Geomatics, Department of Infrastructure Engineering,
>> University of Melbourne.
>>
>
>


-- 
Santa Maiti,
Ph.D Student,
Geomatics, Department of Infrastructure Engineering,
University of Melbourne.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user


Re: [sumo-user] Default speed mode value used in Sumo

2017-10-21 Thread Jakob Erdmann via sumo-user
Hello,
command traci.vehicle.setSpeed sets the new desired speed indefinitely. In
order to go back to normal behavior the command setSpeed(vehID, -1) must be
sent.
see http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State
regards,
Jakob

2017-10-20 19:45 GMT+02:00 Santa Maiti :

> Hi Jacob,
>
> Please find the sample example code rough.m . The initial vehicle speed is
> 2 m/s and it is increasing as per accel. speedmode is set to 0. Later,
> speed is increased and speedmode is set back to 31. But, the speed of the
> vehicle remains same 20m/s. Can you please tell me where is the mistake
> here?
>
> Thanks,
> Santa
>
> On Fri, Oct 20, 2017 at 5:23 PM, Jakob Erdmann  > wrote:
>
>> Hello,
>> the default speed mode is 31. Please check whether the vehicles have
>> already reached their maximum desired speed (speedLimit * speedFactor).
>> Also, remove any previous setSpeed() commands by sending
>> traci.vehicle.setSpeed(vehID, -1).
>> Furthermore, ensure that the maximum allowed acceleration value of the
>> vehicle type is positive.
>> regards,
>> Jakob
>>
>> 2017-10-20 7:26 GMT+02:00 Santa Maiti :
>>
>>> Hi Jacob,
>>>
>>> Could you please tell me what is the default speed mode value used in
>>> Sumo, where the vehicles speed up if the lane is free? I thought it's 31.
>>> In my simulation, I first made the speed mode as 0 that makes all checks
>>> off. In next simulation step when I'm resetting the speed mode in 31, the
>>> vehicles are moving at constant speed. They are not accelerating even if
>>> the lane is empty. I'm working in traci-matlab.
>>>
>>> Thanks in advance,
>>> Santa
>>>
>>> --
>>> Santa Maiti,
>>> Ph.D Student,
>>> Geomatics, Department of Infrastructure Engineering,
>>> University of Melbourne.
>>>
>>
>>
>
>
> --
> Santa Maiti,
> Ph.D Student,
> Geomatics, Department of Infrastructure Engineering,
> University of Melbourne.
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user


Re: [sumo-user] How to get a person's position with more precision

2017-10-21 Thread Jakob Erdmann via sumo-user
If you run your simulation with option --step-length 0.1 then time
resolution is 0.1 seconds rather than 1s so you have more precision.
regards,
Jakob

2017-10-21 10:28 GMT+02:00 Sara el hamdani via sumo-user <
sumo-user@lists.sourceforge.net>:

> Dear sumo users
>
> Can I change deltaT or have more precision on the position of a person
> using TraCI?
>
> I am trying to get a person to stop when they reach the line between lanes
> while crossing, and to do this the only way I found is by getting their
> lanePosition. but between simulation steps my pedestrian passes the point
> at wich I want to him to stop.
>
> I would like to thank Jakob for answering my previous question.
>
> --
> *Best regards*
>
>
> *Sara EL HAMDANI*
> *Phd student -Umi University.*
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> sumo-user mailing list
> sumo-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sumo-user
> ___
> sumo-user mailing list
> sumo-u...@eclipse.org
> To change your delivery options, retrieve your password, or unsubscribe
> from this list, visit
> https://dev.eclipse.org/mailman/listinfo/sumo-user
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user


[sumo-user] How to get a person's position with more precision

2017-10-21 Thread Sara el hamdani via sumo-user
Dear sumo users

Can I change deltaT or have more precision on the position of a person
using TraCI?

I am trying to get a person to stop when they reach the line between lanes
while crossing, and to do this the only way I found is by getting their
lanePosition. but between simulation steps my pedestrian passes the point
at wich I want to him to stop.

I would like to thank Jakob for answering my previous question.

-- 
*Best regards*


*Sara EL HAMDANI*
*Phd student -Umi University.*
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
sumo-user mailing list
sumo-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sumo-user