terrain_estimator
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
terrain_estimator::TerrainClassification Struct Reference

#include <TerrainConfiguration.hpp>

Public Member Functions

const base::Vector3d toRGB () const
 convert TerrainProbability to rgb value More...
 
double jointProbability (const TerrainClassification &tc)
 calculate joint Probability of visual and proprioceptive terrain estimation More...
 

Static Public Member Functions

static TerrainClassification fromRGB (const base::Vector3d &color)
 convert an RGB color value into a terrain classification object More...
 

Public Attributes

base::Time time
 
int wheel_idx
 
std::vector< TerrainProbabilityterrain
 

Detailed Description

Parameters
time- the time at the end of the step where the slip was detected
wheel_idx- the wheel index where the terrain was classified
terrain- the terrain type with the probability

Member Function Documentation

static TerrainClassification terrain_estimator::TerrainClassification::fromRGB ( const base::Vector3d &  color)
inlinestatic

convert an RGB color value into a terrain classification object

This is simple for the currently available three classes. Once we extend these classes, more elaborate encoding can be used.

Parameters
colorrgb color information that represents the likelihood of terrain
double terrain_estimator::TerrainClassification::jointProbability ( const TerrainClassification tc)
inline

calculate joint Probability of visual and proprioceptive terrain estimation

This function will calculate the joint probability of visual and proprioceptive terrain estimation

const base::Vector3d terrain_estimator::TerrainClassification::toRGB ( ) const
inline

convert TerrainProbability to rgb value

This function will encode a terrain probability as an rgb value. This is mainly so that it can be processed in maps more easiliy.

Member Data Documentation

std::vector<TerrainProbability> terrain_estimator::TerrainClassification::terrain
base::Time terrain_estimator::TerrainClassification::time
int terrain_estimator::TerrainClassification::wheel_idx

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