krishauser / Klampt

Kris' Locomotion and Manipulation Planning Toolkit
BSD 3-Clause "New" or "Revised" License
377 stars 96 forks source link

plan.robotplanning.wizard() NameError #145

Open Benoit-LdL opened 2 years ago

Benoit-LdL commented 2 years ago

Hi, I'm trying to setup the robotplanning wizard to setup / debug a motion planner. When initializing the wizard it throws the following error:

Traceback (most recent call last): File "/home/benoit/Desktop/motion-planner/klampt_env/./test_motion_planning.py", line 37, in <module> planner = plan.robotplanning.wizard(world) File "/usr/local/lib/python3.10/dist-packages/Klampt-0.9.0-py3.10-linux-x86_64.egg/klampt/plan/robotplanning.py", line 481, in wizard if isinstance(world_or_space_or_plan,WorldModel): NameError: name 'WorldModel' is not defined

the error traces back to this line in my code: "planner = plan.robotplanning.wizard(world)" which shouldn't be the problem. This error also appears when giving a cspace instead of a worldModel.

Is it possible the name WorldModel is not defined correclty in the actual library script as mentioned here? File "/usr/local/lib/python3.10/dist-packages/Klampt-0.9.0-py3.10-linux-x86_64.egg/klampt/plan/robotplanning.py", line 481, in wizard if isinstance(world_or_space_or_plan,WorldModel): NameError: name 'WorldModel' is not defined