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

Fixes initialization location of fixed bodies #156

Merged
merged 3 commits into from
Oct 10, 2023

Conversation

RyanDavies19
Copy link
Collaborator

Resolves an issue where fixed bodies only initialized at 0,0,0,0,0,0 irregardless of what was specified in the input file. This was due to fixed bodies not initializing, and so default values were used.

for (auto l : FixedBodyIs){
cout << "Body " << l << endl;
cout << BodyList[l]->body_r6 << endl;
BodyList[l]->initializeUnfreeBody(BodyList[l]->body_r6, Eigen::DenseBase<Eigen::Vector6d>::Zero());
Copy link
Contributor

Choose a reason for hiding this comment

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

Two small notes:

  1. Should those cout calls be LOGMSG or LOGDBG?
  2. Eigen::DenseBase<Eigen::Vector6d>::Zero() should be able to be replaced with vec6::Zero()

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@AlexWKinley good catch. The cout's were from debugging and thanks for the correction of the vector type.

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.

2 participants