Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Proposals » Eclipse Sumo » SUMO Traci Lane Area Detector( module 'traci' has no attribute 'LaneAreaDetector')
SUMO Traci Lane Area Detector [message #1854564] Thu, 25 August 2022 17:06 Go to next message
Sagar Dasgupta is currently offline Sagar DasguptaFriend
Messages: 4
Registered: July 2021
Junior Member
Hi Everyone,

I am new to SUMO so please excuse me if the questions are too naive.
I am trying to use e2 detectors and store the data using traci. I have tried the command:
traci.LaneAreaDetector.getIDCount

and I am getting the following error:
AttributeError: module 'traci' has no attribute 'LaneAreaDetector'

I want to save/retrieve data from each detector individually by calling the detector ID.

Please let me know how I can do it.

Thanks in advance.
Re: SUMO Traci Lane Area Detector [message #1854589 is a reply to message #1854564] Fri, 26 August 2022 17:51 Go to previous message
Sagar Dasgupta is currently offline Sagar DasguptaFriend
Messages: 4
Registered: July 2021
Junior Member
Hi,

I have added an e2 detector to my network and also added the information in the configuration file.


<additional xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sumo.dlr.de/xsd/additional_file.xsd">
<e2Detector id="e2" lane="gneE0_1" pos="174.84" length="10.00" freq="900.00" file="e2.xml" timeThreshold="0.10" speedThreshold="0.10"/>
</additional>


But still I am getting the following error.

TraCIException: Lane area detector 'e2' is not known


Previous Topic:flowrouter
Next Topic:Externally Position Update
Goto Forum:
  


Current Time: Sun Mar 03 19:29:53 GMT 2024

Powered by FUDForum. Page generated in 0.02442 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top