Privacy
An open-source, flexible 3D physical simulation framework
mars::interfaces::BasePolarIntersectionSensor Class Reference

#include <sensor_bases.h>

Public Member Functions

 BasePolarIntersectionSensor (unsigned long id, std::string name, int cols, int rows, double angleX, double angleY, double maxDistance=std::numeric_limits< double >::infinity())
 
virtual ~BasePolarIntersectionSensor ()
 
virtual int getSensorData (double **data) const
 
- Public Member Functions inherited from mars::interfaces::BaseNodeSensor
 BaseNodeSensor (unsigned long id, std::string name)
 
virtual ~BaseNodeSensor ()
 
utils::Quaternion getOrientation () const
 
unsigned long getAttachedNode ()
 
- Public Member Functions inherited from mars::interfaces::BaseSensor
 BaseSensor ()
 
virtual ~BaseSensor ()
 
 BaseSensor (unsigned long id, std::string name)
 
unsigned long getID () const
 
const std::string getName () const
 
virtual int getAsciiData (char *data) const
 
void getCoreExchange (core_objects_exchange *obj) const
 
virtual configmaps::ConfigMap createConfig () const
 
- Public Member Functions inherited from mars::interfaces::BaseArraySensor< double >
 BaseArraySensor (int cols, int rows, int channels=1)
 
virtual ~BaseArraySensor ()
 
const std::vector< double > getData () const
 
const int & getCols () const
 
const int & getRows () const
 
const int & getChannels () const
 
double & operator[] (const int &index)
 
virtual void resize (int cols, int rows, int channels=1)
 

Public Attributes

double stepX
 
double stepY
 
double maxDistance
 
- Public Attributes inherited from mars::interfaces::BaseSensor
unsigned long id
 
std::string name
 
unsigned long updateRate
 

Additional Inherited Members

- Static Public Member Functions inherited from mars::interfaces::BaseSensor
static BaseConfigparseConfig (ControlCenter *control, configmaps::ConfigMap *config)
 
- Protected Attributes inherited from mars::interfaces::BaseNodeSensor
unsigned long attached_node
 
bool calcAcceletaion
 
bool calcSpeed
 
bool calcPosition
 
bool calcRotationSpeed
 
bool calcOrientation
 
utils::Vector acceleration
 
utils::Vector speed
 
utils::Vector position
 
utils::Vector rotationSpeed
 
utils::Quaternion orientation
 
- Protected Attributes inherited from mars::interfaces::BaseArraySensor< double >
int cols
 
int rows
 
int channels
 
std::vector< double > data
 

Detailed Description

Definition at line 229 of file sensor_bases.h.

Constructor & Destructor Documentation

◆ BasePolarIntersectionSensor()

mars::interfaces::BasePolarIntersectionSensor::BasePolarIntersectionSensor ( unsigned long  id,
std::string  name,
int  cols,
int  rows,
double  angleX,
double  angleY,
double  maxDistance = std::numeric_limits<double>::infinity() 
)
inline

Definition at line 232 of file sensor_bases.h.

◆ ~BasePolarIntersectionSensor()

virtual mars::interfaces::BasePolarIntersectionSensor::~BasePolarIntersectionSensor ( )
inlinevirtual

Definition at line 246 of file sensor_bases.h.

Member Function Documentation

◆ getSensorData()

virtual int mars::interfaces::BasePolarIntersectionSensor::getSensorData ( double **  data) const
inlinevirtual

Reimplemented from mars::interfaces::BaseSensor.

Reimplemented in mars::sim::RotatingRaySensor, and mars::sim::RaySensor.

Definition at line 248 of file sensor_bases.h.

Member Data Documentation

◆ maxDistance

double mars::interfaces::BasePolarIntersectionSensor::maxDistance

Definition at line 258 of file sensor_bases.h.

◆ stepX

double mars::interfaces::BasePolarIntersectionSensor::stepX

Definition at line 252 of file sensor_bases.h.

◆ stepY

double mars::interfaces::BasePolarIntersectionSensor::stepY

Definition at line 257 of file sensor_bases.h.


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