Skip to content

Commit

Permalink
Clear the output argument before filling it in
Browse files Browse the repository at this point in the history
  • Loading branch information
mxgrey authored and Ludovic Delval committed Sep 29, 2021
1 parent 870dae2 commit 0e606f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ur_kinematics/src/ur_moveit_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ bool URKinematicsPlugin::getAllPositionIK(const geometry_msgs::Pose &ik_pose,
num_sols = inverse((double*) homo_ik_pose, (double*) q_ik_sols,
jnt_pos_test(ur_joint_inds_start_+5));


solutions.clear();
for(uint16_t i=0; i<num_sols; i++) {
std::vector<double> kinematic_solution(q_ik_sols[i], q_ik_sols[i] + 6);
enumeratePeriodicSolutions(kinematic_solution, ik_chain_info_.limits, solutions, 6);
Expand Down

0 comments on commit 0e606f4

Please sign in to comment.