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

RSDK-3008 - add misc-unused-params #216

Merged
merged 3 commits into from
Feb 21, 2024

Conversation

stuqdog
Copy link
Member

@stuqdog stuqdog commented Feb 20, 2024

No description provided.

@@ -24,7 +24,8 @@ class GenericComponent : public Component {
/// @brief Send/receive arbitrary commands to the resource.
/// @param command the command to execute.
/// @return The result of the executed command.
virtual AttributeMap do_command(AttributeMap command) = 0;
// CR erodkin: flyby
virtual AttributeMap do_command(const AttributeMap& command) = 0;
Copy link
Member Author

Choose a reason for hiding this comment

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

(flyby) make arg const&.

Comment on lines 33 to 36
this->peek_current_pose = destination;
this->peek_component_name = component_name;
this->peek_slam_name = slam_name;
this->current_location.pose = destination;
Copy link
Member Author

Choose a reason for hiding this comment

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

(flyby) here and below, moveing these args is meaningless because they're const&, and we can't make them not const& here without modifying the signature in the Motion base class. So, we get rid of the move.

@stuqdog stuqdog marked this pull request as ready for review February 20, 2024 20:27
@stuqdog stuqdog requested a review from a team as a code owner February 20, 2024 20:27
@stuqdog stuqdog requested review from njooma, purplenicole730 and acmorrow and removed request for a team February 20, 2024 20:27
Copy link
Member

@acmorrow acmorrow left a comment

Choose a reason for hiding this comment

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

LGTM

@stuqdog stuqdog merged commit 3ddaeb9 into viamrobotics:main Feb 21, 2024
3 checks passed
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