-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add satisfiable tolerance parameter to TSR constructor #180
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
5aada2a
add satisfiable tolerance parameter to TSR constructor
03082ad
address JS's comments
a77b734
address JS's comment
baa8310
address JS's comment
aa443dd
address Gilwoo's comments
ed566bf
address Mike's comments
0e41653
Merge branch 'master' into feature/add_eps_for_TSR
gilwoolee d118d2d
Merge branch 'master' into feature/add_eps_for_TSR
gilwoolee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,11 +40,13 @@ class TSR : public Sampleable, | |
/// bound rotation following Roll-Pitch-Yaw convention. | ||
/// _Bw(i, 0) should be less than or equal to _Bw(i, 1). | ||
/// \param _Tw_e end-effector offset transform in the coordinates of w | ||
/// \param _testableTolerance tolerance used in isSatisfiable as testable | ||
TSR(std::unique_ptr<util::RNG> _rng, | ||
const Eigen::Isometry3d& _T0_w = Eigen::Isometry3d::Identity(), | ||
const Eigen::Matrix<double, 6, 2>& _Bw = | ||
Eigen::Matrix<double, 6, 2>::Zero(), | ||
const Eigen::Isometry3d& _Tw_e = Eigen::Isometry3d::Identity()); | ||
const Eigen::Isometry3d& _Tw_e = Eigen::Isometry3d::Identity(), | ||
double _testableTolerance = 1e-6); | ||
|
||
|
||
/// Constructor with default random seed generator. | ||
|
@@ -54,10 +56,12 @@ class TSR : public Sampleable, | |
/// bound rotation following Roll-Pitch-Yaw convention. | ||
/// _Bw(i, 0) should be less than or equal to _Bw(i, 1). | ||
/// \param _Tw_e end-effector offset transform in the coordinates of w | ||
/// \param _testableTolerance tolerance used in isSatisfiable as testable | ||
TSR(const Eigen::Isometry3d& _T0_w = Eigen::Isometry3d::Identity(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a docstring for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. added. |
||
const Eigen::Matrix<double, 6, 2>& _Bw = | ||
Eigen::Matrix<double, 6, 2>::Zero(), | ||
const Eigen::Isometry3d& _Tw_e = Eigen::Isometry3d::Identity()); | ||
const Eigen::Isometry3d& _Tw_e = Eigen::Isometry3d::Identity(), | ||
double _testableTolerance = 1e-6); | ||
|
||
TSR(const TSR& other); | ||
TSR(TSR&& other); | ||
|
@@ -112,6 +116,14 @@ class TSR : public Sampleable, | |
bool project(const statespace::StateSpace::State* _s, | ||
statespace::StateSpace::State* _out) const override; | ||
|
||
/// Get the testable tolerance used in isSatisfiable. | ||
/// \param[out] _out Testable tolerance, double. | ||
double getTestableTolerance(); | ||
|
||
/// Set the testable tolerance used in isSatisfiable. | ||
/// \param _testableTolerance Testable tolerance to set. | ||
void setTestableTolerance(double _testableTolerance); | ||
|
||
/// Transformation from origin frame into the TSR frame "w". | ||
/// "w" is usually centered at the origin of an object held by the hand | ||
/// or at a location on an object that is useful for grasping. | ||
|
@@ -125,6 +137,8 @@ class TSR : public Sampleable, | |
Eigen::Isometry3d mTw_e; | ||
|
||
private: | ||
/// Tolerance used in isSatisfied as a testable | ||
double mTestableTolerance; | ||
std::unique_ptr<util::RNG> mRng; | ||
std::shared_ptr<statespace::SE3> mStateSpace; | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a docstring for
_testableTolerance
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed