[Question] AttributeError: 'RigidObject' object has no attribute '_external_force_b' when spawning Rigid Object on DirectRL Environment. #1142
Replies: 9 comments 3 replies
-
I am getting the same issue with latest IsaacLab release. Before getting the
I also modified the reset function to reset the object position but that doesn't make a difference.
|
Beta Was this translation helpful? Give feedback.
-
@SantiDiazC can you please provide a reproduction script of this error |
Beta Was this translation helpful? Give feedback.
-
Just comparing your configuration of the RigidObject to the ShadoHandEnvCfg I see that you are not setting mass properties in the spawner. This may be preventing the rigid object from being created completly. mass_props=sim_utils.MassPropertiesCfg(density=567.0),
|
Beta Was this translation helpful? Give feedback.
-
Hi @jtigue-bdai , For me, the error comes trying to add the table of the manager-based Franka Lift environment to my own DirectRL version. My table config is
and I instantiate the table as:
I've just noticed an additional error with this setup which probably indicates the problem - can you help decipher this message?
When I add the
Thanks in advance! |
Beta Was this translation helpful? Give feedback.
-
Hi,
Before the object was not created on the scene and I got the def _setup_scene(self):
self._robot = Articulation(self.cfg.robot)
self._cylinder = RigidObject(self.cfg.cylinder_cfg)
self.scene.rigid_objects["Cylinder"] = self._cylinder
self.scene.articulations["Robot"] = self._robot to: def _setup_scene(self):
self._robot = Articulation(self.cfg.robot)
self._cylinder = RigidObject(self.cfg.cylinder_cfg)
# self.scene.rigid_objects["Cylinder"] = self._cylinder
self.scene.articulations["Robot"] = self._robot Also when I reset the object on the
Thank you in advance! |
Beta Was this translation helpful? Give feedback.
-
@SantiDiazC and @elle-miller because you are using the DirectRLEnv workflow I cannot recreate your issue without your whole DirectRLEnv and Cfg. Please provide a your DirectRLEnv and DirectRLEnvCfg. So that we can recreate your issue. |
Beta Was this translation helpful? Give feedback.
-
Hi @jtigue-bdai of course, here is a "bare bones" version that reproduces the error for me when training with default skrl
|
Beta Was this translation helpful? Give feedback.
-
Hi @SantiDiazC and @elle-miller,
|
Beta Was this translation helpful? Give feedback.
-
This is most likely an issue with the USD file. You need to set the |
Beta Was this translation helpful? Give feedback.
-
Hi, I am trying to create an DirectRL environment in which I spawn some robot, gripper and objects for a grasping task. When spawning the robot and gripper I don't have any problem, however, when I tried to add the objects I have the following error:
For more context, I set the object configs within the environment config class like this:
and its Spawned inside the env class setup:
I don't know if I have to modify the
_reset_idx
method since is mentioned in the error when theenv.reset()
is called.Here it is how I define it (similar to the
FrankaCabinetEnv
example):If there is any solution for this please tell me, thank you!
Beta Was this translation helpful? Give feedback.
All reactions