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

add symbolic printout to the double pendulum example #249

Merged
merged 2 commits into from
Jan 13, 2020

Conversation

RussTedrake
Copy link
Owner

Resolves #176

T = None
for scalar in [float, AutoDiffXd, Expression]:
if isinstance(plant, MultibodyPlant_[scalar]):
T = scalar
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@EricCousineau-TRI -- is this the right way to infer the template type of an argument? is there a better way?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing this now - you should also be able to do MultibodyForce_(plant), which was enabled by this PR:
RobotLocomotion/drake#11705

@RussTedrake RussTedrake merged commit d410b1e into master Jan 13, 2020
@RussTedrake RussTedrake deleted the print_symbolic branch January 13, 2020 13:51
@RussTedrake
Copy link
Owner Author

RussTedrake commented Jan 13, 2020 via email

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

Successfully merging this pull request may close these issues.

print symbolic dynamics.
2 participants