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

what should I do to set z-axis up #3

Open
zhuyijie88 opened this issue Sep 27, 2022 · 2 comments
Open

what should I do to set z-axis up #3

zhuyijie88 opened this issue Sep 27, 2022 · 2 comments

Comments

@zhuyijie88
Copy link

Now that the released code is y-axis up, I want to set z-axis up in simulation. I set contact normal vector to (0,0,1) rather than (0,1,0), and gravity as (0, 0, -9.8). Also, I replace the expression vyny with vznz, vy with vz, ny with nz, etc, mainly in files sim.py and model.py. However, the result dynamics is not the same as the original setting. What more should I do?

@ViktorM
Copy link
Collaborator

ViktorM commented Oct 21, 2022

Hi @zhuyijie88,

By default, z-up is not supported by dflex and you need to modify sim and model code. I think you chose the correct approach, but some small detail is still missing. Could you provide some more info about the change in dynamics you observed?

  • @mmacklin for visibility to support z-up in Warp by default together with y-up.

@zhuyijie88
Copy link
Author

Hi @zhuyijie88,

By default, z-up is not supported by dflex and you need to modify sim and model code. I think you chose the correct approach, but some small detail is still missing. Could you provide some more info about the change in dynamics you observed?

  • @mmacklin for visibility to support z-up in Warp by default together with y-up.

the robot (a dog) is floating in the simualtion space, with a plane below. It floats up slowly and changes orientation of body. The fllowing is the main file I modified.
sim.txt

imgeorgiev pushed a commit to imgeorgiev/DiffRL that referenced this issue Feb 28, 2024
Stabalise, cleanup and simplify repo
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

2 participants