Skip to content

Commit

Permalink
Merge branch 'humble' into humble
Browse files Browse the repository at this point in the history
  • Loading branch information
sjahr authored Aug 2, 2024
2 parents 2a3b903 + d583c04 commit 87f4d29
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@

#include <pilz_industrial_motion_planner/trajectory_generator_lin.h>

#include <pilz_industrial_motion_planner/tip_frame_getter.h>

#include <cassert>
#include <sstream>
#include <time.h>
Expand Down Expand Up @@ -75,7 +77,7 @@ void TrajectoryGeneratorLIN::extractMotionPlanInfo(const planning_scene::Plannin
// goal given in joint space
if (!req.goal_constraints.front().joint_constraints.empty())
{
info.link_name = robot_model_->getJointModelGroup(req.group_name)->getSolverInstance()->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
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,10 @@ TEST_F(TrajectoryFunctionsTestFlangeAndGripper, testIKSolver)
const moveit::core::JointModelGroup* jmg = robot_model_->getJointModelGroup(planning_group_);
const kinematics::KinematicsBaseConstPtr& solver = jmg->getSolverInstance();

if (!solver)
{
throw("No IK solver configured for group '" + planning_group_ + "'");
}
// robot state
moveit::core::RobotState rstate(robot_model_);

Expand Down

0 comments on commit 87f4d29

Please sign in to comment.