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

any example about the gradient calculation? #7

Open
foolyc opened this issue May 26, 2020 · 2 comments
Open

any example about the gradient calculation? #7

foolyc opened this issue May 26, 2020 · 2 comments

Comments

@foolyc
Copy link

foolyc commented May 26, 2020

is there any demo about calculating the gradient of system output q, q_{dot} with respect to physical properties parameters(link length/ mass/ inertia...) in python?

@erwincoumans
Copy link
Owner

Only the C++ has gradients, the Python bindings don't expose the gradients yet. It will be exposed.

@erwincoumans
Copy link
Owner

Latest version has pytinydiffsim_dual using dual numbers (forward mode).
There is a trivial example here:
https://github.com/google-research/tiny-differentiable-simulator/blob/master/python/examples/z_dual_numbers.py

The current code is also uploaded to pypi as revision 0.0.3, on Windows or Linux you can use

pip3 install pytinydiffsim --upgrade --user

Will look into a more interesting example later.

gautams3 pushed a commit to gautams3/tiny-differentiable-simulator that referenced this issue Sep 6, 2020
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