Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [sumo-user] Import Netwrok - Aimsun

Hi Behzad,

I found the python script. Most of it is not relevant as done for a different purpose, but I list some relevant Aimsun API calls for you:

sectionType = model.getType( "GKSection" )
sections = model.getCatalog().getObjectsByType( sectionType )

for section in sections.itervalues():
    id = section.getId())
    length = round(section.length2D(10), 2)
    
    position = 0.
    geoPoints = []
    while position < length:
        geoPoints.append(section.pointAtPos(position))
        position += 5.0
    geoPoints.append(section.pointAtPos(length))
    
    lanes = section.getLanes()

turningType = model.getType( "GKTurning" )
turnings = model.getCatalog().getObjectsByType( turningType )

for turning in turnings.itervalues():
    polygons = turning.getPolygon()
    id = turning.getId()
    originSectionID = turning.getOrigin().getId())
    destSectionID = turning.getDestination().getId()

You find more attributes to work with in the Aimsun documentation (at least for v.6, don't know for newer ones). There should be some doxygen-style HTML files with all object types, their attributes and inheritance hierarchies.

Regards
Mirko

Am 12.05.2020 um 13:36 schrieb behzad bamdad mehrabani:
Thank you very much Mirko, 

I would be happy if you could provide a sample python script for exploring Aimsun. 

Regards, 

On Tue, May 12, 2020 at 1:04 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Hello Mirko,
are the python scripts for exporting an Aimsun net to XML generally applicable?
If so, could you release them to the community?

regards,
Jakob

Am Di., 12. Mai 2020 um 12:53 Uhr schrieb Mirko Barthauer <m.barthauer@xxxxxxxxxxx>:

Hello,

as fas ar I am aware of, currently there is no established method for importing Aimsun networks into SUMO.

My research group exported some Aimsun networks to other formats using custom Aimsun scripts. In Aimsun, you can add custom Python scripts to automate tasks and query a lot of network elements & attributes. We managed to export the edge and node data to a text file. In theory, you can write SUMO plain XML files this way.

Regards
Mirko


Aimsun simulation files cannot be read as text files which makes everything more complicated.

In theory, you should be able to write one


Am 12.05.2020 um 12:26 schrieb behzad bamdad mehrabani:
Hello Dear all, 

I hope you and your loved ones are fine and healthy. 

I have built a big network in Aimsun. Is it possible to import this network to SUMO? if so, How?

I should note that I read the documentation and I recognized that the are importers from VISUM, VISSIM, and MATsim and Not Aimsun! 

Thank you in advance for helping me with this issue. 

Regards, 
--
Behzad Bamdad Mehrabani

Ph.D. Candidate, UCLouvain, Faculty of Architecture, Architectural Engineering and Urban Planning, Tournai, Belgium

                   behzad.bamdad@xxxxxxxxxxxx 

cell: (+32) 497 29 22 14

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user


--
Behzad Bamdad Mehrabani

Ph.D. Candidate, UCLouvain, Faculty of Architecture, Architectural Engineering and Urban Planning, Tournai, Belgium

                   behzad.bamdad@xxxxxxxxxxxx 

cell: (+32) 497 29 22 14

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
Am 12.05.2020 um 13:36 schrieb behzad bamdad mehrabani:
Thank you very much Mirko, 

I would be happy if you could provide a sample python script for exploring Aimsun. 

Regards, 

On Tue, May 12, 2020 at 1:04 PM Jakob Erdmann <namdre.sumo@xxxxxxxxx> wrote:
Hello Mirko,
are the python scripts for exporting an Aimsun net to XML generally applicable?
If so, could you release them to the community?

regards,
Jakob

Am Di., 12. Mai 2020 um 12:53 Uhr schrieb Mirko Barthauer <m.barthauer@xxxxxxxxxxx>:

Hello,

as fas ar I am aware of, currently there is no established method for importing Aimsun networks into SUMO.

My research group exported some Aimsun networks to other formats using custom Aimsun scripts. In Aimsun, you can add custom Python scripts to automate tasks and query a lot of network elements & attributes. We managed to export the edge and node data to a text file. In theory, you can write SUMO plain XML files this way.

Regards
Mirko


Aimsun simulation files cannot be read as text files which makes everything more complicated.

In theory, you should be able to write one


Am 12.05.2020 um 12:26 schrieb behzad bamdad mehrabani:
Hello Dear all, 

I hope you and your loved ones are fine and healthy. 

I have built a big network in Aimsun. Is it possible to import this network to SUMO? if so, How?

I should note that I read the documentation and I recognized that the are importers from VISUM, VISSIM, and MATsim and Not Aimsun! 

Thank you in advance for helping me with this issue. 

Regards, 
--
Behzad Bamdad Mehrabani

Ph.D. Candidate, UCLouvain, Faculty of Architecture, Architectural Engineering and Urban Planning, Tournai, Belgium

                   behzad.bamdad@xxxxxxxxxxxx 

cell: (+32) 497 29 22 14

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user


--
Behzad Bamdad Mehrabani

Ph.D. Candidate, UCLouvain, Faculty of Architecture, Architectural Engineering and Urban Planning, Tournai, Belgium

                   behzad.bamdad@xxxxxxxxxxxx 

cell: (+32) 497 29 22 14

_______________________________________________
sumo-user mailing list
sumo-user@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user

Back to the top