Skip to content

Environment GazeboMarsLsdForce-Lidar doesn't exist. #1

@188CHENJEFF

Description

@188CHENJEFF

Hello, I am very sorry to disturb you,I tried to run the pretrained model, but the following error occurred. I would like to ask you how to solve this bug:

  File "stable-SAC_test.py", line 65, in <module>
    env = gym.make('GazeboMarsLsdForce-Lidar-v0')
gym.error.NameNotFound: Environment `GazeboMarsLsdForce-Lidar` doesn't exist. Did you mean: `GazeboMarsLsd`?

If I change the environment name, a new error will be reported:

env = gym.make('GazeboMarsLsd-v0')
  File "/home/chenjeff/Downloads/yes/envs/detectron2/lib/python3.8/site-packages/gym/envs/registration.py", line 676, in make
    return registry.make(id, **kwargs)
  File "/home/chenjeff/Downloads/yes/envs/detectron2/lib/python3.8/site-packages/gym/envs/registration.py", line 520, in make
    return spec.make(**kwargs)
  File "/home/chenjeff/Downloads/yes/envs/detectron2/lib/python3.8/site-packages/gym/envs/registration.py", line 139, in make
    cls = load(self.entry_point)
  File "/home/chenjeff/Downloads/yes/envs/detectron2/lib/python3.8/site-packages/gym/envs/registration.py", line 55, in load
    mod = importlib.import_module(mod_name)
  File "/home/chenjeff/Downloads/yes/envs/detectron2/lib/python3.8/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1014, in _gcd_import
  File "<frozen importlib._bootstrap>", line 991, in _find_and_load
  File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/chenjeff/Active-Suspension/gym-gazebo/gym_gazebo/envs/lsd_rover/__init__.py", line 1, in <module>
    from gym_gazebo.envs.lsd_rover.lsd_rover_active_suspension import LsdEnv
  File "/home/chenjeff/Active-Suspension/gym-gazebo/gym_gazebo/envs/lsd_rover/lsd_rover_active_suspension.py", line 19, in <module>
    import tf2_geometry_msgs
  File "/opt/ros/noetic/lib/python3/dist-packages/tf2_geometry_msgs/__init__.py", line 1, in <module>
    from .tf2_geometry_msgs import *
  File "/opt/ros/noetic/lib/python3/dist-packages/tf2_geometry_msgs/tf2_geometry_msgs.py", line 31, in <module>
    import PyKDL
ModuleNotFoundError: No module named 'PyKDL'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions