Skip to content

Commit c54f2e8

Browse files
NickNairLevi-Armstrong
authored andcommitted
Fix joint limit enforcement discarded in OMPL JointWaypoint start/goal registration
1 parent d7ed572 commit c54f2e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

motion_planners/ompl/src/profile/ompl_real_vector_move_profile.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ void OMPLRealVectorMoveProfile::applyGoalStates(ompl::geometric::SimpleSetup& si
335335

336336
ompl::base::ScopedState<> goal_state(simple_setup.getStateSpace());
337337
for (unsigned i = 0; i < dof; ++i)
338-
goal_state[i] = joint_waypoint[i];
338+
goal_state[i] = solution[static_cast<Eigen::Index>(i)];
339339

340340
simple_setup.setGoalState(goal_state);
341341
}
@@ -444,7 +444,7 @@ void OMPLRealVectorMoveProfile::applyStartStates(ompl::geometric::SimpleSetup& s
444444

445445
ompl::base::ScopedState<> start_state(simple_setup.getStateSpace());
446446
for (unsigned i = 0; i < dof; ++i)
447-
start_state[i] = joint_waypoint[i];
447+
start_state[i] = solution[static_cast<Eigen::Index>(i)];
448448

449449
simple_setup.addStartState(start_state);
450450
}

0 commit comments

Comments
 (0)