-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tool_pt orientation_tolerance seems not working #243
Comments
The tolerance is applied relative to the tool point orientation, so it can still exceed that tolerance relative to a global reference frame's orientation |
Is it relative to the |
What about importing a new construction method of the TolerancedFrame(const Eigen::Affine3d &a, const std::vector<double> &pos_tol, const std::vector<double> &orient_tol)
: Frame(a)
{
Eigen::Vector3d t = a.translation();
Eigen::Matrix3d m = a.rotation();
Eigen::Vector3d rxyz = m.eulerAngles(0, 1, 2);
position_tolerance = ToleranceBase::createSymmetric<PositionTolerance>(t(0), t(1), t(2), pos_tol.at(0), pos_tol.at(1), pos_tol.at(2));
orientation_tolerance = ToleranceBase::createSymmetric<OrientationTolerance>(rxyz(0), rxyz(1), rxyz(2), orient_tol.at(0), orient_tol.at(1), orient_tol.at(2));
} this will enable user create a tolerance frame with a std::vector<double> pos_tol(3, 0.0);
std::vector<double> orient_tol(3,0.0);
orient_tol.at(2) = M_PI/2.0;
TolerancedFrame tool_pt(point, pos_tol, orient_tol); |
You can look into the sampling method for the cartesian point here
I believe that what you are requesting is already possible with the current implementation unless there's a bug |
@jrgnicho yeah, it's possible from the current implementation, but the default implementation allow the user to create the absolute range for an axis relative to the tool_pt.orientation_tolerance.z_lower = -30.0/180.0 * M_PI; // Search -30 degree to 30 degree
tool_pt.orientation_tolerance.z_upper = 30.0/180.0 * M_PI; the planner will search between -30 degree to 30 degree which relatvie to the But if the user wants to the planner searching between -30 degrees to 30 degrees which relative the |
We set the
orientation_tolerance
as 30 degreeBut the output trajectory, the z axis tolerance is larger than 30 degree, actually max 90 degree!
I set the cartesian trajectory point like
The text was updated successfully, but these errors were encountered: