ed_sensor_integration
Public Member Functions | Private Attributes | List of all members
BeamModel Class Reference

#include <beam_model.h>

Public Member Functions

 BeamModel ()
 
 BeamModel (double w, unsigned int num_beams)
 
int CalculateBeam (double x, double depth) const
 
geo::Vec2 CalculatePoint (int i, double depth) const
 
void CalculatePoints (const std::vector< double > &ranges, std::vector< geo::Vec2 > &points)
 
float fx () const
 
void initialize (double w, unsigned int num_beams)
 
unsigned int num_beams () const
 
const std::vector< geo::Vec2 > & rays () const
 
void RenderModel (const std::vector< std::vector< geo::Vec2 > > &contours, const geo::Transform2 &pose, int identifier, std::vector< double > &ranges, std::vector< int > &identifiers) const
 

Private Attributes

double fx_
 
unsigned int half_num_beams_
 
std::vector< geo::Vec2rays_
 

Detailed Description

Definition at line 8 of file beam_model.h.

Constructor & Destructor Documentation

◆ BeamModel() [1/2]

BeamModel::BeamModel ( )

Definition at line 5 of file beam_model.cpp.

◆ BeamModel() [2/2]

BeamModel::BeamModel ( double  w,
unsigned int  num_beams 
)

Definition at line 9 of file beam_model.cpp.

Member Function Documentation

◆ CalculateBeam()

int BeamModel::CalculateBeam ( double  x,
double  depth 
) const
inline

Definition at line 19 of file beam_model.h.

◆ CalculatePoint()

geo::Vec2 BeamModel::CalculatePoint ( int  i,
double  depth 
) const
inline

Definition at line 24 of file beam_model.h.

◆ CalculatePoints()

void BeamModel::CalculatePoints ( const std::vector< double > &  ranges,
std::vector< geo::Vec2 > &  points 
)
inline

Definition at line 29 of file beam_model.h.

◆ fx()

float BeamModel::fx ( ) const
inline

Definition at line 46 of file beam_model.h.

◆ initialize()

void BeamModel::initialize ( double  w,
unsigned int  num_beams 
)

Definition at line 16 of file beam_model.cpp.

◆ num_beams()

unsigned int BeamModel::num_beams ( ) const
inline

Definition at line 45 of file beam_model.h.

◆ rays()

const std::vector<geo::Vec2>& BeamModel::rays ( ) const
inline

Definition at line 48 of file beam_model.h.

◆ RenderModel()

void BeamModel::RenderModel ( const std::vector< std::vector< geo::Vec2 > > &  contours,
const geo::Transform2 pose,
int  identifier,
std::vector< double > &  ranges,
std::vector< int > &  identifiers 
) const

Definition at line 28 of file beam_model.cpp.

Member Data Documentation

◆ fx_

double BeamModel::fx_
private

Definition at line 52 of file beam_model.h.

◆ half_num_beams_

unsigned int BeamModel::half_num_beams_
private

Definition at line 53 of file beam_model.h.

◆ rays_

std::vector<geo::Vec2> BeamModel::rays_
private

Definition at line 54 of file beam_model.h.


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