Loading...
Searching...
No Matches
ConstraintGeneration.Constraint Class Reference
Public Member Functions | |
| __init__ (self, name, n) | |
| __getitem__ (self, index) | |
| getVars (self) | |
| getConstraints (self) | |
| addConstraint (self, f) | |
| jacobian (self) | |
| funcCode (self) | |
| jacCode (self) | |
| toCode (self) | |
Public Attributes | |
| name_ = name | |
| list | variables_ = [sp.Symbol("x[{:d}]".format(i), real=True) for i in range(n)] |
| list | constraints_ = [] |
Detailed Description
Definition at line 24 of file ConstraintGeneration.py.
Constructor & Destructor Documentation
◆ __init__()
| ConstraintGeneration.Constraint.__init__ | ( | self, | |
| name, | |||
| n ) |
Definition at line 26 of file ConstraintGeneration.py.
Member Function Documentation
◆ __getitem__()
| ConstraintGeneration.Constraint.__getitem__ | ( | self, | |
| index ) |
Return the index^th variable.
Definition at line 32 of file ConstraintGeneration.py.
◆ addConstraint()
| ConstraintGeneration.Constraint.addConstraint | ( | self, | |
| f ) |
Add some symbolic function of variables to the list of constraints.
Definition at line 44 of file ConstraintGeneration.py.
◆ funcCode()
| ConstraintGeneration.Constraint.funcCode | ( | self | ) |
Definition at line 52 of file ConstraintGeneration.py.
◆ getConstraints()
| ConstraintGeneration.Constraint.getConstraints | ( | self | ) |
Create a constraint function vector.
Definition at line 40 of file ConstraintGeneration.py.
◆ getVars()
| ConstraintGeneration.Constraint.getVars | ( | self | ) |
Create a variable vector.
Definition at line 36 of file ConstraintGeneration.py.
◆ jacCode()
| ConstraintGeneration.Constraint.jacCode | ( | self | ) |
Definition at line 61 of file ConstraintGeneration.py.
◆ jacobian()
| void ompl.base.Constraint.jacobian | ( | self | ) |
Compute the Jacobian of the current list of constraints.
Definition at line 48 of file ConstraintGeneration.py.
◆ toCode()
| ConstraintGeneration.Constraint.toCode | ( | self | ) |
Definition at line 72 of file ConstraintGeneration.py.
Member Data Documentation
◆ constraints_
| ConstraintGeneration.Constraint.constraints_ = [] |
Definition at line 30 of file ConstraintGeneration.py.
◆ name_
| ConstraintGeneration.Constraint.name_ = name |
Definition at line 27 of file ConstraintGeneration.py.
◆ variables_
| ConstraintGeneration.Constraint.variables_ = [sp.Symbol("x[{:d}]".format(i), real=True) for i in range(n)] |
Definition at line 29 of file ConstraintGeneration.py.
The documentation for this class was generated from the following files:
- demos/constraint/ConstraintGeneration.py
- ompl/base/src/Constraint.cpp