Skip to content

Commit

Permalink
A valid link always has a parent joint.
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahr authored Aug 12, 2024
1 parent c2a3f52 commit 7a6b3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion moveit_core/robot_model/src/robot_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1371,7 +1371,7 @@ const LinkModel* RobotModel::getRigidlyConnectedParentLinkModel(const LinkModel*
const moveit::core::LinkModel* parent_link = link->getParentLinkModel();
const moveit::core::JointModel* joint = link->getParentJointModel();

while (parent_link && joint && joint->getType() == moveit::core::JointModel::FIXED)
while (parent_link && joint->getType() == moveit::core::JointModel::FIXED)
{
link = parent_link;
joint = link->getParentJointModel();
Expand Down

0 comments on commit 7a6b3e9

Please sign in to comment.