Skip to content

Commit

Permalink
Merge pull request #1129 from Naoki-Hiraoka/PR-unlock
Browse files Browse the repository at this point in the history
[HrpsysJointTrajectoryBridge] unlock m_mutex properly
  • Loading branch information
k-okada committed Mar 15, 2023
2 parents cb56193 + 3480e69 commit e4c41c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions hrpsys_ros_bridge/src/HrpsysJointTrajectoryBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,7 @@ void HrpsysJointTrajectoryBridge::jointTrajectoryActionObj::onJointTrajectory(
{
ROS_ERROR_STREAM(
"[" << parent->getInstanceName() << "] @onJointTrajectoryAction / Error : " << "required joint_names.size() = " << joint_names.size() << " < joint_list.size() = " << joint_list.size());
parent->m_mutex.unlock();
return;
}
for (unsigned int i = 0; i < joint_list.size(); i++)
Expand All @@ -444,6 +445,7 @@ void HrpsysJointTrajectoryBridge::jointTrajectoryActionObj::onJointTrajectory(
{
ROS_ERROR_STREAM(
"[" << parent->getInstanceName() << "] @onJointTrajectoryAction / Error : " << "joint : " << joint_list[i] << " did not exist in the required trajectory.");
parent->m_mutex.unlock();
return;
}
}
Expand Down

0 comments on commit e4c41c9

Please sign in to comment.