Endorob  1.4
A C++ Robotics library by P. Berthet-Rayne
Snake_Path Class Reference

Snake Path Class. More...

#include <endorob.h>

Public Member Functions

 Snake_Path ()
 
 ~Snake_Path ()
 
void push_back (const Vec3d &point)
 
void push_back (const Vec3d &point, const double &weight)
 
void pop_back ()
 
uint size ()
 
void set_weight (const double &weight, const int &index=-1)
 
Vec get_weights_vector (const uint &size)
 
double get_weight (const uint &index)
 
void clear ()
 
Vec3doperator[] (uint x)
 

Protected Attributes

std::vector< Vec3d, Eigen::aligned_allocator< Vec3d > > m_path
 
std::vector< double > m_weights
 

Detailed Description

Snake Path Class.

This class is used to create the path to follow with weights for each points

Definition at line 380 of file endorob.h.

Constructor & Destructor Documentation

◆ Snake_Path()

Snake_Path::Snake_Path ( )

Definition at line 4616 of file endorob.cpp.

◆ ~Snake_Path()

Snake_Path::~Snake_Path ( )

Definition at line 4619 of file endorob.cpp.

Member Function Documentation

◆ clear()

void Snake_Path::clear ( )

Definition at line 4672 of file endorob.cpp.

◆ get_weight()

double Snake_Path::get_weight ( const uint index)

Definition at line 4667 of file endorob.cpp.

◆ get_weights_vector()

Vec Snake_Path::get_weights_vector ( const uint size)

Definition at line 4652 of file endorob.cpp.

◆ operator[]()

Vec3d& Snake_Path::operator[] ( uint  x)
inline

Definition at line 395 of file endorob.h.

◆ pop_back()

void Snake_Path::pop_back ( )

Definition at line 4636 of file endorob.cpp.

◆ push_back() [1/2]

void Snake_Path::push_back ( const Vec3d point)

Definition at line 4625 of file endorob.cpp.

◆ push_back() [2/2]

void Snake_Path::push_back ( const Vec3d point,
const double &  weight 
)

Definition at line 4630 of file endorob.cpp.

◆ set_weight()

void Snake_Path::set_weight ( const double &  weight,
const int &  index = -1 
)

Definition at line 4647 of file endorob.cpp.

◆ size()

uint Snake_Path::size ( )

Definition at line 4642 of file endorob.cpp.

Member Data Documentation

◆ m_path

std::vector<Vec3d, Eigen::aligned_allocator<Vec3d> > Snake_Path::m_path
protected

Definition at line 400 of file endorob.h.

◆ m_weights

std::vector<double> Snake_Path::m_weights
protected

Definition at line 401 of file endorob.h.


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