ARISE-Initiative / robosuite

robosuite: A Modular Simulation Framework and Benchmark for Robot Learning
https://robosuite.ai
Other
1.18k stars 379 forks source link

Add an object for visual only #486

Open GreenAvocado92 opened 2 months ago

GreenAvocado92 commented 2 months ago

When I add an object for visual only, an error occurred like below:

  File "/home/idm/Shares/imitation/robosuite/robosuite/environments/manipulation/manipulation_env.py", line 162, in __init__
    super().__init__(
  File "/home/idm/Shares/imitation/robosuite/robosuite/environments/robot_env.py", line 214, in __init__
    super().__init__(
  File "/home/idm/Shares/imitation/robosuite/robosuite/environments/base.py", line 137, in __init__
    self._initialize_sim()
  File "/home/idm/Shares/imitation/robosuite/robosuite/environments/base.py", line 230, in _initialize_sim
    self.sim = MjSim.from_xml_string(xml)
  File "/home/idm/Shares/imitation/robosuite/robosuite/utils/binding_utils.py", line 1073, in from_xml_string
    model = mujoco.MjModel.from_xml_string(xml)
ValueError: Error: mass and inertia of moving bodies must be larger than mjMINVAL
Object name = cube_target_main, id = 25, line = 275, column = -1
zhuyifengzju commented 1 month ago

A reference for creating a reference visual object can be found here. If you are following the exact same definition, please provide more details so that we can help with.