Dynamic speed change of the vehicle from omnet++

444 views
Skip to first unread message

shil

unread,
Jul 31, 2014, 8:21:48 AM7/31/14
to omn...@googlegroups.com
Hello,

I am using veins and SUMO. How can I modify the vehicle speed dynamically from omnet? I am using Traci. I want to set current speed limit of the vehicle from the RSU through beacon. When vehicle gets the beacon message with the current speed limit it will slow down it's speed if current speed of vehicle is higher than the sent speed limit by RSU.


Regards
Manash

Christoph Sommer

unread,
Aug 1, 2014, 5:27:43 AM8/1/14
to omn...@googlegroups.com
shil wrote:
> I want to set current speed limit of the vehicle from the RSU through
> beacon.

This is possible using the TraCI "setSpeed" and "setSpeedMode" commands.
The TraCI documentation has the required details:

http://sumo-sim.org/wiki/TraCI/Change_Vehicle_State

Best,

Christoph

--
Dr. Christoph Sommer
Distributed Embedded Systems Group
University of Paderborn, Germany
http://www.ccs-labs.org/~sommer/
Reply all
Reply to author
Forward
0 new messages