Skip to content

Commit

Permalink
Use Isometry3d::setIdentity instead of = Isometry3d::Identity() when …
Browse files Browse the repository at this point in the history
…initializing RobotState

setIdentity() is a bit faster.
  • Loading branch information
Hugal31 committed Dec 5, 2023
1 parent 6584640 commit b55507d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moveit_core/robot_state/src/robot_state.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void RobotState::initTransforms()
for (size_t i = 0, end = robot_model_->getJointModelCount() + robot_model_->getLinkModelCount() +
robot_model_->getLinkGeometryCount();
i != end; ++i)
variable_joint_transforms_[i] = Eigen::Isometry3d::Identity();
variable_joint_transforms_[i].setIdentity();
}

RobotState& RobotState::operator=(const RobotState& other)
Expand Down

0 comments on commit b55507d

Please sign in to comment.