Skip to content
Snippets Groups Projects
Commit 11fb6fe0 authored by Mirko Wächter's avatar Mirko Wächter
Browse files

change interpolated solution of limitless joints to actual defined limits instead of 0-2PI

check limits in any case after creation of random config
parent 33b05d69
No related branches found
No related tags found
No related merge requests found
......@@ -625,6 +625,8 @@ namespace Saba
float start = q1[dim];
float end = q2[dim];
float res = interpolateRotational(start, end , step);
// change to actual defined borders
res = VirtualRobot::MathTools::angleModX(res, 0.5f*(boundaryMax[dim]+boundaryMin[dim]));
return res;
}
......
......@@ -208,7 +208,7 @@ namespace Saba
generateNewConfig(goal, tmpConfig, tmpConfig, colCheckDist, dist);
LOCAL_DEBUG("--> " << endl << tmpConfig << endl);
if (!(isConfigValid(tmpConfig, false, true, true)))
if (!(isConfigValid(tmpConfig, true, true, true)))
{
return p;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment