Skip to content

PositionConstraint

Simulate a Position.

Rigid3d

Templates:

  • Rigid3d

Target: SoftRobots

namespace: softrobots::constraint

parents:

  • PositionModel

Data

Name Description Default value
name object name unnamed
printLog if true, emits extra messages at runtime. 0
tags list of the subsets the objet belongs to
bbox this object bounding box
componentState The state of the component among (Dirty, Valid, Undefined, Loading, Invalid). Undefined
listening if true, handle the events, otherwise ignore the events 0
group ID of the group containing this constraint. This ID is used to specify which constraints are solved by which solver, by specifying in each solver which groups of constraints it should handle. 0
constraintIndex Constraint index (first index in the right hand term resolution vector) 0
endTime The SoftRobotsConstraint stops acting after the given value. Use a negative value for infinite SoftRobotsConstraints -1
indices If indices size is lower than target size, some target will not be considered
weight The parameter sets a weight to the minimization. 1 1 1 1 1 1
directions The parameter directions allows to specify the directions in which you want to solve the position.
useDirections The parameter useDirections allows to select the directions in which you want to solve the position. If unspecified, the default values are all true.
delta Distance to target
maxForce Maximum force allowed. If unspecified no maximum value will be considered.
minForce Minimum force allowed. If unspecified no minimum value will be considered.
maxPositiveDisp Maximum displacement in the positive direction. If unspecified no maximum value will be considered.
maxNegativeDisp Maximum displacement in the negative direction. If unspecified no maximum value will be considered.
value Displacement or force to impose.
valueIndex Index of the value (in InputValue vector) that we want to impose If unspecified the default value is {0} 0
valueType displacement = the constraint will impose the displacement provided in data value[valueIndex] force = the constraint will impose the force provided in data value[valueIndex] If unspecified, the default value is displacement displacement
Vector
force Output force. Warning: to get the actual force you should divide this value by dt. 0
displacement Output displacement compared to the initial position. 0
Name Description Destination type name
context Graph Node containing this object (or BaseContext::getDefault() if no graph is used) BaseContext
slaves Sub-objects used internally by this object BaseObject
master nullptr for regular objects, or master object for which this object is one sub-objects BaseObject

Vec2d

Templates:

  • Vec2d

Target: SoftRobots

namespace: softrobots::constraint

parents:

  • PositionModel

Data

Name Description Default value
name object name unnamed
printLog if true, emits extra messages at runtime. 0
tags list of the subsets the objet belongs to
bbox this object bounding box
componentState The state of the component among (Dirty, Valid, Undefined, Loading, Invalid). Undefined
listening if true, handle the events, otherwise ignore the events 0
group ID of the group containing this constraint. This ID is used to specify which constraints are solved by which solver, by specifying in each solver which groups of constraints it should handle. 0
constraintIndex Constraint index (first index in the right hand term resolution vector) 0
endTime The SoftRobotsConstraint stops acting after the given value. Use a negative value for infinite SoftRobotsConstraints -1
indices If indices size is lower than target size, some target will not be considered
weight The parameter sets a weight to the minimization. 1 1
directions The parameter directions allows to specify the directions in which you want to solve the position.
useDirections The parameter useDirections allows to select the directions in which you want to solve the position. If unspecified, the default values are all true.
delta Distance to target
maxForce Maximum force allowed. If unspecified no maximum value will be considered.
minForce Minimum force allowed. If unspecified no minimum value will be considered.
maxPositiveDisp Maximum displacement in the positive direction. If unspecified no maximum value will be considered.
maxNegativeDisp Maximum displacement in the negative direction. If unspecified no maximum value will be considered.
value Displacement or force to impose.
valueIndex Index of the value (in InputValue vector) that we want to impose If unspecified the default value is {0} 0
valueType displacement = the constraint will impose the displacement provided in data value[valueIndex] force = the constraint will impose the force provided in data value[valueIndex] If unspecified, the default value is displacement displacement
Vector
force Output force. Warning: to get the actual force you should divide this value by dt. 0
displacement Output displacement compared to the initial position. 0
Name Description Destination type name
context Graph Node containing this object (or BaseContext::getDefault() if no graph is used) BaseContext
slaves Sub-objects used internally by this object BaseObject
master nullptr for regular objects, or master object for which this object is one sub-objects BaseObject

Vec3d

Templates:

  • Vec3d

Target: SoftRobots

namespace: softrobots::constraint

parents:

  • PositionModel

Data

Name Description Default value
name object name unnamed
printLog if true, emits extra messages at runtime. 0
tags list of the subsets the objet belongs to
bbox this object bounding box
componentState The state of the component among (Dirty, Valid, Undefined, Loading, Invalid). Undefined
listening if true, handle the events, otherwise ignore the events 0
group ID of the group containing this constraint. This ID is used to specify which constraints are solved by which solver, by specifying in each solver which groups of constraints it should handle. 0
constraintIndex Constraint index (first index in the right hand term resolution vector) 0
endTime The SoftRobotsConstraint stops acting after the given value. Use a negative value for infinite SoftRobotsConstraints -1
indices If indices size is lower than target size, some target will not be considered
weight The parameter sets a weight to the minimization. 1 1 1
directions The parameter directions allows to specify the directions in which you want to solve the position.
useDirections The parameter useDirections allows to select the directions in which you want to solve the position. If unspecified, the default values are all true.
delta Distance to target
maxForce Maximum force allowed. If unspecified no maximum value will be considered.
minForce Minimum force allowed. If unspecified no minimum value will be considered.
maxPositiveDisp Maximum displacement in the positive direction. If unspecified no maximum value will be considered.
maxNegativeDisp Maximum displacement in the negative direction. If unspecified no maximum value will be considered.
value Displacement or force to impose.
valueIndex Index of the value (in InputValue vector) that we want to impose If unspecified the default value is {0} 0
valueType displacement = the constraint will impose the displacement provided in data value[valueIndex] force = the constraint will impose the force provided in data value[valueIndex] If unspecified, the default value is displacement displacement
Vector
force Output force. Warning: to get the actual force you should divide this value by dt. 0
displacement Output displacement compared to the initial position. 0
Name Description Destination type name
context Graph Node containing this object (or BaseContext::getDefault() if no graph is used) BaseContext
slaves Sub-objects used internally by this object BaseObject
master nullptr for regular objects, or master object for which this object is one sub-objects BaseObject