bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
bitrl::utils::trajectory::WaypointTrajectory< LinkType > Class Template Reference

A container that represents a collection of way points linked together via a LinkType The LinkType defines how smooth the trajectory will look like. More...

#include <waypoint_trajectory.h>

Public Types

typedef LinkType link_type
 
typedef link_type::w_point_type w_point_type
 
typedef std::vector< link_type >::iterator link_iterator
 point iteration
 
typedef std::vector< link_type >::const_iterator const_link_iterator
 

Public Member Functions

 WaypointTrajectory ()
 Constructor.
 
 WaypointTrajectory (uint_t n)
 Constructor.
 
std::pair< real_t, link_typedistance (const w_point_type &p) const
 Computes the minimum distance of the given point from the trajectory.
 
uint_t size () const
 How many waypoints the pah has.
 
void reserve (uint_t n)
 Reserve space for waypoints.
 
void clear ()
 clear the memory allocated for points and edges
 
bool empty () const
 Returns true if the trajectory is empty.
 
void push (const link_type &link)
 Push a new link.
 
link_typeoperator[] (uint_t i)
 Returns a read/write reference of the i-th link.
 
const link_typeoperator[] (uint_t i) const
 Returns a read reference of the i-th link.
 
void resize (uint_t n)
 Resize the underlying links.
 
link_iterator begin ()
 Raw node iteration.
 
link_iterator end ()
 
const_link_iterator begin () const
 Raw node iteration.
 
const_link_iterator end () const
 

Detailed Description

template<typename LinkType>
class bitrl::utils::trajectory::WaypointTrajectory< LinkType >

A container that represents a collection of way points linked together via a LinkType The LinkType defines how smooth the trajectory will look like.

Member Typedef Documentation

◆ const_link_iterator

template<typename LinkType >
typedef std::vector<link_type>::const_iterator bitrl::utils::trajectory::WaypointTrajectory< LinkType >::const_link_iterator

◆ link_iterator

template<typename LinkType >
typedef std::vector<link_type>::iterator bitrl::utils::trajectory::WaypointTrajectory< LinkType >::link_iterator

point iteration

◆ link_type

◆ w_point_type

template<typename LinkType >
typedef link_type::w_point_type bitrl::utils::trajectory::WaypointTrajectory< LinkType >::w_point_type

Constructor & Destructor Documentation

◆ WaypointTrajectory() [1/2]

Constructor.

◆ WaypointTrajectory() [2/2]

template<typename LinkType >
bitrl::utils::trajectory::WaypointTrajectory< LinkType >::WaypointTrajectory ( uint_t  n)
explicit

Constructor.

Member Function Documentation

◆ begin() [1/2]

Raw node iteration.

◆ begin() [2/2]

Raw node iteration.

◆ clear()

clear the memory allocated for points and edges

◆ distance()

Computes the minimum distance of the given point from the trajectory.

◆ empty()

Returns true if the trajectory is empty.

◆ end() [1/2]

◆ end() [2/2]

◆ operator[]() [1/2]

Returns a read/write reference of the i-th link.

◆ operator[]() [2/2]

Returns a read reference of the i-th link.

◆ push()

Push a new link.

◆ reserve()

Reserve space for waypoints.

◆ resize()

Resize the underlying links.

◆ size()

How many waypoints the pah has.


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