Closed N1ckfm closed 2 years ago
Hi @N1ckfm
I haven't tried this ever so don't know if you're making a mistake or if there's a problem. I think @arntanguy tried adding extra objects but I'm not sure. Anyway I would need some more time to look into this :(
Hi @N1ckfm
Do you still need help on this?
Hi, I talked with Pierre about that and he mentioned me that is necessary to add an object in the controller and then mc_mujoco will load it. In this case I would like to know an example of put an box in the floor and an box moving with the robot in the controller. In mc_mujoco I can add an object in the floor because it is not a joint. But I guess if the robot walk over this box the controller will be consider there are no box, because it was added in mc_mujoco instead of the controller. I will appreciate your comments.
Thanks to @gergondet as he just made a commit to auto install the files for new objects!
All you need to do now is to add the object to your controller, perhaps as follows:
robots:
my_box_object:
module: object/box
init_pos:
translation: [1.0, 0, 0.5]
rotation: [0, 0, 0]
Hi @N1ckfm
As @rohanpsingh mentionned I have added support for object/box
in your controller so it should appear if you set it in your configuration. However, unless your environment has somewhere to put the box it should start with z = 0.05
to match the height of the box (the box is 0.22x0.22x0.1 with its center in the center of the box)
Hi, I want to add a block or any object with free joint to the model, for example the robot take this box, but I get this error in the xml:
I will appreciate your comments thanks Nícolas