A small question about a property called "actuator_actearly" in mujoco model #2280
Replies: 2 comments 4 replies
-
Sorry that the model and codes in my discussion are not what I used in the experiment. I didn't pay attention to it. Please just check the text info, thx. |
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
-
Intro
Hi!
I am a student majoring in Robotics, I use MuJoCo for my research on human robot interactions.
My setup
I use Mujoco with Python API.
My question
And I am really interested about the property called "actuator_actearly" in MjModel, I read the source codes in the engine_forward.c and find there is a if-else module here:
The definition for this property is "step activation before force". I did a small experiment that I set the initial ctrl, act both to zero and incremented the excitation signals a small step for each loop and print the value for this parameter and it shows "0", in other words, it will not go to the first branch in this if-else.
So my question for this is as follows:
1) For the muscle model in Mujoco, this value is set to 0 defaultly? which means that the activation used to calculate the active muscle force is the current activation instead of the next activation after integration, right?
2) If not, I guess this parameter would be compiled when I load the model, so is there a way to modify this parameter in the xml file, I didn't find too much information about this.
Thanks very much for your help and wishing you all the best.
Minimal model and/or code that explain my question
If you encountered the issue in a complex model, please simplify it as much as possible (while still reproducing the issue).
Model:
minimal XML
Code:
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions