rodrigoqueiroz / geoscenarioserver

8 stars 1 forks source link

Btrees and gss parameters (Being split into multiple PRs) #44

Closed WAEliasmith closed 3 years ago

WAEliasmith commented 3 years ago

Made a cloned btrees folder, sorted it based on https://github.com/wavelab/anm_unreal_test_suite/pull/89, and pointed BehaviorModels.py' btree searching to it. This should also be able to receive a priority of locations to search in using the -b tag on GSServer.py.

Added the -b tag by passing the -b parameter to BehaviorModels.py, through SDVPlanner.py, which is called by Vehicle.py, which is called in SimTraffic.py, which is used in GSServer.py and started with no parameters. The current implementation sets tree (in BehaviorModels.py line 55) to the first interpretation of a path with .btree in it.

Currently only 1 tree can be returned from the build function in BehaviorModels.py, is this ok?

Testing:

$ $HOME/anm_unreal_sim/submodules/geoscenarioserver/GSServer.py -s $HOME/anm_unreal_test_suite/scenarios/ring_road_ccw/geoscenarioserver/ring_road_ccw1.osm -m $HOME/anm_unreal_test_suite/maps/ringroad/lanelet2/ringroad.osm > $HOME/anm_unreal_test_suite/logs/NewGeoScenarioServer.log

ImportError: dynamic module does not define module export function (PyInit_core)

Not sure why this happens

Notes: Default btree root code is in ScenarioSetup.py: btree_root = vnode.tags['btree'] if 'btree' in vnode.tags else "drive_tree" #a behavior tree file (.btree) inside scenarios/btrees/

mantkiew commented 3 years ago

Superseded by