-
Notifications
You must be signed in to change notification settings - Fork 433
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What's the unit of the velocities of robot joints? #201
Comments
The action space is normalized to [-1, 1] for convenience of policy learning. In practice, the real numerical range is defined in controller config files, e.g., this one for joint velocity: https://github.com/ARISE-Initiative/robosuite/blob/master/robosuite/controllers/config/joint_velocity.json Please check the MuJoCo documentations to see the units of the output: http://www.mujoco.org/book/index.html |
Thanks for your response. But I just met another confusing case. {
"type" : "JOINT_VELOCITY",
"input_max": 1,
"input_min": -1,
"output_max": 1,
"output_min": -1,
"kp": 3,
"velocity_limits": [-1,1],
"interpolation": null,
"ramp_ratio": 0.2
} and I gave an action {
"type" : "JOINT_VELOCITY",
"input_max": 10,
"input_min": -10,
"output_max": 10,
"output_min": -10,
"kp": 3,
"velocity_limits": [-1,1],
"interpolation": null,
"ramp_ratio": 0.2
} The velocity I got was steady at 1 and never exceeded 1 again. |
Hi @guodashun , Thanks for the additional info. There may perhaps be a miscommunication in terms of what That being said, in either case the observed behavior shouldn't differ between either of your configs. When you were using the first config (with input / outputs set to +/- 1), did the velocity converge to 1 or did it continue to exceed past 1 indefinitely? |
I got the first joint's velocity by action = [1, 0,0,0,0,0]
obs, _,_,_ = env.step(action)
print("first joint vel: ",obs['robot0_joint_vel'][0]) With my first config which in/output max/min is 1, I got the following results:
At last the velocity became to negative because of the limit position.
The velocity seemd to converge to 1 finally. |
Can you provide a reproducible script? I'm testing now with Panda + Lift env and I can't replicate the issue using your controller configs. |
I uploaded the test code in my repository. $ python test.py Thanks! |
Hello, today I try to control the velocities of robot joints with
controller_config = load_controller_config(default_controller='JOINT_VELOCITY')
, and I find the default value of the maximum velocity is 1. But I cannot find the specific unit of the velocity in the doc. So the question is what's the unit of the velocity of robot joints, and how can I control the joint with a specific velocity (for example, 180°/s)?The text was updated successfully, but these errors were encountered: