Skip to content
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

Inaccurate state setting in MJ simulation #1354

Open
1 of 5 tasks
laikhtewari opened this issue Aug 24, 2022 · 0 comments
Open
1 of 5 tasks

Inaccurate state setting in MJ simulation #1354

laikhtewari opened this issue Aug 24, 2022 · 0 comments

Comments

@laikhtewari
Copy link
Contributor

Type of Issue

Select the type of issue:

  • Bug report (to report a bug)
  • Feature request (to request an additional feature)
  • Tracker (I am just using this as a tracker)
  • Refactor request
  • Documentation Ask

Description

While creating a mirroring simulation feature in Polymetis, a set_state method was added to all manipulator environments. To do so, the simulation is reset to the desired state / robot position and gravity compensation torques are added. A unit test was implemented to verify that the measured position and velocity matches the desired position and velocity. This unit test passes for the bullet env (within a tolerance of 1e-3), but fails for the MJ env.

Current Behavior

Setting the position of a robot in MJ env using set_state yields a relatively good position but non-zero velocity and acceleration causing the position to grow increasingly inaccurate.

Expected Behavior

Position and velocity should match with low error after setting state

Steps to reproduce

The test_mirror_env test in test_env.py illustrates the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant