Sign in

Creating OD trips to routes with multiple vehicle types:

Run od2trips config with — — vtype typedist1

Run duarouter with — — keep-vtype-distributions true -d additional.xml — — vtype-output vtype.xml

Creating routes starting from fringes of the map and adding source, sink and via routes

Weights can be provided as to from where the source of the vehicle routes should be and where it should end. In this case, we have to consider that that the vehicles start from north half of the map and go to a particular destination (=sink) via a particular edge.

Small python script for starting the vehicles from the northern fringe:

Python code for finding if an edge lies in the upper half of the bounding box

Create the three xml files with in the directory one for each source, sink and via routes:

Downloading and using map that is bigger than the map export allowed on OpenStreetMap (> 50000 nodes)

Go to Geofabrik download server: https://download.geofabrik.de/

Browse to the continent >> country you want the map of

For example, I want the map of Stockholm Metropolitan Area (Sweden): Download sweden-latest.osm.pbf (https://download.geofabrik.de/europe/sweden.html)

Download osmconvert.exe (https://wiki.openstreetmap.org/wiki/Osmconvert#Download)

Make sure that the osmconvert.exe is placed in the same folder as the sweden-latest.osm.pbf file

I want the map of this area which is larger than 50000 nodes

Map of the required area with the bounding box

Enter these coordinates in the osm command like below:

osmconvert.exe sweden-latest.osm.pbf -b=14.409,58.347,20.726,60.587 -o=stockholmarea.osm

If you get memory error, use hash

Note to self:

Hi there!

This is mostly a note of self about SUMO simulation learning and practise. However, I think it could help someone out there so posting it.

Learnings from the YouTube lectures by Rodrigue Tchamna:

Lecture 1:

  • SUMO + python installation
  • Manual (node + edge) network and route creation
  • And finally, SUMO configuration file and is used to run the simulation

Lecture 2:

  • Download map from OpenStreetMap
  • Convert the map to SUMO network> netconvert.exe — — osm-files map.osm -o network-filename.net.xml
  • Next create random trips> py PATH/randomTrips.py -n network-filename.net.xml -r test.rou.xml -e 50 -l (OR copy the randomTrips.py …

Note to self:

Hereafter, read SUMO as Sumo for the ease of reading.

Sumo is an open source, urban mobility simulation software tool developed by Institute of Transportation Systems, DLR Germany. The software facilitates evaluation of infrastructural and/or policy changes before implementing with in real life. Sumo allows explicit modelling of intermodal traffic scenarios including public transport, vehicles and pedestrians. It allows import of maps in different formats, schedules (for public transport, traffic lights, etc.), GUI for visualization. Read more about different map formats that can be imported in Sumo here. …

in context of cyber-physical production systems

Our conventional production lines in factories are a twentieth century artifact. They were focussed on mass production of identical products. In today’s world, products are customized to the extent of personalization. Hence, the production process for each individual piece may differ.

Monolithic assembly lines are not the best suited strategy in today’s scenario where products are customized to the extent of personalization.

Such production systems can neither be fully automated, due to a huge catalogue and no fixed dropping sequence, nor can an unaided human reliably manage a high number of variants. This has led to the rise of tools and systems that help operators in human-centric workplaces. …

:thumbsup:

Coming from India, I considered not finishing one’s studies in the prescribed duration a taboo. However, this notion was challenged by the outlook and freedom of work I got during my studies. Initially, I struggled with the idea of not completing my two-year course within the time period, but eventually I came around the idea and it was liberating in more than one way. It conferred me with the much needed time which I used to explore my areas of interests than running to the next possible opportunity that stumbled my way. …

This post is out of sheer reverence for books. Not meaning technical stuff, no office work. Books, books. Read just for leisure.

Of late I could not get time for myself. I was unable to get time to read books. My friend introduced me to audiobooks. I was skeptical about “listening” to books in the beginning and to be honest it did take some time getting used to it. I faced some challenges because of my short attention span. I had to rewind to hear some bits every now and then. But it was not a major hurdle. …

During development embedded systems often go wrong. At times, it is difficult to know which component is not working. I myself have faced these problems and have learnt somethings the hard way. A recent tweet by Patrick inspired me to write about my experience.

I have been working on an embedded systems projects for the first time for a past month or so, and I have a few tricks to share.

Scenario: I have two machines which should communicate with each other through a serial port (RS232). However, it doesn’t work.

Loopback Tests

Now, I need to ensure that each component…

So, this is also one of those side-projects which is fun. The project’s accessories include nut-bolts and a few electrical connections. Okay, so this is what it has.

The connections were generally simple. Two of them tricked me in the beginning. One was the orientation of motors attached to rear wheels. While fitting one needs to keep it in mind. Other was the balancing wheel in front. The trick lies in the fitting on the wheel support. Thanks to the manufacturers, vehicle motion is completely restricted if it is not assembled right. The complete vehicle looks a little more beautiful…

Aurora

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store