Hello Michele,
I apologize for having so many questions. It seems that something got broken between my installation of PLEXE-VEINS and this PlexeAPI. My sense is that the error comes from the SUMO side, but I can't tell for sure, since SUMO seems to work.
I am able to run the PLEXE-VEINS example, on SUMO 1.6 (built from source). See screenshot below.
But when I try to use the API, I get the following messages:
Retrying in 1 seconds
Loading configuration ... done.
Traceback (most recent call last):
File "joindemo.py", line 217, in <module>
main(True, False)
File "joindemo.py", line 176, in main
topology = add_vehicles(plexe, N_VEHICLES, real_engine)
File "joindemo.py", line 75, in add_vehicles
50, 0, SPEED, DISTANCE, real_engine)
File "/home/alpha/src/plexe-pyapi/examples/utils.py", line 83, in add_platooning_vehicle
add_vehicle(plexe, vid, position, lane, speed, vtype)
File "/home/alpha/src/plexe-pyapi/examples/utils.py", line 64, in add_vehicle
typeID=vtype)
File "/usr/share/sumo/tools/traci/_vehicle.py", line 1444, in add
arrivalLane, arrivalPos, arrivalSpeed, fromTaz, toTaz, line, personCapacity, personNumber)
File "/usr/share/sumo/tools/traci/domain.py", line 184, in _setCmd
self._connection._sendCmd(self._cmdSetID, varID, objectID, format, *values)
File "/usr/share/sumo/tools/traci/connection.py", line 178, in _sendCmd
return self._sendExact()
File "/usr/share/sumo/tools/traci/connection.py", line 95, in _sendExact
raise TraCIException(err, prefix[1], _RESULTS[prefix[2]])
traci.exceptions.TraCIException: Invalid route 'platoon_route' for vehicle 'v.0'.
And the SUMO log:
Loading configuration ... done.
***Starting server on port 41585 ***
Loading net-file from 'cfg/freeway.net.xml' ... done (21ms).
Loading done.
Error: attribute 'departSpeed' is not declared for element 'vType'
In file 'cfg/freeway.rou.xml'
At line/column 11/29.
Quitting (on error).
Simulation started with time: 0.00
Error: Answered with error to command 0xc4: Invalid route 'platoon_route' for vehicle 'v.0'.
Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
Quitting (on error).
I have re installed this plexe-pyapi whith no luck. This library was working before I've compiled the PLEXE-VEINS one. Here is a screenshot of the plexe-veins library where you can see it running and the SUMO version on top.
The following is my SUMO information. I had to build it from source since installing the package 'osgearth' (and OpenSceneGraph) broke my vanilla installation.
Are you using the standard example or did you make some changes? Because the route is declared inside the freeway.rou.cfg file. The same holds for the departSpeed parameter.
Hello Michele, I apologize for having so many questions. It seems that something got broken between my installation of PLEXE-VEINS and this PlexeAPI. My sense is that the error comes from the SUMO side, but I can't tell for sure, since SUMO seems to work.
I am able to run the PLEXE-VEINS example, on SUMO 1.6 (built from source). See screenshot below.
But when I try to use the API, I get the following messages:
(plexe) alpha@alpha:~/src/plexe-pyapi/examples$ python joindemo.py
And the SUMO log:
I have re installed this plexe-pyapi whith no luck. This library was working before I've compiled the PLEXE-VEINS one. Here is a screenshot of the plexe-veins library where you can see it running and the SUMO version on top.
The following is my SUMO information. I had to build it from source since installing the package 'osgearth' (and OpenSceneGraph) broke my vanilla installation.