TraCI/POI Value Retrieval

From Sumo
Jump to: navigation, search

Command 0xa7: Get PoI Variable

ubyte string
Variable PoI ID

Asks for the value of a certain variable of the named poi.

The following variable values can be retrieved, the type of the return value is also shown in the table.

Overview Retrievable PoI Variables
Variable ValueType Description Python Method
id list (0x00) stringList Returns a list of ids of all poi (the given poi ID is ignored) getIDList
count (0x01) int Returns the number of pois (the given poi ID is ignored) getIDCount
type (0x4f) string Returns the (abstract) type of the poi getType
color (0x45) ubyte,ubyte,ubyte,ubyte Returns the color of this poi (rgba) getColor
position (0x42) 2D-position Returns the position of this poi getPosition


Response 0xb7: PoI Variable

ubyte string ubyte <return_type>
Variable PoI ID Return type of the variable <VARIABLE_VALUE>

The respond to a "Command Get PoI Variable".