CityScienceLab-GDL / cityscope-ccu

Project for the mobility team of the MIT CityScope workshop
0 stars 2 forks source link

How to run the hello world model #13

Open agrignard opened 1 year ago

agrignard commented 1 year ago

Right now I am trying to run CityScope.gaml experiment CCCU_1_1000 but I get the following error:

``` 2 occurrences in 2 agents at cycle 0: Network cannot be reached! Check that your server is connected.````

I guess I need to be connected but what about having a version that can be run without any connection to other server?

gamalielpalomo commented 1 year ago

Hi Arnaud, at this time we need an MQTT broker called mosquito, you can download it from https://mosquitto.org/. I agree, we need a version without connection.

agrignard commented 1 year ago

And what do I do once I have the MQQT broker?

gamalielpalomo commented 1 year ago

Just run it. It will be opening the service on localhost (which is what the model needs). By te way, I am working on the version without connection. Please, lets use "estable" branch for the last stable version (i have merged some changes for it to work on gama 1.9).

gamalielpalomo commented 1 year ago

@agrignard , I have implemented changes to enable the model to run without network connection. It is in my branch dev-gama-may23, tomorrow I will test it in the table to be sure everything works. Then I will PR into the "estable" branch.

gamalielpalomo commented 1 year ago

Solved in #18. I will close it.

agrignard commented 1 year ago

I reopen this issue, I am not able to run any model from the master neoither the gama-may23 branch. And it's not really documented which model should be run. (which model, which experience, etc etc)

Right now there is Traffic Model throwing error about

2 occurrences in 2 agents at cycle 0: File denoted by ../includes/shp/events/roads_testLepe_may04.shp not found.
in Simulation 0
in file<int, geometry> shape_file_roads <- file<int, geometry>('../includes/shp/events/roads_testLepe_may04.shp') ;
/Users/arno/Projects/GitHub/cityscope-ccu/models/../includes/shp/events/roads_testLepe_may04.shp
/Users/arno/Projects/GitHub/cityscope-ccu/models/../includes/shp/events/roads_testLepe_may04.shp
in initializing attribute shape_file_roads
in agents Simulation 0, CCU_1_10000

@gamalielpalomo woudl it be possible to have a stabel version on the master branch as soon as you can? Let me knwo when it's pushed and then I can test and close or not this issue

Beforee to clmose this issue let's be sure we can run a hello world without connection

gamalielpalomo commented 1 year ago

Arnaud, can you check again please? I have updated the master branch. I have updated the master with the latest stable version (which was already in the "estable" version as I mentioned). As I have not tested the mobility scenario in the CS table, I have not merged it into the master nor "estable" branch. It is still in "dev-gama-may23". In such branch I have updated the files needed.

agrignard commented 1 year ago

Ok so now I can run Traffic_model.gaml and runnning testis this the main model to run?

And this is what I see (but the agent seems to be stucked)

Screenshot 2023-05-09 at 12 51 14
gamalielpalomo commented 1 year ago

Please see the branch dev-gama-may23 to see the latest version of the traffic model adapted to the CityScope model. The test experiment is not available anymore. The main experiment is CCU_1_1000 (I am thinking in change the name :) )

gamalielpalomo commented 1 year ago

Related to agents stuck, I am thinking (Im not sure, need to check deeper) that it is related to the intersections data. Also I will check with @urbanistalepe to confirm that the roads network is correctly built from the shape files.