maxspahn / gym_envs_urdf

URDF environments for gym
https://maxspahn.github.io/gym_envs_urdf/
GNU General Public License v3.0
46 stars 14 forks source link

Missing MotionPlanningGoal or MotionPlanningEnv #136

Closed maxspahn closed 1 year ago

maxspahn commented 2 years ago

Installing the bare minimum of the package leads to missing some package. This might throw an error like:

warnings.warn(str(err))
Traceback (most recent call last):
  File "/home/josyula/Programs/MAS_Project/gym_envs_urdf/examples/multi_robot.py", line 51, in <module>
    run_multi_robot(render=True, obstacles=True, goal=True)
  File "/home/josyula/Programs/MAS_Project/gym_envs_urdf/examples/multi_robot.py", line 34, in run_multi_robot
    from examples.scene_objects.goal import dynamicGoal
  File "/home/josyula/Programs/MAS_Project/gym_envs_urdf/examples/scene_objects/goal.py", line 1, in <module>
    from MotionPlanningGoal.staticSubGoal import StaticSubGoal
ModuleNotFoundError: No module named 'MotionPlanningGoal'
maxspahn commented 2 years ago

The motion planning scenes are optional. You can install them using pip: pip install "urdfenvs[scenes]"

If you use pip on the cloned repository, the syntax would be pip install -e ".[scenes]"

If you use poetry, it is poetry install -E scenes

In a future release this package will become mandotory.

Capsar commented 1 year ago

Tried the top command, but there is a small typo: should be pip install "urdfenvs[scenes]"

maxspahn commented 1 year ago

Thanks @Capsar, edited the comment accordingly.

maxspahn commented 1 year ago

In #148, the dependency changed from optional to required, thus making the installation easier in the future.