Skip to content

Commit

Permalink
Simpler fix to Pilz/LIN segfault
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Jul 19, 2024
1 parent 7880add commit 61afd97
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
*********************************************************************/

#include "pilz_industrial_motion_planner/trajectory_generator_lin.h"
#include <pilz_industrial_motion_planner/tip_frame_getter.h>

#include <cassert>
#include <ros/ros.h>
Expand Down Expand Up @@ -74,13 +75,7 @@ void TrajectoryGeneratorLIN::extractMotionPlanInfo(const planning_scene::Plannin
// goal given in joint space
if (!req.goal_constraints.front().joint_constraints.empty())
{
auto solver = robot_model_->getJointModelGroup(req.group_name)->getSolverInstance();
if (!solver)
{
ROS_ERROR_STREAM("No IK solver defined for group '" << req.group_name << "'");
return;
}
info.link_name = solver->getTipFrame();
info.link_name = getSolverTipFrame(robot_model_->getJointModelGroup(req.group_name));

if (req.goal_constraints.front().joint_constraints.size() !=
robot_model_->getJointModelGroup(req.group_name)->getActiveJointModelNames().size())
Expand Down

0 comments on commit 61afd97

Please sign in to comment.