Skip to content

Commit

Permalink
Fix MoveGroupInterface uninitialized RobotState (#3008)
Browse files Browse the repository at this point in the history
  • Loading branch information
captain-yoshi committed Dec 23, 2021
1 parent 23dff03 commit a25515b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,10 @@ void MoveGroupInterface::setStartState(const moveit_msgs::RobotState& start_stat
if (start_state.is_diff)
impl_->getCurrentState(rs);
else
{
rs = std::make_shared<moveit::core::RobotState>(getRobotModel());
rs->setToDefaultValues(); // initialize robot state values for conversion
}
moveit::core::robotStateMsgToRobotState(start_state, *rs);
setStartState(*rs);
}
Expand Down

0 comments on commit a25515b

Please sign in to comment.