MengGuo / P_MAS_TG

Planner for Multiple Agent System with Temporal Goals
GNU General Public License v2.0
26 stars 15 forks source link

The example doesn't run. #4

Open yangxule opened 1 month ago

yangxule commented 1 month ago

Mr.Guo

It doesn't work when I run the script 'agents_planner.py' in Intro->Examples->multi. There is an error that AttributeError: 'ltl_planner' object has no attribute 'contract_time'. There are similar problems in the script 'agents_planner.py' when I browse it such as 'Planner[i].delay_cooperation(DELAY, SPEED[i])' , 'Request[i] = Planner[i].cooperative_action_in_horizon(dep,horizon[i])', 'Reply[i] = Planner[i].evaluate_request(request,alpha=1)' etc. How can I solve these? Best wishes!

MengGuo commented 1 month ago

Hello, you may need to add the ltl_planner module to your PYPATH.

yangxule commented 1 month ago

Mr. Guo ,I'm sorry for reply you so long. I think I have added the ltl_planner module to my PYPATH.I can run the script test.py and square_world.py in folder Examples->to_matlab successfully.But when I run agents_planner.py in folder Examples->multi,there has an error AttributeError: 'ltl_planner' object has no attribute 'cooperative_action_in_horizon'.