|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.robotics.engine.clik.ConstraintFunction
public abstract class ConstraintFunction
Interface for the constraint function w(q).
Example
define a constraint class:
public class MyFunctionConstraint extends ConstraintFunction
{
MyFunctionConstraint(double k0, ...)
{
super(k0);
...
}
// Here implement function w(q)
public double function(RVector q)
{
...
}
}
use the class in your application:
public class MyApplication
{
CLIKR clik = new ClikPosJcobianInverse(...);
MyFunctionConstraint w = new MyFunctionConstraint(k0, ...);
...
// pass the class to clik wich computes the velocity constraint as gradient of w(q)
clik.step(pd, pdd, q, qp, w);
}
| Constructor Summary | |
|---|---|
ConstraintFunction(double k0)
|
|
| Method Summary | |
|---|---|
RVector |
compute(RVector q)
Computes the constraint velocity as gradient of function w(q). |
abstract double |
function(RVector q)
Interface for the constraint function w(q). |
double |
getK0()
Gets the velocity constraint gain. |
void |
setK0(double k0)
Sets the velocity constraint gain. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConstraintFunction(double k0)
| Method Detail |
|---|
public final double getK0()
ConstraintVelocity
getK0 in interface ConstraintVelocitypublic final void setK0(double k0)
ConstraintVelocity
setK0 in interface ConstraintVelocityk0 - the gain value to set.public abstract double function(RVector q)
w(q).
q - the joints position.
public final RVector compute(RVector q)
w(q).
compute in interface ConstraintVelocityq - the joints position.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||