Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Beginner for SUMO

Dear, 

Now I got the unexpected error: No module named traci. 

I set up the sumo path as the following: 

PATH=$PATH:$HOME/ .local/bin:$HOME/bin
export SUMO_HOME=/usr/lib/sumo:/usr/share/sumo
export PATH=/usr/sbin:$PATH 
export PATH=$SUMO_HOME/bin:$PATH:$SUMO_HOME/tools:$PATH
export PATH

I changed sumo version a few days ago. How can I fix it? 

On Tue, Aug 14, 2018 at 3:48 PM, Ei Ei Mon <eieimonimceits@xxxxxxxxx> wrote:
yes, thank you.

On Tue, Aug 14, 2018 at 3:03 PM, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Your traci script is still using an old version of SUMO. Please update the value of SUMO_HOME to point to the new version.

2018-08-10 12:58 GMT+02:00 Ei Ei Mon <eieimonimceits@xxxxxxxxx>:
Dear, 

According to your suggestion, I used the latest development version of SUMO.Currently, I got the following error.  

traci.exceptions.TraCIException: Get Edge Variable: unsupported variable 0x52 specified 

Could you give some suggestions? Thank you. 



On Thu, Aug 9, 2018 at 9:13 PM, Ei Ei Mon <eieimonimceits@xxxxxxxxx> wrote:
Yes. Thank you.

On Thu, 9 Aug 2561 at 20:45 Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
This function is only available in the latest development version. You can get it here: http://sumo.dlr.de/wiki/Downloads#SUMO_-_Latest_Development_Version
regards,
Jakob

2018-08-09 14:05 GMT+02:00 Ei Ei Mon <eieimonimceits@xxxxxxxxx>:
Dear, 

When I use traci.edge.getLaneNumber(edgeID), I got the following error. 

AttributeError: EdgeDomain instance has no attribute 'getLaneNumber'

How can I fix it? Thank you in advance. 

On Fri, Aug 3, 2018 at 2:01 PM, Ei Ei Mon <eieimonimceits@xxxxxxxxx> wrote:
Thank you very much. 

On Fri, Aug 3, 2018 at 1:51 PM, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Hello,
I've run my own test and looked at the code again:
The way sumo is currently implemented you will never see a duplicate ID.
This is because the detectors in SUMO effectivly detect only the center line of a vehicle rather than its whole width.
Even during a continuous lane change, the vehicle's center line is always just on one lane or the other.
Other vehicles coming from behind will perceive the whole width but detectors do not.

regards,
Jakob

2018-08-03 7:00 GMT+02:00 Ei Ei Mon <eieimonimceits@xxxxxxxxx>:
Dear, 

May I ask again for my problem. Now I use --step-length and --lanechange.duration together. By using --lanechange.duration option, I think I can get duplicate vehicle ids that use lane changing on two neighboring lanes. Is it making sense? Now I didn't get any duplicate ids. It should be or not? 

Thank you very much. 

with best regards, 

On Thu, Aug 2, 2018 at 2:43 PM, Ei Ei Mon <eieimonimceits@xxxxxxxxx> wrote:
Thank you. I will check with sublane model. In my case, I would like to detect the duplicate vehicle ids from lane area detectors at the same time step. According to your suggestions, I think I can detect the ids from detectors on two neighboring lanes. I will try it. 

On Thu, Aug 2, 2018 at 1:47 AM, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Step-length does not make a difference in the default model because lane-changes are instantaneous regardless of the step-length. This means you will never see the vehicle on two neighboring detectors in the same time step.
To get continuous lane changes you can enable another model: http://sumo.dlr.de/wiki/Simulation/SublaneModel
Do you need the double detection directly for your project or are they a means to accomplish something else? In that case there may be other ways to accomplish your objective.

2018-08-01 13:15 GMT+02:00 Ei Ei Mon <eieimonimceits@xxxxxxxxx>:
Thank you, dear. 

I checked with different values for --step-length like 0.1, 0.01, 0.001. But I don't get duplicate ids. I think that we can get duplicate vehicle ids because some vehicles changed lanes in gui what  I saw.
How should I check it? Thank you in advance. 

On Tue, Jul 31, 2018 at 9:47 PM, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
When a vehicle changes lanes it is only registered on the new lane in that time step. To register lane changes using  lanearea detectors you need to monitor multiple steps.

2018-07-31 15:18 GMT+02:00 Ei Ei Mon <eieimonimceits@xxxxxxxxx>:
Thank you for your reply. 

In my case, when I check simulation gui I saw some vehicles change their lanes. But for that case, when I use traci.lanearea.getLastStepVehicleIDs(), I got no duplicate vehicle ids from all lanes. 
How should I check? 

Thank you. 


On Tue, 31 Jul 2561 at 17:21 Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
1) use sumo option  --step-length SECONDS
2) what kind of duplication are you interested in? Please explain with an example.

2018-07-31 11:30 GMT+02:00 Ei Ei Mon <eieimonimceits@xxxxxxxxx>:
Thank you, dear.  

Now, I would like to know how to change the simulation time step in SUMO. 

In my case, I set up lane area (e2) and MeMe (e3) detectors in the same area. For that case, I set up lane area detectors on all  lanes to cover for all lanes. In this case, I would like to check the duplicate vehicle ids from tracking the lane area detectors. Could you give any suggestions? 

Thank you in advance. 

with best regards,    


On Fri, Jul 27, 2018 at 7:11 PM, Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Hello,
SUMO automatically tracks accidents. See http://sumo.dlr.de/wiki/Simulation/Safety#Collisions
In the latest development verion of SUMO (http://sumo.dlr.de/wiki/Downloads#SUMO_-_Latest_Development_Version) You can retrieve accident information by calling traci.simulation.getCollidingVehiclesIDList (http://sumo.dlr.de/wiki/ChangeLog#Enhancements).

regards,
Jakob

2018-07-23 14:15 GMT+02:00 Ei Ei Mon <eieimonimceits@xxxxxxxxx>:
Dear, 

I would like to get some suggestions. In my case, I would like to detect the car accident case on the lane by using lane area detectors. Which methods are the most suitable for that by using traci? Could you give me some suggestions. 
Thank you in advance. 



_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user




_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user




_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user


_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user



_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/sumo-user




Back to the top