ompl::control::PathControl Class Reference

Definition of a control path. More...

#include <PathControl.h>

Inheritance diagram for ompl::control::PathControl:
Inheritance graph
[legend]

List of all members.

Public Member Functions

geometric::PathGeometric asGeometric (void) const
 Convert this path into a geometric path (interpolation is performed and then states are copied).
virtual bool check (void) const
 Check if the path is valid.
void interpolate (void)
 Make the path such that all controls are applied for a single time step (computes intermediate states).
virtual double length (void) const
 The path length (sum of control durations).
PathControloperator= (const PathControl &other)
 Assignment operator.
 PathControl (const PathControl &path)
 Copy constructor.
 PathControl (const base::SpaceInformationPtr &si)
 Constructor.
virtual void print (std::ostream &out) const
 Print the path to a stream.
void random (void)
 Set this path to a random segment.
bool randomValid (unsigned int attempts)
 Set this path to a random valid segment. Sample attempts times for valid segments. Returns true on success.
virtual ~PathControl (void)

Public Attributes

std::vector< double > controlDurations
 The duration of the control applied at each state. This array contains one element less than the list of states.
std::vector< Control * > controls
 The control applied at each state. This array contains one element less than the list of states.
std::vector< base::State * > states
 The list of states that make up the path.

Protected Member Functions

void copyFrom (const PathControl &other)
 Copy the content of a path to this one.
void freeMemory (void)
 Free the memory allocated by the path.

Detailed Description

Definition of a control path.

This is the type of path produced when planning with differential constraints.

Definition at line 54 of file PathControl.h.


Constructor & Destructor Documentation

ompl::control::PathControl::PathControl ( const base::SpaceInformationPtr si  ) 

Constructor.

ompl::control::PathControl::PathControl ( const PathControl path  ) 

Copy constructor.

virtual ompl::control::PathControl::~PathControl ( void   )  [inline, virtual]

Definition at line 64 of file PathControl.h.


Member Function Documentation

geometric::PathGeometric ompl::control::PathControl::asGeometric ( void   )  const

Convert this path into a geometric path (interpolation is performed and then states are copied).

virtual bool ompl::control::PathControl::check ( void   )  const [virtual]

Check if the path is valid.

Implements ompl::base::Path.

void ompl::control::PathControl::copyFrom ( const PathControl other  )  [protected]

Copy the content of a path to this one.

void ompl::control::PathControl::freeMemory ( void   )  [protected]

Free the memory allocated by the path.

void ompl::control::PathControl::interpolate ( void   ) 

Make the path such that all controls are applied for a single time step (computes intermediate states).

virtual double ompl::control::PathControl::length ( void   )  const [virtual]

The path length (sum of control durations).

Implements ompl::base::Path.

PathControl& ompl::control::PathControl::operator= ( const PathControl other  ) 

Assignment operator.

virtual void ompl::control::PathControl::print ( std::ostream &  out  )  const [virtual]

Print the path to a stream.

Implements ompl::base::Path.

void ompl::control::PathControl::random ( void   ) 

Set this path to a random segment.

bool ompl::control::PathControl::randomValid ( unsigned int  attempts  ) 

Set this path to a random valid segment. Sample attempts times for valid segments. Returns true on success.


Member Data Documentation

The duration of the control applied at each state. This array contains one element less than the list of states.

Definition at line 100 of file PathControl.h.

The control applied at each state. This array contains one element less than the list of states.

Definition at line 97 of file PathControl.h.

The list of states that make up the path.

Definition at line 94 of file PathControl.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


ompl
Author(s): Ioan Sucan/isucan@rice.edu, Mark Moll/mmoll@rice.edu, Lydia Kavraki/kavraki@rice.edu
autogenerated on Fri Jan 11 09:34:02 2013