Hello,

I'm trying to retrieve vehicle lateral speed using TraCI with a python script. 
However, I get the below error when I use the method:
C:\Users\xxx\src\sumo-1.2.0\test> python runner.py
Loading configuration... done.
Step #0.05Error: Answered with error to command 0xa4: Get Vehicle Variable: 
unsupported variable 0x32 specified
Traceback (most recent call last):
  File "runner.py", line 107, in <module>
    run()
  File "runner.py", line 56, in run
    latSpeed = traci.vehicle.getLateralSpeed(vehicle)
  File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\_vehicle.py", line 215, 
in getLateralSpeed
    return self._getUniversal(tc.VAR_SPEED_LAT, vehID)
  File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\domain.py", line 114, 
in _getUniversal
    result = self._connection._sendReadOneStringCmd(self._cmdGetID, varID, 
objectID)
  File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\connection.py", line 
127, in _sendReadOneStringCmd
    return self._checkResult(cmdID, varID, objID)
  File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\connection.py", line 
155, in _checkResult
    result = self._sendExact()
  File "C:\Program Files (x86)\Eclipse\Sumo\tools\traci\connection.py", line 
105, in _sendExact
    raise TraCIException(err, prefix[1], _RESULTS[prefix[2]])
traci.exceptions.TraCIException: Get Vehicle Variable: unsupported variable 
0x32 specified
Error: tcpip::Socket::recvAndCheck @ recv: peer shutdown
Quitting (on error).


This is my sumocfg file:
<?xml version="1.0" encoding="UTF-8"?>

<configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/sumoConfiguration.xsd";>

    <input>
        <net-file value="net.net.xml"/>
        <additional-files 
value="vtypes.add.xml,routes.rou.xml,emitt.emi.xml,detect.poi.xml"/>
    </input>

    <time>
        <begin value="0"/>
        <end value="500"/>
        <step-length value="0.05"/>
        <lateral-resolution value="0.3"/>
    </time>

    <processing>
        <emergencydecel.warning-threshold value="5"/>
        <collision.mingap-factor value="0"/>
    </processing>

</configuration>

Any help is appreciated.

Thanks,
Mariam
_______________________________________________
sumo-user mailing list
[email protected]
To unsubscribe from this list, visit 
https://www.eclipse.org/mailman/listinfo/sumo-user

Reply via email to