|
WSF
|
Defines a list of motions a platform could take. More...
#include <WsfPathList.hpp>
Classes | |
| class | Segment |
| Defines an entity's segment from one state to another over time. More... | |
| class | DynamicsData |
| Contains data about the acceleration and altitude changes during a segment. More... | |
| class | RotationData |
| Contains data about a rotation. More... | |
| class | RotationArcSegment |
| Represents a rotation around an axis, using constant speed / altitude. More... | |
| class | RotationSegment |
| Represents a rotation around an axis. Behaves using values in DynamicsData. More... | |
| class | PauseSegment |
Public Types | |
| typedef std::vector< Segment * > | SegmentList |
Public Member Functions | |
| WsfPathList () | |
| WsfPathList (const WsfPathList &aSrc) | |
| ~WsfPathList () | |
| WsfPathList & | operator= (const WsfPathList &aRhs)=delete |
| void | GetState (double aRelativeSimTime, WsfPathState &aState) |
| Returns the state at a time offset from the beginning of the path. | |
| void | Reset () |
| Removes all segments from the path. | |
| void | Append (Segment *aSegmentPtr) |
| Appends a segment to the path. | |
| void | Append (Segment *aSegmentPtr, const WsfPathState &aEndState) |
| Appends a segment to the path, and sets the related end state. | |
| void | Append (double aDuration, WsfPathList &aPathList) |
| void | PopBack () |
| double | GetDuration () const |
| Returns the sim-time required to move along the path. | |
| double | GetEndStateValid () |
| bool | Empty () const |
| Returns true if the path list is empty. | |
| const WsfPathState & | GetEndState () |
| void | SetEndState (WsfPathState &aState) |
| Sets the final state at the end of the path. | |
| const SegmentList & | GetSegments () const |
| returns the list of segments in the path | |
| void | PrintPath (ut::log::MessageStream &aStream) |
Defines a list of motions a platform could take.
| typedef std::vector<Segment*> WsfPathList::SegmentList |
| WsfPathList::WsfPathList | ( | ) |
Referenced by Append(), operator=(), and WsfPathList().
| WsfPathList::WsfPathList | ( | const WsfPathList & | aSrc | ) |
References WsfPathList().
| WsfPathList::~WsfPathList | ( | ) |
References Reset().
| void WsfPathList::Append | ( | double | aDuration, |
| WsfPathList & | aPathList ) |
| void WsfPathList::Append | ( | Segment * | aSegmentPtr | ) |
Appends a segment to the path.
References WsfPathList::Segment::GetDuration().
Referenced by Append(), WsfPathComputer::ComputePath(), operator=(), WsfPathComputer::RevisePathHitPointAtTime(), WsfPathComputer::Rotate(), and WsfPathComputer::TurnRelative().
| void WsfPathList::Append | ( | Segment * | aSegmentPtr, |
| const WsfPathState & | aEndState ) |
Appends a segment to the path, and sets the related end state.
References Append().
|
inline |
Returns true if the path list is empty.
Referenced by WsfPathComputer::ComputePath(), and WsfPathComputer::RevisePathHitPointAtTime().
| double WsfPathList::GetDuration | ( | ) | const |
Returns the sim-time required to move along the path.
Referenced by GetEndState(), WsfWaypointMover::GetFutureLocationWCS(), operator=(), WsfPathComputer::RevisePathHitPointAtTime(), and WsfPathComputer::TurnRelative().
| const WsfPathState & WsfPathList::GetEndState | ( | ) |
Returns the state at the end of the path Not valid when Empty()
References GetDuration().
Referenced by WsfPathComputer::ComputePath(), WsfWaypointMover::GetFutureLocationWCS(), GetState(), WsfPathComputer::Rotate(), and WsfPathComputer::TurnRelative().
|
inline |
|
inline |
returns the list of segments in the path
Referenced by WsfPathComputer::RevisePathHitPointAtTime().
| void WsfPathList::GetState | ( | double | aRelativeSimTime, |
| WsfPathState & | aState ) |
Returns the state at a time offset from the beginning of the path.
References GetEndState().
Referenced by WsfWaypointMover::GetFutureLocationWCS(), operator=(), and WsfPathComputer::RevisePathHitPointAtTime().
|
delete |
References Append(), GetDuration(), GetState(), PopBack(), Reset(), and WsfPathList().
| void WsfPathList::PopBack | ( | ) |
Referenced by operator=(), and WsfPathComputer::RevisePathHitPointAtTime().
| void WsfPathList::PrintPath | ( | ut::log::MessageStream & | aStream | ) |
References WsfPathList::Segment::Print().
| void WsfPathList::Reset | ( | ) |
Removes all segments from the path.
Referenced by operator=(), and ~WsfPathList().
|
inline |
Sets the final state at the end of the path.