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

Constraint to dampen movement by driving joint velocity to zero in each iteration. More...

#include <goal_zero_jvel.h>

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

List of all members.

Public Member Functions

virtual Eigen::VectorXd calcError (const ConstraintData &cdata) const
 Error for this constraint is 0.
virtual Eigen::MatrixXd calcJacobian (const ConstraintData &cdata) const
 Jacobian is identity because all joints are affected.
virtual bool checkStatus (const ConstraintData &cdata) const
 Termination criteria for mid-joint constraint.
constrained_ik::ConstraintResults evalConstraint (const SolverState &state) const override
 see base class for documentation
virtual double getWeight () const
 Getter for weight_.
void loadParameters (const XmlRpc::XmlRpcValue &constraint_xml) override
 see base class for documentation
virtual void setWeight (double weight)
 setter for weight_

Protected Attributes

double weight_
 weights used to scale the jocabian and error

Detailed Description

Constraint to dampen movement by driving joint velocity to zero in each iteration.

Todo:
Need to fix this constraint, it does not appear to be fully implemented.
Examples:
All examples are located here Goal Zero Joint Velocity Constraint Examples

Definition at line 43 of file goal_zero_jvel.h.


Member Function Documentation

Eigen::VectorXd constrained_ik::constraints::GoalZeroJVel::calcError ( const ConstraintData cdata) const [virtual]

Error for this constraint is 0.

Parameters:
cdataThe constraint specific data.
Returns:
nx1 vector of zeros

Definition at line 55 of file goal_zero_jvel.cpp.

Eigen::MatrixXd constrained_ik::constraints::GoalZeroJVel::calcJacobian ( const ConstraintData cdata) const [virtual]

Jacobian is identity because all joints are affected.

Parameters:
cdataThe constraint specific data.
Returns:
Identity scaled by weight_

Definition at line 60 of file goal_zero_jvel.cpp.

virtual bool constrained_ik::constraints::GoalZeroJVel::checkStatus ( const ConstraintData cdata) const [inline, virtual]

Termination criteria for mid-joint constraint.

Parameters:
cdataThe constraint specific data.
Returns:
True always (no termination criteria)

Definition at line 74 of file goal_zero_jvel.h.

virtual double constrained_ik::constraints::GoalZeroJVel::getWeight ( ) const [inline, virtual]

Getter for weight_.

Returns:
weight_

Definition at line 80 of file goal_zero_jvel.h.

virtual void constrained_ik::constraints::GoalZeroJVel::setWeight ( double  weight) [inline, virtual]

setter for weight_

Parameters:
weightValue to set weight_ to

Definition at line 86 of file goal_zero_jvel.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