Hello,
I suggest you find someone locally who has experience with python
programming as some of the errors would be quite obvious to them.
i.e.
    traci.vehicle.setStop("CarA","D2", pos=200.0, laneIndex=10, duration=
2147483647, flags=0)
instead of
    traci.vehicle.setStop(CarA,D2, pos=200.0, laneIndex=10, duration=
2147483647, flags=0)

To your questions
1) Yes. That would be accomplished with command traci.vehicle.setSpeed
2) The vehicle would do this by itself but you can force it with
traci.vehicle.changeLane
3) Use traci.vehicle.setLaneChangeMode (see
http://sumo.dlr.de/wiki/TraCI/Change_Vehicle_State#lane_change_mode_.280xb6.29
)

regards,
Jakob




2015-12-09 6:59 GMT+01:00 Sai Charan Addanki <[email protected]>:

> Hi,
>
> I am Charan working as Research Assistant, newbie to SUMO.
>
> My primary objective is to do a traffic scenario with specified parameters
> of the vehicles. To accomplish that i made network, route, sumocfg files
> and the simulation is working fine in SUMO-GUI.
> Herewith i enclosed the files for your reference.
>
> I am trying to use TraCI commands in "runner.py" file and in the wiki for
> TraCI the commands are presented in octal format or so.
> How to configure the behavior of vehicle in "runner.py" file ?
> *Can we change the parameters of the vehicle dynamically (change in speed
> during simulation) ?*
> It has become a bit difficult task even to manipulate the existing example
> code. I enclosed a "runner.py" file which i tried to manipulate according
> to my requirements and failed to do so.
> Here are the queries:
>
> 1. Change the speed of the specified vehicle(s) to the given value over the
> given amount of time in milliseconds (increase/decrease to
> decrease/increase speed). I guess that would happen only using TraCI
> commands.
>
> 2.. If there is traffic on the current lane, the vehicle should be able to
> switch to next lane accordingly.
>
> 3. How to control the vehicles not to undergo random lane change ?
>
> I would really appreciate if you could help me to sort out this.I am sure
> you will be busy with your schedule. Please take time to reply in your free
> time.
> Thanks in advance.
>
> *Best Regards,*
> Sai Charan A
> Research Assistant (RA),
> IIIT Sricity.
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> sumo-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sumo-user
>
>
------------------------------------------------------------------------------
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to