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

adds shared_ptr overloads for mjbots constructors #30

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

jdcaporale
Copy link
Contributor

(Pull Request 1 of 3 in a sequence)

  • Adds shared_pointer vector constructors to the mjbots classes (robot and control loop).
  • Adds make_share_vector helper function to help with construction.

@ethanmusser ethanmusser added the enhancement New feature or request label Aug 2, 2022
Copy link
Collaborator

@ethanmusser ethanmusser left a comment

Choose a reason for hiding this comment

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

LGTM.

@ethanmusser ethanmusser marked this pull request as ready for review August 3, 2022 00:22
Copy link
Contributor

@ShaneRozenLevy ShaneRozenLevy left a comment

Choose a reason for hiding this comment

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

LGTM, some very minor nits that makes it sad we don't have an auto formatter.

}


Copy link
Contributor

Choose a reason for hiding this comment

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

nit: white space

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agreed, we should do a formatting run (see #35).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea Ethan has been pushing for more auto formatting and I've been slowly coming around to the idea.

@@ -96,10 +101,8 @@ MjbotsRobotInterface::MjbotsRobotInterface(const std::vector<JointMoteus> &joint
moteus_data_.commands = {commands_.data(), commands_.size()};
moteus_data_.replies = {replies_.data(), replies_.size()};
moteus_data_.timeout = timeout_;

Copy link
Contributor

Choose a reason for hiding this comment

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

nit white space

@ethanmusser ethanmusser merged commit 643f605 into master Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants