-
Notifications
You must be signed in to change notification settings - Fork 106
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
Addition of two angular constraints #6
base: kinetic-devel
Are you sure you want to change the base?
Addition of two angular constraints #6
Conversation
… Removed trajectory file writing items to be placed in a separate branch.
@@ -104,4 +103,102 @@ struct CartVelCalculator : VectorOfVector | |||
|
|||
VectorXd operator()(const VectorXd& dof_vals) const; | |||
}; | |||
|
|||
enum Axis { |
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 namespace the enum see here
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.
Are we using C++11? Could use enum class
instead.
}; | ||
|
||
/** | ||
* @brief The ConfinedAxisErrCalculator is a truct whose operator() calculates error of a given |
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.
truct -> struct
|
||
/** | ||
* @brief The ConfinedAxisErrCalculator is a truct whose operator() calculates error of a given | ||
* pose with respect ot the confined rotation along the defined axis. |
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.
ot -> to
link_(link), | ||
tcp_(tcp), | ||
axis_(axis), | ||
tol_(tol_angle * M_PI / 180.0) |
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.
remove M_PI/180
* @param env | ||
* @param link | ||
* @param axis Axis of rotation | ||
* @param tol_angle Tolerance in radians |
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 note that this is a +/- range
Eigen::Affine3d tcp; /**< Tool center point */ | ||
|
||
Axis axis; /**< Axis given a conical tolerance */ | ||
double tol; /**< Cone angle in degrees */ |
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.
Units of radians
Eigen::Affine3d tcp; /**< Tool center point */ | ||
|
||
Axis axis; /**< Axis allowed to rotate */ | ||
double tol; /**< Rotation acceptable in degrees */ |
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.
units of radians
trajopt/src/kinematic_terms.cpp
Outdated
VectorXd err(1); | ||
|
||
// determine the error of the rotation | ||
switch(axis_) { |
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.
{ on newline
trajopt/src/kinematic_terms.cpp
Outdated
return err; | ||
} | ||
|
||
VectorXd ConicalAxisErrCalculator::operator()(const VectorXd& dof_vals) const { |
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.
{ new line
trajopt/src/kinematic_terms.cpp
Outdated
VectorXd err(1); | ||
|
||
// determine the error of the conical axis | ||
switch(axis_) { |
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.
{ new line
…o AlignedAxis. AlignedAxis is currently not interacting consistently with positional constraints
Changed from the earlier pull request. Removed the file writing functionality and refactored some code.