Hi omentpp experts,
I am using inet+traci+sumo to develop a V2V project.
I just started to learn and try to follow TraCIDemo example.
My I ask if there is a way to get the vehicle's name in traci.
For example, when TraCIDemo app recieves the positionupdate signal, and call function handlePositionUpdate(), what is the method to get the current vehicle's name.
The routes of the vehicles are defined in routes.rou.xml file. It looks as below:
......
<vehicle id="Flow 1-353" type="Default" depart="0.00" color="0.42,0.26,0.58">
<route color="0.42,0.26,0.58" edges="83700099#0 83700099#1 83700099#2 83700099#3 108179442#1 108179442#2 108179442#3 108179442#4"/>
</vehicle>
<vehicle id="Flow 1-356" type="Default" depart="0.00" color="0.42,0.26,0.58">
<route color="0.42,0.26,0.58" edges="5676865#0 5676865#1 5676865#2 5676865#3 108179452#1 108179452#2 108179452#3"/>
</vehicle>
.......
Thanks for your time in advance.
Susan