-
Notifications
You must be signed in to change notification settings - Fork 285
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
API for utilizing Analytical IK #530
Changes from 37 commits
c75fa6e
f726503
e704e5c
ffa522f
d04c1ac
d0a16f1
c4e2ae1
353a9a8
773a76d
d9a6c3c
e7958a9
2190f7b
4317f80
3430bde
1cc0c2d
b635aff
7527a7b
4006db3
dc3aae5
34a404f
6a7d18d
b6259bd
0b4b00c
6c3f112
29f737a
f18d30f
5058e70
0ff0c46
07d0538
ed2cba1
29e65d1
085dee2
7a7b543
dedb36f
8ebd23d
c64f140
b9e534c
16adfa1
5c5c5af
a5eda7e
1048a06
b66b679
e65a82a
1e34ac5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -428,6 +428,22 @@ bool verifyRotation(const Eigen::Matrix3d& _R); | |
/// all the elements are not NaN values. | ||
bool verifyTransform(const Eigen::Isometry3d& _T); | ||
|
||
/// Get the remainder of dividing x by y | ||
inline double mod(double x, double y) | ||
{ | ||
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. Any reason we don't use 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. Mostly because I did not know that function existed. Good catch! |
||
if( 0.0 == y ) | ||
return x; | ||
|
||
return x - y * floor(x/y); | ||
} | ||
|
||
/// Compute the angle (in the range of -pi to +pi) which ignores any full | ||
/// rotations | ||
inline double wrapToPi(double angle) | ||
{ | ||
return mod(angle+M_PI, 2*M_PI) - M_PI; | ||
} | ||
|
||
template <typename MatrixType, typename ReturnType> | ||
void extractNullSpace(const Eigen::JacobiSVD<MatrixType>& _SVD, ReturnType& _NS) | ||
{ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(drchubo) | ||
find_package(catkin REQUIRED) | ||
catkin_package() | ||
|
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.
Need to be switched the comments.