#include <OMCollisionCostPrediction.h>
|
| OMCollisionCostPrediction (RcsGraph *graph, RcsCollisionMdl *collisionMdl, const ActionModel *actionModel, size_t horizon=10, double maxCollCost=1e4) |
|
virtual | ~OMCollisionCostPrediction () |
|
| OMCollisionCostPrediction (const OMCollisionCostPrediction &)=delete |
|
OMCollisionCostPrediction & | operator= (const OMCollisionCostPrediction &)=delete |
|
| OMCollisionCostPrediction (OMCollisionCostPrediction &&)=delete |
|
OMCollisionCostPrediction & | operator= (OMCollisionCostPrediction &&)=delete |
|
virtual void | computeObservation (double *state, double *velocity, const MatNd *currentAction, double dt) const |
|
virtual void | getLimits (double *minState, double *maxState, double *maxVelocity) const |
|
virtual unsigned int | getStateDim () const |
|
virtual unsigned int | getVelocityDim () const |
|
std::vector< std::string > | getStateNames () const override |
|
virtual | ~ObservationModel () |
|
MatNd * | computeObservation (const MatNd *currentAction, double dt) const |
|
void | computeObservation (MatNd *observation, const MatNd *currentAction, double dt) const |
|
virtual void | reset () |
|
virtual std::vector< std::string > | getVelocityNames () const |
|
virtual void | getMinMax (double *min, double *max) const final |
|
virtual unsigned int | getDim () const final |
|
virtual std::vector< std::string > | getNames () const final |
|
template<typename OM > |
OM * | findModel () |
|
template<typename OM > |
Offsets | findOffsets () |
|
virtual std::vector< ObservationModel * > | getNested () const |
|
| BoxSpaceProvider () |
|
virtual | ~BoxSpaceProvider () |
|
| BoxSpaceProvider (const BoxSpaceProvider &)=delete |
|
BoxSpaceProvider & | operator= (const BoxSpaceProvider &)=delete |
|
| BoxSpaceProvider (BoxSpaceProvider &&)=delete |
|
BoxSpaceProvider & | operator= (BoxSpaceProvider &&)=delete |
|
const BoxSpace * | getSpace () const |
|
Definition at line 41 of file OMCollisionCostPrediction.h.
◆ OMCollisionCostPrediction() [1/3]
Rcs::OMCollisionCostPrediction::OMCollisionCostPrediction |
( |
RcsGraph * |
graph, |
|
|
RcsCollisionMdl * |
collisionMdl, |
|
|
const ActionModel * |
actionModel, |
|
|
size_t |
horizon = 10 , |
|
|
double |
maxCollCost = 1e4 |
|
) |
| |
◆ ~OMCollisionCostPrediction()
Rcs::OMCollisionCostPrediction::~OMCollisionCostPrediction |
( |
| ) |
|
|
virtual |
◆ OMCollisionCostPrediction() [2/3]
◆ OMCollisionCostPrediction() [3/3]
◆ computeObservation()
void Rcs::OMCollisionCostPrediction::computeObservation |
( |
double * |
state, |
|
|
double * |
velocity, |
|
|
const MatNd * |
currentAction, |
|
|
double |
dt |
|
) |
| const |
|
virtual |
Implement to fill the observation vector with the observed values.
- Parameters
-
[out] | state | state observation vector to fill, has getStateDim() elements. |
[out] | velocity | velocity observation vector to fill, has getVelocityDim() elements. |
[in] | currentAction | action in current step. May be NULL if not available. |
[in] | dt | time step since the last observation has been taken |
Implements Rcs::ObservationModel.
Definition at line 78 of file OMCollisionCostPrediction.cpp.
◆ getLimits()
void Rcs::OMCollisionCostPrediction::getLimits |
( |
double * |
minState, |
|
|
double * |
maxState, |
|
|
double * |
maxVelocity |
|
) |
| const |
|
virtual |
Provides the minimum and maximum observable values. Since the velocity is symmetric, only the maximum needs to be provided. The default implementation uses -inf and inf.
- Parameters
-
[out] | minState | minimum state vector to fill, has getStateDim() elements. |
[out] | maxState | maximum state vector to fill, has getStateDim() elements. |
[out] | maxVelocity | maximum velocity vector to fill, has getVelocityDim() elements. |
Reimplemented from Rcs::ObservationModel.
Definition at line 120 of file OMCollisionCostPrediction.cpp.
◆ getStateDim()
unsigned int Rcs::OMCollisionCostPrediction::getStateDim |
( |
| ) |
const |
|
virtual |
◆ getStateNames()
std::vector< std::string > Rcs::OMCollisionCostPrediction::getStateNames |
( |
| ) |
const |
|
overridevirtual |
◆ getVelocityDim()
unsigned int Rcs::OMCollisionCostPrediction::getVelocityDim |
( |
| ) |
const |
|
virtual |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ collisionMdl
RcsCollisionMdl* Rcs::OMCollisionCostPrediction::collisionMdl |
|
private |
◆ horizon
size_t Rcs::OMCollisionCostPrediction::horizon |
|
private |
Time horizon for the predicted collision costs (horizon = 1 mean the current step plus one step ahead)
Definition at line 78 of file OMCollisionCostPrediction.h.
◆ maxCollCost
double Rcs::OMCollisionCostPrediction::maxCollCost |
|
private |
◆ predictActionModel
ActionModel* Rcs::OMCollisionCostPrediction::predictActionModel |
|
private |
◆ predictGraph
RcsGraph* Rcs::OMCollisionCostPrediction::predictGraph |
|
private |
◆ realGraph
RcsGraph* Rcs::OMCollisionCostPrediction::realGraph |
|
private |
The documentation for this class was generated from the following files: