Dear sumo users,
I would like to report a bug:

In the last version of sumo (0.23) and on the repository their is an  
error with the python function
traci.vehicle.moveToVTD(vehID, edgeID, lane, x, y)  
(http://sumo.dlr.de/trac.wsgi/browser/trunk/sumo/tools/traci/vehicle.py#L903)

According to the traci server, this function should have one more  
argument which should be the angle:
http://sumo.dlr.de/trac.wsgi/browser/trunk/sumo/src/traci-server/TraCIServerAPI_Vehicle.cpp#L1180

The function traci.vehicle.moveToVTD(vehID, edgeID, lane, x, y) should  
be replaced by the following:

     def moveToVTD(vehID, edgeID, lane, x, y, angle):
         traci._beginMessage(tc.CMD_SET_VEHICLE_VARIABLE,  
tc.VAR_MOVE_TO_VTD, vehID, 1 + 4 + 1 + 4 + len(edgeID) + 1 + 4 + 1 + 8  
+ 1 + 8 + 1 + 8)
         traci._message.string += struct.pack("!Bi", tc.TYPE_COMPOUND, 5)
         traci._message.string += struct.pack("!Bi", tc.TYPE_STRING,  
len(edgeID)) + str(edgeID)
         traci._message.string += struct.pack("!Bi", tc.TYPE_INTEGER, lane)
         traci._message.string += struct.pack("!Bd", tc.TYPE_DOUBLE, x)
         traci._message.string += struct.pack("!Bd", tc.TYPE_DOUBLE, y)
         traci._message.string += struct.pack("!Bd", tc.TYPE_DOUBLE, angle)
         traci._sendExact()


Best regards,
David


-- 

David Mansolino
R&D engineer
EPFL ENAC IIE DISAL
GR A2 445
EPFL - Station 2
CH-1015 Lausanne





------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to