Classes | Public Member Functions | Protected Member Functions | Protected Attributes
constrained_ik::Constraint Class Reference

Base class for IK-solver Constraints Specify relationship between joint velocities and constraint "error". More...

#include <constraint.h>

Inheritance diagram for constrained_ik::Constraint:
Inheritance graph
[legend]

List of all members.

Classes

struct  ConstraintData
 This structure is to be used by all constraints to store specific data that needs to get updated every iteration of the solver. More...

Public Member Functions

virtual
constrained_ik::ConstraintResults 
evalConstraint (const SolverState &state) const =0
 Pure definition for calculating constraint error, jacobian & status.
virtual void init (const Constrained_IK *ik)
 Initialize constraint and should be called by any inheriting classes.
virtual void loadParameters (const XmlRpc::XmlRpcValue &constraint_xml)
 Load constraint parameters from XmlRpc::XmlRpcValue.
void setDebug (bool debug=true)
 set debug mode

Protected Member Functions

virtual int numJoints () const
 Returns the number of joints.

Protected Attributes

bool debug_
const Constrained_IKik_
bool initialized_

Detailed Description

Base class for IK-solver Constraints Specify relationship between joint velocities and constraint "error".

Definition at line 48 of file constraint.h.


Member Function Documentation

virtual void constrained_ik::Constraint::init ( const Constrained_IK ik) [inline, virtual]

Initialize constraint and should be called by any inheriting classes.

Parameters:
ikPointer to Constrained_IK

Reimplemented in constrained_ik::constraints::AvoidObstacles, constrained_ik::constraints::AvoidJointLimits, constrained_ik::constraints::JointVelLimits, constrained_ik::constraints::GoalMidJoint, and constrained_ik::ConstraintGroup.

Definition at line 84 of file constraint.h.

virtual void constrained_ik::Constraint::loadParameters ( const XmlRpc::XmlRpcValue constraint_xml) [inline, virtual]
int constrained_ik::Constraint::numJoints ( ) const [protected, virtual]

Returns the number of joints.

Returns:
number of joints

Definition at line 37 of file constraint.cpp.

void constrained_ik::Constraint::setDebug ( bool  debug = true) [inline]

set debug mode

Parameters:
debugValue to set debug_ to (defaults to true)

Definition at line 96 of file constraint.h.


Member Data Documentation

Provide control over if certain print statements are output

Definition at line 100 of file constraint.h.

Pointer to parent solver

Definition at line 101 of file constraint.h.

True if solver is intialized, otherwise false

Definition at line 99 of file constraint.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:45