-
Notifications
You must be signed in to change notification settings - Fork 0
Drc Atlas #2
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
base: main
Are you sure you want to change the base?
Drc Atlas #2
Conversation
| std::vector<size_t> mpcModelJointIndices; | ||
| mpcModelJointIndices.reserve(mpcModelJointNames.size()); | ||
| for (size_t i = 0; i < mpcModelJointNames.size(); ++i) { | ||
| CHECK(fullJointIndexMap.find(mpcModelJointNames[i]) != fullJointIndexMap.end()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! Like the check!
manumerous
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! Looks great overall. Would be great if we could quickly adjust the formatting and then merge. :)
| */ | ||
|
|
||
| static std::unordered_map<std::string, size_t> createJointIndexMap(const std::vector<std::string>& jointNames, size_t offset = 0) { | ||
| static std::unordered_map<std::string, size_t> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should enforce some formatting on the repo. I think we use an almoust identical formatter. I sticked with the ocs2 one. Would you mind reformatting with?
"clang-format.style": "{ BasedOnStyle: Google, ColumnLimit: 140, IndentWidth: 2, BreakBeforeBraces: Attach, DerivePointerAlignment: false, PointerAlignment: Left, AllowShortFunctionsOnASingleLine: Inline, IncludeBlocks: Preserve, BinPackParameters: false}",
Adds the DRC Atlas model to the project.
To run:
make launch-drc-atlas-dummy-sim