Accessing Site Names for Spatial Tendons in MjSpec #2670
-
IntroHi! I am a graduate student at University of Stuttgart and I use MuJoCo for my research on musculoskeletal simulation and RL. My setupI am using mujoco 3.2.7. My questionI'm currently working on modifying tendons and muscles using MjSpec, but I’ve run into a limitation: spec.tendons doesn’t seem to expose site names for spatial tendons. Is there a recommended way to access or work around this limitation? Minimal model and/or code that explain my questionNo response Confirmations
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 8 replies
-
|
hmm @quagla what's the right way to do this? I expected the mjsTendon to point me to a list of mjsWrap which would have what @nbadie is looking for, but I looked and now I'm not sure how one would get this from the mjSpec API... As a workaround, I can tell you how to do this from the mjModel, would that be helpful? |
Beta Was this translation helpful? Give feedback.
-
|
The thing is that the names are not part of the mjsWrap C-struct because they cannot be set by the user. |
Beta Was this translation helpful? Give feedback.
-
|
Hello! This issue has come up once again for spec processing applications. As far as I can tell this is still not accessible through mjSpec API. This would simplify my procedural mirroring/renaming scripts! |
Beta Was this translation helpful? Give feedback.
-
|
This is fixed at HEAD (credit @havess ), see latest changelog Sam, if I'm not wrong, please close this discussion |
Beta Was this translation helpful? Give feedback.
-
|
I think this was the commit? ac2cd5d |
Beta Was this translation helpful? Give feedback.
-
|
Hi! Yes ac2cd5d adds bindings to inspect the tendon path but this does not yet allow for in place editing. That sounds more like what you are looking for @Balint-H ? |
Beta Was this translation helpful? Give feedback.
Hi! Yes ac2cd5d adds bindings to inspect the tendon path but this does not yet allow for in place editing. That sounds more like what you are looking for @Balint-H ?