Package org.robwork.sdurw_kinematics
Class QState
- java.lang.Object
-
- org.robwork.sdurw_kinematics.QState
-
public class QState extends java.lang.ObjectThe configuration state of a work cell.
The configuration state contains state data values for all
valid StateData in a StateStructure. The validity is defined by the
StateSetup.
See Frame::getTransform() for the calculation of the relative transform
of a frame for a given configuration state.
Configuration states can be freely copied and assigned.
The configuration state is a part of the StateStructure state (see
State).
-
-
Constructor Summary
Constructors Constructor Description QState()Constructs an empty QStateQState(long cPtr, boolean cMemoryOwn)QState(StateSetupPtr setup)A configuration state.
This constructor is not available for use outside of RobWork.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description QStateadd(QState b)Addition of configuration states.QStateassign(QState rhs)Assignment operator.voiddelete()QStatedivide(double scale)Scaling of a configuration state by divisiondoubleget(long i)static longgetCPtr(QState obj)StateSetupPtrgetStateSetup()returns the StateSetupQStatemultiply(double scale)Scaling of a configuration state by a scalar.QStatenegate()Unary minus operator.voidset(long i, double d)longsize()The dimension of the state vector.QStatesubtract(QState b)Subtraction of configuration states.java.lang.StringtoString()
-
-
-
Constructor Detail
-
QState
public QState(long cPtr, boolean cMemoryOwn)
-
QState
public QState()
Constructs an empty QState
-
QState
public QState(StateSetupPtr setup)
A configuration state.
This constructor is not available for use outside of RobWork. Instead
your configuration states should be constructed via the copy
constructor.
- Parameters:
setup- [in] The shared setup for configuration states.
-
-
Method Detail
-
getCPtr
public static long getCPtr(QState obj)
-
delete
public void delete()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
multiply
public QState multiply(double scale)
Scaling of a configuration state by a scalar.
-
divide
public QState divide(double scale)
Scaling of a configuration state by division
-
negate
public QState negate()
Unary minus operator.
-
getStateSetup
public StateSetupPtr getStateSetup()
returns the StateSetup
-
assign
public QState assign(QState rhs)
Assignment operator.- Parameters:
rhs- [in] the other QState to assign to this.- Returns:
- a reference to this QState.
-
size
public long size()
The dimension of the state vector.
-
get
public double get(long i)
-
set
public void set(long i, double d)
-
-