Skip to content

Commit

Permalink
Remove unnecessary casting
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominic Reber committed Jul 3, 2021
1 parent da46390 commit 8cca183
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,7 @@ Eigen::VectorXd CartesianPose::data() const {
}

CartesianPose CartesianPose::inverse() const {
CartesianPose result = this->CartesianState::inverse();
return result;
return this->CartesianState::inverse();
}

std::ostream& operator<<(std::ostream& os, const CartesianPose& pose) {
Expand All @@ -162,7 +161,7 @@ std::ostream& operator<<(std::ostream& os, const CartesianPose& pose) {
}

CartesianPose operator*(const CartesianState& state, const CartesianPose& pose) {
return CartesianPose(state.operator*(pose));
return state.operator*(pose);
}

CartesianPose operator*(double lambda, const CartesianPose& pose) {
Expand Down

0 comments on commit 8cca183

Please sign in to comment.