PedestrianDynamics / jupedsim

JuPedSim is an open source pedestrian dynamics simulator
http://jupedsim.org
Other
38 stars 26 forks source link

Obstacles deleted by geometry::helper::correct #920

Closed TKoch7 closed 2 years ago

TKoch7 commented 2 years ago

JuPedSim - JPScore

Describe the bug Obstacles are deleted previous to the simulation (Log says "geometry::helper::correct" is called to fix geometry) and a corrected geometry file without obstacles is given as an output connected to the trajectory file. Thus, the obstacles are not shown in JPSvis (see Screenshot). However, my tests show that the obstacles are considered within the simulation and pedestrians are moving around the obstacles successfully. The JPSeditor draws the original geometry file correctly including the obstacles (see Screenshot). If the corrected geometry file is replaced by the original one, the obstacles are shown. Therefore, the problem cannot be related to JPSvis.

Expected behavior Obstacles should be visible as they are in the JPScore example big_room.

Screenshots jpsvis jpseditor

Additional context

chraibi commented 2 years ago

can you share the files?

TKoch7 commented 2 years ago

Thanks for the fast reply!

Attached you find the original files, the log and the resulting/corrected files. test_supermarket.zip

Ozaq commented 2 years ago

@TKoch7 Geometry correction has been removed on the development branch and obstacles are no longer removed. The geometry file should now be copied to results verbatim.

As a workaround you could copy your input geometry file over the one written by jpscore in the results folder if you do not want to switch to a development version. However when running your sample I saw that your geometry needs to be fixed. I.e. jpscore complains about polygons not closed, so you would need to correct this first before you can run a newer development version.

TKoch7 commented 2 years ago

@Ozaq Thanks for the hint regarding the development version! I actually did the workaroung beforehand and it worked, though I got several error messages, when opening JPSvis. Which version did you use to run my sample? I fixed all errors I got using 0.8.4. Which version do you recommend to use?

Ozaq commented 2 years ago

@TKoch7 Just a few hours ago I tagged a v0.9.0, see https://github.com/JuPedSim/jpscore/releases/tag/v0.9.0 It is labelled as interim release because we are still in the progress to remove overcomplicated and error prone functionality. But is should be good enough (TM) to give it a try. Although it might be a lot slower because we removed multithreading (at least for now). So make sure to compile in Release mode.

Ozaq commented 2 years ago

@TKoch7 unless there are any additional issues here I will close this soon. Please let me know if there is anything else we should be doing.

TKoch7 commented 2 years ago

@Ozaq I had no time to test the new release version. However, as the workaround works well and you're aware of the issue/solved it, you may close this issue. Thank you for the fast support!