Registering a New Custom SDF #1987
Unanswered
vmstavens
asked this question in
Asking for Help
Replies: 1 comment
-
Is MUJOCO_PATH pointing to the right mujoco, i.e. the one you built? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi MuJoCo community,
I'm a research assistant and I'm trying to use MuJoCo for assembly tasks. Specifically, I want to create non-convex collision meshes to facilitate inserting let's say a USB cable into its female connector. My current understanding is that this can be done using SDF plugins in MuJoCo. While and read and I believe understood the current documentation I seem to be encountering a small road block in registering my custom plugin.
My current progress is as follows:
sdf/
plugin directory on my local machine when MuJoCo was installed throughpip
I thereforeCloned the MuJoCo repo form GitHub
Navigated to the sdf folder
added new
.h
and.cc
files calledtest.h
andtest.cc
. Both of these hold the same code astorus.cc
andtorus.h
, except all instances ofTorus
was replaced withTest
.I navigated to
register.cc
and added my pluginmodified `register.cc`
``` cand added the new files to the
CMakeLists.txt
filemodified `CMakeLists.txt`
``` CMakeListsHaving done so, I navigate to the root directory of the repo and build and compile i.e.
cmake -Bbuild && cd build && make
. When compiling I get output like so:compile output
``` bashwhich seems like it includes my newly added plugin
MuJoCo Python code
``` python`XML` file from the MuJoCo repo, but modified
``` XMLAll feedback and/or ideas for how I could progress/solve this problem of mine are very much appreciated!
Beta Was this translation helpful? Give feedback.
All reactions