Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[sumo-user] error retrieving lateral speed (Error: Answered with error to command 0xa4: Get Vehicle Variable: unsupported variable 0x32 specified)
  • From: Mariam Wessam Hassan Mohamed Nour <mariam.nour@xxxxxxxxxxxxxxx>
  • Date: Tue, 26 Jan 2021 23:28:14 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=knights.ucf.edu; dmarc=pass action=none header.from=knights.ucf.edu; dkim=pass header.d=knights.ucf.edu; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hGhELYKyINo7DNWjGE5+pC60RShilpyI4BpOMkbicHY=; b=L49q59d1Qd51yD67Nxxjx6CmPOEYz6cYBt+i+IKjfqbiZi7F0mCMJ8uPjh2VywfB23nYuTl36H3NcP/Icx9qIIP4kpqT/W75FD/n39ungYhFd4ttG8Xah3jtLVHINu2qpEdW5Noy0CU9ds7borS7G6rA0gguYpLZ7riw18FgCMsrD9IBf2W32Tjli5m4hyyG6bgvdBWQ72vwUsTY+B1hMe4sQik7/XJYVxcFqIqzIhSFlRMWwBoAux8ltpKhXdVI/sJe+LDaC7dqndCs7GA7pYFoe4y/K/D7zxDmi4xCQtWYd6iWljYQRsHW+V27XD4y5leSrxkdTj5s5sMh7K1jMg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=h93Zvhv7mK7nYveZe5cKfq309k1s2I7zxjsN0r/t3ntfO3Udms/v46JCK0VrSV+mOICV65Q0C0eIX1/En7RL1bRQYuoxrACSMeiaexrqOk1NTVhfjdedmhJfexWLaG8RE6rWyYHPv/Js5HlmCFGotkdhHWXnnZxRRUjIDXuH+PI3oNjfR2dTwS983l5e/6Fb9cmR7dZoFkjWhjE6rv7l0GHaHQmIU8PYzAsI60ybqXrtwRTNTRZWPsazDxupCntkys6sbwLyqfWEYCPzn0xcy5RWTc9OjGMOL6NyQiEYMt/jR7B7fQXWOkCW85PZv7+dNPxn/1sWtocg2k1Du0lyTg==
  • Delivered-to: sumo-user@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/sumo-user/>
  • List-help: <mailto:sumo-user-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/sumo-user>, <mailto:sumo-user-request@eclipse.org?subject=unsubscribe>
  • Thread-index: Adb0OtuipN6/HO+GRImGTqzmqpdJJQ==
  • Thread-topic: error retrieving lateral speed (Error: Answered with error to command 0xa4: Get Vehicle Variable: unsupported variable 0x32 specified)

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


Back to the top