Classes | Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
ScanPoint2D Struct Reference

#include <sensor_data.h>

Classes

union  PointData
 

Public Types

enum  PointType { PointType::Polar, PointType::Cartesian }
 

Public Member Functions

double angle () const
 
double factor () const
 
bool is_occupied () const
 
Point2D move_origin (double d_x, double d_y, std::shared_ptr< TrigonometryProvider > tp) const
 
Point2D move_origin (const Point2D &p, std::shared_ptr< TrigonometryProvider > tp) const
 
Point2D move_origin (double d_x, double d_y, double d_angle) const
 
Point2D move_origin (double d_x, double d_y) const
 
double range () const
 
 ScanPoint2D (PointType type, double x_or_range, double y_or_angle, bool is_occ)
 
 ScanPoint2D (double range=0, double ang=0, bool is_occ=true)
 
ScanPoint2Dset_factor (double factor)
 
ScanPoint2D to_cartesian (std::shared_ptr< TrigonometryProvider > tp) const
 
ScanPoint2D to_cartesian (double d_angle=0, double d_range=0) const
 
ScanPoint2D to_polar (double d_x=0, double d_y=0) const
 
double x () const
 
double y () const
 

Static Public Member Functions

static ScanPoint2D make_cartesian (const Point2D &p, bool is_occ)
 
static ScanPoint2D make_polar (double range, double angle, bool is_occ)
 

Private Attributes

PointData _data
 
double _factor
 
bool _is_occupied
 
PointType _type
 

Detailed Description

Definition at line 14 of file sensor_data.h.

Member Enumeration Documentation

Enumerator
Polar 
Cartesian 

Definition at line 16 of file sensor_data.h.

Constructor & Destructor Documentation

ScanPoint2D::ScanPoint2D ( PointType  type,
double  x_or_range,
double  y_or_angle,
bool  is_occ 
)
inline

Definition at line 27 of file sensor_data.h.

ScanPoint2D::ScanPoint2D ( double  range = 0,
double  ang = 0,
bool  is_occ = true 
)
inline

Definition at line 44 of file sensor_data.h.

Member Function Documentation

double ScanPoint2D::angle ( ) const
inline

Definition at line 54 of file sensor_data.h.

double ScanPoint2D::factor ( ) const
inline

Definition at line 75 of file sensor_data.h.

bool ScanPoint2D::is_occupied ( ) const
inline

Definition at line 72 of file sensor_data.h.

static ScanPoint2D ScanPoint2D::make_cartesian ( const Point2D p,
bool  is_occ 
)
inlinestatic

Definition at line 23 of file sensor_data.h.

static ScanPoint2D ScanPoint2D::make_polar ( double  range,
double  angle,
bool  is_occ 
)
inlinestatic

Definition at line 19 of file sensor_data.h.

Point2D ScanPoint2D::move_origin ( double  d_x,
double  d_y,
std::shared_ptr< TrigonometryProvider tp 
) const
inline

Definition at line 83 of file sensor_data.h.

Point2D ScanPoint2D::move_origin ( const Point2D p,
std::shared_ptr< TrigonometryProvider tp 
) const
inline

Definition at line 90 of file sensor_data.h.

Point2D ScanPoint2D::move_origin ( double  d_x,
double  d_y,
double  d_angle 
) const
inline

Definition at line 96 of file sensor_data.h.

Point2D ScanPoint2D::move_origin ( double  d_x,
double  d_y 
) const
inline

Definition at line 103 of file sensor_data.h.

double ScanPoint2D::range ( ) const
inline

Definition at line 47 of file sensor_data.h.

ScanPoint2D& ScanPoint2D::set_factor ( double  factor)
inline

Definition at line 74 of file sensor_data.h.

ScanPoint2D ScanPoint2D::to_cartesian ( std::shared_ptr< TrigonometryProvider tp) const
inline

Definition at line 77 of file sensor_data.h.

ScanPoint2D ScanPoint2D::to_cartesian ( double  d_angle = 0,
double  d_range = 0 
) const
inline

Definition at line 107 of file sensor_data.h.

ScanPoint2D ScanPoint2D::to_polar ( double  d_x = 0,
double  d_y = 0 
) const
inline

Definition at line 115 of file sensor_data.h.

double ScanPoint2D::x ( ) const
inline

Definition at line 60 of file sensor_data.h.

double ScanPoint2D::y ( ) const
inline

Definition at line 66 of file sensor_data.h.

Member Data Documentation

PointData ScanPoint2D::_data
private

Definition at line 134 of file sensor_data.h.

double ScanPoint2D::_factor
private

Definition at line 135 of file sensor_data.h.

bool ScanPoint2D::_is_occupied
private

Definition at line 136 of file sensor_data.h.

PointType ScanPoint2D::_type
private

Definition at line 133 of file sensor_data.h.


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


slam_constructor
Author(s): JetBrains Research, OSLL team
autogenerated on Mon Jun 10 2019 15:08:26