Package org.robwork.sdurw_trajectory
Class PathState
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractList<State>
-
- org.robwork.sdurw_kinematics.VectorState
-
- org.robwork.sdurw_trajectory.PathState
-
- All Implemented Interfaces:
java.lang.Iterable<State>
,java.util.Collection<State>
,java.util.List<State>
,java.util.RandomAccess
public class PathState extends VectorState
This is a std::Vector overloaded with some extra constructor functionality
-
-
Constructor Summary
Constructors Constructor Description PathState()
Default constructorPathState(long cnt)
Constructor adding cnt elements.PathState(long cPtr, boolean cMemoryOwn)
PathState(long cnt, State value)
Constructor adding cnt elements with value value.PathState(VectorState v)
Construct Path and copies elements from v
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(SWIGTYPE_p_rw__core__PtrT_rw__trajectory__PathT_rw__kinematics__State_t_t spath)
PathState
assign(VectorState rhs)
Construct Path and copies elements from rhsvoid
delete()
State
elem(long idx)
static long
getCPtr(PathState obj)
int
size()
SWIGTYPE_p_rw__core__PtrT_rw__trajectory__PathT_rw__trajectory__TimedT_rw__kinematics__State_t_t_t
toTimedStatePath(double timeStep)
-
Methods inherited from class org.robwork.sdurw_kinematics.VectorState
add, add, capacity, clear, get, getCPtr, isEmpty, remove, reserve, set
-
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, subList
-
-
-
-
Constructor Detail
-
PathState
public PathState(long cPtr, boolean cMemoryOwn)
-
PathState
public PathState()
Default constructor
-
PathState
public PathState(long cnt)
Constructor adding cnt elements. Objects of type T is added using default
constructor- Parameters:
cnt
- [in] Number of elements in data structure.
-
PathState
public PathState(long cnt, State value)
Constructor adding cnt elements with value value.- Parameters:
cnt
- [in] Number of elements in data structure.value
- [in] Values with which to initialize elements.
-
PathState
public PathState(VectorState v)
Construct Path and copies elements from v- Parameters:
v
- [in] vector to copy data from
-
-
Method Detail
-
getCPtr
public static long getCPtr(PathState obj)
-
delete
public void delete()
- Overrides:
delete
in classVectorState
-
assign
public PathState assign(VectorState rhs)
Construct Path and copies elements from rhs- Parameters:
rhs
- [in] vector to copy data from
-
size
public int size()
- Specified by:
size
in interfacejava.util.Collection<State>
- Specified by:
size
in interfacejava.util.List<State>
- Overrides:
size
in classVectorState
-
elem
public State elem(long idx)
-
append
public void append(SWIGTYPE_p_rw__core__PtrT_rw__trajectory__PathT_rw__kinematics__State_t_t spath)
-
toTimedStatePath
public SWIGTYPE_p_rw__core__PtrT_rw__trajectory__PathT_rw__trajectory__TimedT_rw__kinematics__State_t_t_t toTimedStatePath(double timeStep)
-
-