Parasol Planning Library (PPL)
DynamicObstacle Class Reference

#include <DynamicObstacle.h>

Public Member Functions

Construction
 DynamicObstacle (Robot *const _robot, std::vector< Cfg > _path)
 
 DynamicObstacle (XMLNode &_node, MPProblem *const _problem)
 
 ~DynamicObstacle ()
 
Accessors
RobotGetRobot () const noexcept
 
const std::vector< CfgGetPath () const noexcept
 
const size_t GetStartTime () const noexcept
 
void SetStartTime (size_t _start)
 Set the obstacle start time. More...
 

Detailed Description

A model of a dynamic obstacle with a known trajectory.

The obstacle body and motion properties are modeled as a robot. The trajectory is interpreted as a sequence of configurations which the obstacle will assume starting from a specified start time and continuing at a rate of one Cfg per time step.

Constructor & Destructor Documentation

◆ DynamicObstacle() [1/2]

DynamicObstacle::DynamicObstacle ( Robot *const  _robot,
std::vector< Cfg _path 
)

Construct a dynamic obstacle.

Parameters
_robotThe robot model for the obstacle.
_pathThe obstacle's known trajectory.

◆ DynamicObstacle() [2/2]

DynamicObstacle::DynamicObstacle ( XMLNode _node,
MPProblem *const  _problem 
)

Construct a dynamic obstacle from an XML node.

Parameters
_nodeThe XML node to parse.
_problemThe owning problem.

◆ ~DynamicObstacle()

DynamicObstacle::~DynamicObstacle ( )
default

Member Function Documentation

◆ GetPath()

const std::vector< Cfg > DynamicObstacle::GetPath ( ) const
noexcept

Get the obstacle's path.

Returns
The obstacle's path

◆ GetRobot()

Robot * DynamicObstacle::GetRobot ( ) const
noexcept

Get the obstacle's robot model.

Returns
The robot model

◆ GetStartTime()

const size_t DynamicObstacle::GetStartTime ( ) const
noexcept

Get the obstacle start time.

Returns
The obstacle's start time

◆ SetStartTime()

void DynamicObstacle::SetStartTime ( size_t  _start)

Set the obstacle start time.


The documentation for this class was generated from the following files: