Classes | Public Member Functions | Static Public Member Functions | Protected Attributes
constrained_ik::constraints::GoalPosition Class Reference

Constraint to specify cartesian goal position (XYZ) More...

#include <goal_position.h>

Inheritance diagram for constrained_ik::constraints::GoalPosition:
Inheritance graph
[legend]

List of all members.

Classes

struct  GoalPositionData
 This structure stores constraint data. More...

Public Member Functions

virtual Eigen::VectorXd calcError (const GoalPositionData &cdata) const
 Direction vector from current position to goal position Expressed in base coordinate system Each element is multiplied by corresponding element in weight_.
virtual Eigen::MatrixXd calcJacobian (const GoalPositionData &cdata) const
 Jacobian is first three rows of standard jacobian (expressed in base frame). Equivalent to each axis of rotation crossed with vector from joint to chain tip. Each row is scaled by the corresponding element of weight_.
virtual bool checkStatus (const GoalPositionData &cdata) const
 Checks termination criteria Termination criteria for this constraint is that positional error is below threshold.
constrained_ik::ConstraintResults evalConstraint (const SolverState &state) const override
 see base class for documentation
virtual double getTolerance () const
 Getter for the positional convergance tolerance.
virtual Eigen::Vector3d getWeight () const
 Getter for weight_.
void loadParameters (const XmlRpc::XmlRpcValue &constraint_xml) override
 see base class for documentation
virtual void setTolerance (const double &tol)
 Setter for positional convergance tolerance.
virtual void setWeight (const Eigen::Vector3d &weight)
 Setter for weight_.

Static Public Member Functions

static double calcDistance (const Eigen::Affine3d &p1, const Eigen::Affine3d &p2)
 Calculates distance between two frames.

Protected Attributes

double pos_err_tol_
 termination criteria
Eigen::Vector3d weight_
 weights used to scale the jocabian and error

Detailed Description

Constraint to specify cartesian goal position (XYZ)

Examples:
All examples are located here Goal Position Constraint Examples

Definition at line 43 of file goal_position.h.


Member Function Documentation

double constrained_ik::constraints::GoalPosition::calcDistance ( const Eigen::Affine3d &  p1,
const Eigen::Affine3d &  p2 
) [static]

Calculates distance between two frames.

Todo:
This should be moved to the utils class
Parameters:
p1Current frame
p2Goal frame
Returns:
Cartesian distance between p1 and p2

Definition at line 84 of file goal_position.cpp.

Eigen::VectorXd constrained_ik::constraints::GoalPosition::calcError ( const GoalPositionData cdata) const [virtual]

Direction vector from current position to goal position Expressed in base coordinate system Each element is multiplied by corresponding element in weight_.

Parameters:
cdataThe constraint specific data.
Returns:
Translation from current to goal scaled by weight_

Reimplemented in constrained_ik::constraints::ToolPosition.

Definition at line 58 of file goal_position.cpp.

Eigen::MatrixXd constrained_ik::constraints::GoalPosition::calcJacobian ( const GoalPositionData cdata) const [virtual]

Jacobian is first three rows of standard jacobian (expressed in base frame). Equivalent to each axis of rotation crossed with vector from joint to chain tip. Each row is scaled by the corresponding element of weight_.

Parameters:
cdataThe constraint specific data.
Returns:
First 3 rows of standard jacobian scaled by weight_

Reimplemented in constrained_ik::constraints::ToolPosition.

Definition at line 69 of file goal_position.cpp.

Checks termination criteria Termination criteria for this constraint is that positional error is below threshold.

Parameters:
cdataThe constraint specific data.
Returns:
True if positional error is below threshold

Definition at line 89 of file goal_position.cpp.

virtual double constrained_ik::constraints::GoalPosition::getTolerance ( ) const [inline, virtual]

Getter for the positional convergance tolerance.

Returns:
pos_err_tol

Definition at line 117 of file goal_position.h.

virtual Eigen::Vector3d constrained_ik::constraints::GoalPosition::getWeight ( ) const [inline, virtual]

Getter for weight_.

Returns:
weight_

Definition at line 105 of file goal_position.h.

virtual void constrained_ik::constraints::GoalPosition::setTolerance ( const double &  tol) [inline, virtual]

Setter for positional convergance tolerance.

Parameters:
tolValue to assign to pos_err_tol

Definition at line 123 of file goal_position.h.

virtual void constrained_ik::constraints::GoalPosition::setWeight ( const Eigen::Vector3d &  weight) [inline, virtual]

Setter for weight_.

Parameters:
weightValue to assign to weight_

Definition at line 111 of file goal_position.h.


The documentation for this class was generated from the following files:


constrained_ik
Author(s): Chris Lewis , Jeremy Zoss , Dan Solomon
autogenerated on Sat Jun 8 2019 19:23:46