Closed liuyuezhang closed 4 years ago
@liuyuezhangadam Did you decode it?
According to comment on this line it means positional(cartesian) velocity in world frame whereas xvelr is rotational velocity
Don't know why multiplication by dt is needed
Sorry for a late reply.
No, I didn't decode it and I move to work on Atari game this summer. Thank you for providing me a great clue!
I shall continue to work on the project in this autumn. I'll keep in track.
Hi,
Where did the get_grip_vel function come from? Also do you mind sharing what versions you have for mujoco_py and gym? I am trying to get Baxter set up as well.
Just a guess (may not be correct):
nsubsteps > 1
means mujoco takes more than one step when you call the step function in the env. Therefore, we need to scale the positional velocity in the world frame returned by mujoco to get corresponding velocity in the env.
By the way, the test_xvelp
function test exactly the velocity in mujoco.
Well..., so the issue answer is what @YeeCY said before?
Currently I'm using mujoco-py to build a robot simulation environment for Baxter. I have some problem in understanding the attribute 'xvelp' and failed to solve it in documentation.
For example, if I'd like to get the velocity of the site 'right_gripper', I may write like this:
So what does the 'xvelp' stand for? Why you have to times it with 'dt'? Does it stand for acceleration?
I'm new to mujoco_py and OpenAI Gym. Thanks for your answers.