Thanks for that suggestion. Let me try it out. In relation to the previous post, I switched to Cpp just to see how well it goes. As a start, I...
It is happening in the middle of the simulation. Not always. But most of the time. I use mujoco_py wrapper for the simulation. But I have never...
Thanks for the replies. Yes, it was my mistake, I had torque motors installed instead of position actuators. That fixed, I constantly get...
Hi Emo Todorov, I was trying to load a demonstration from the real Baxter robot to a mujoco simulation based on the baxter.xml file provided in...
Yeah,.. you are right... I didn't think about that. :)
I solved the issue. :) I copied what was computed by mj_applyFT to qfrc_applied. But it would have been nice if mj_applyFT directly copied to...
If I am copying the values directly to q_frc applied, that would mean, I will have to compute the torque and force felt by the object at its...
Hi, I have an object lying on a table. I would like to apply random forces at certain known locations on the object so as to move it. This is...
Hi, What is the easiest (and efficient) way to compute jacobian of end-effector of an arm? Or any point on the robot specified as an...
I made my finite difference work, thought it predicts positions with a maximum deviation of +-0.0025 the velocities does deviate to a maximum of...
There is one other line that causes problem in derivative.cpp for the diagnostics. So if you run derivative.cpp for a couple of more times...
--diagnostic values given by derivative.cpp for above state and control. G2*F2 - I : -6.9 G2 - G2' : -inf G1 - G1' : 8.1e+80 F2 - F2'...
Thanks for the reply. I am using the derivative.cpp file to get local linearization of a system. But when I try to obtain the next step from this...
Hi, I generated an optimal control sequence for a cartpole swingup using direct collocation method with a time horizon of 10 seconds and having...
Dear Emo, It would be quite useful to see selected joints' trajectory within the viewer. Best, Mike
Thanks for the reply. According to this write up, the order of the mjtNum* derv seems different. First forward dynamics and next inverse dynamics...
The first Jacobian from derivative.cpp for a 2 link pendulum with just one motor at the second joint is given by 17.35727428 4.33931857...
At present I am writing a controller by locally linearising the robot model using finite differences. \dot{x} = f(x,u) is locally linearised to...
You were right. It solved the problem. It would immensely helpful if the tutorial put some more code examples. Suppose the xml file contains two...
void setState(const mjtNum* ptr, const mjModel* m, mjData* d) { mju_copy(d->qpos, ptr, m->nq); ptr += m->nq; mju_copy(d->qvel, ptr,...
Separate names with a comma.