Public Member Functions | Protected Attributes
constrained_ik::constraints::GoalMidJoint Class Reference

Constraint to push joint to center of its range. More...

#include <goal_mid_joint.h>

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

List of all members.

Public Member Functions

virtual Eigen::VectorXd calcError ()
 Desired joint velocity is difference between min-range and current position.
virtual Eigen::MatrixXd calcJacobian ()
 Jacobian is identity because all joints are affected.
virtual bool checkStatus () const
 Termination criteria for mid-joint constraint.
double getWeight ()
 Getter for weight_.
 GoalMidJoint ()
void init (const Constrained_IK *ik)
 Initialize constraint (overrides Constraint::init) Initializes internal variable representing mid-range of each joint Should be called before using class.
void setWeight (double weight)
 setter for weight_
virtual ~GoalMidJoint ()

Protected Attributes

Eigen::VectorXd mid_range_
double weight_

Detailed Description

Constraint to push joint to center of its range.

Definition at line 32 of file goal_mid_joint.h.


Constructor & Destructor Documentation

Definition at line 30 of file goal_mid_joint.cpp.

Definition at line 36 of file goal_mid_joint.h.


Member Function Documentation

Desired joint velocity is difference between min-range and current position.

Returns:
difference in joint position scaled by weight

Implements constrained_ik::Constraint.

Definition at line 34 of file goal_mid_joint.cpp.

Jacobian is identity because all joints are affected.

Returns:
Identity scaled by weight_

Implements constrained_ik::Constraint.

Definition at line 41 of file goal_mid_joint.cpp.

virtual bool constrained_ik::constraints::GoalMidJoint::checkStatus ( ) const [inline, virtual]

Termination criteria for mid-joint constraint.

Returns:
True always (no termination criteria)

Reimplemented from constrained_ik::Constraint.

Definition at line 51 of file goal_mid_joint.h.

Getter for weight_.

Returns:
weight_

Definition at line 56 of file goal_mid_joint.h.

Initialize constraint (overrides Constraint::init) Initializes internal variable representing mid-range of each joint Should be called before using class.

Parameters:
ikPointer to Constrained_IK used for base-class init

Reimplemented from constrained_ik::Constraint.

Definition at line 48 of file goal_mid_joint.cpp.

void constrained_ik::constraints::GoalMidJoint::setWeight ( double  weight) [inline]

setter for weight_

Parameters:
weightValue to set weight_ to

Definition at line 68 of file goal_mid_joint.h.


Member Data Documentation

Definition at line 72 of file goal_mid_joint.h.

Definition at line 68 of file goal_mid_joint.h.


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


constrained_ik
Author(s): Chris Lewis , Jeremy Zoss , Dan Solomon
autogenerated on Mon Oct 6 2014 00:52:27