Skip to content

Conversation

@stuqdog
Copy link
Member

@stuqdog stuqdog commented Feb 20, 2024

No description provided.

/// @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 acmorrow, njooma and purplenicole730 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
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