Dear all:

I was using the *traci.vehicle.getCO2Emissions(vehID) *command in TraCI
(Python) environment with *HBEFA v2.1-based* model, and everythong was OK.
Now, I'm trying to use it with PHEMlight model but it doesn't work.
I defined a suitable emission class for every type of car I'm using, and
I've tried defining a new environment variable *PHEMLIGHT_PATH* with the
correct path, and I get nothing. I've also tried to include the line
<phemlight-path value="[path]"/> with the correct path in the configuration
file, and and I still get nothing. The simulation just crashes after the
first simulation step saying "Simulation ended at time: 1.00. Reason: An
error occurred (see log)", but I don't get any error message. I know it's a
PHEMLight-related problem because in the Command Prompt reads the following
(after closing SUMO-GUI):

Traceback (most recent call last):
[...] line 79, in <module>
    sum_t = sum_t + traci.vehicle.getCO2Emission(v)
[...]\traci\vehicle.py", line 210, in getCO2Emission return
_getUniversal(tc.VAR_CO2EMISSION, vehID)
[...]\traci\vehicle.py", line 104, in _getUniversal
    result = traci._sendReadOneStringCmd(tc.CMD_GET_VEHICLE_VARIABLE,
varID, veh
ID)
[...]\traci\__init__.py", line 270, in _sendReadOneStringCmd return
_checkResult(cmdID, varID, objID)
[...]\traci\__init__.py", line 294, in _checkResult result = _sendExact()
[...]\traci\__init__.py", line 240, in _sendExact raise
FatalTraCIError("connection closed by SUMO")
traci.FatalTraCIError: connection closed by SUMO


So, can you please give me a brief list of steps to follow in order to use
*traci.vehicle.**getCO2Emissions(vehID)* in TraCI (Python) environment?

Thanks in advance.

Best regards, Rodrigo.

--
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
sumo-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sumo-user

Reply via email to