Privacy
An open-source, flexible 3D physical simulation framework
mars::interfaces::BaseCameraSensor< T > Class Template Reference

#include <sensor_bases.h>

Public Member Functions

 BaseCameraSensor (unsigned long id, std::string name, int cols, int rows, int nChannels, bool depthImage)
 
virtual ~BaseCameraSensor ()
 
bool isDepthImage ()
 
- Public Member Functions inherited from mars::interfaces::BaseArraySensor< T >
 BaseArraySensor (int cols, int rows, int channels=1)
 
virtual ~BaseArraySensor ()
 
const std::vector< T > getData () const
 
const int & getCols () const
 
const int & getRows () const
 
const int & getChannels () const
 
T & operator[] (const int &index)
 
virtual void resize (int cols, int rows, int channels=1)
 

Protected Attributes

bool depthImage
 
unsigned long id
 
std::string name
 
- Protected Attributes inherited from mars::interfaces::BaseArraySensor< T >
int cols
 
int rows
 
int channels
 
std::vector< T > data
 

Detailed Description

template<class T>
class mars::interfaces::BaseCameraSensor< T >

Definition at line 204 of file sensor_bases.h.

Constructor & Destructor Documentation

◆ BaseCameraSensor()

template<class T>
mars::interfaces::BaseCameraSensor< T >::BaseCameraSensor ( unsigned long  id,
std::string  name,
int  cols,
int  rows,
int  nChannels,
bool  depthImage 
)
inline

Definition at line 206 of file sensor_bases.h.

◆ ~BaseCameraSensor()

template<class T>
virtual mars::interfaces::BaseCameraSensor< T >::~BaseCameraSensor ( )
inlinevirtual

Definition at line 214 of file sensor_bases.h.

Member Function Documentation

◆ isDepthImage()

template<class T>
bool mars::interfaces::BaseCameraSensor< T >::isDepthImage ( )
inline

Definition at line 216 of file sensor_bases.h.

Member Data Documentation

◆ depthImage

template<class T>
bool mars::interfaces::BaseCameraSensor< T >::depthImage
protected

Definition at line 222 of file sensor_bases.h.

◆ id

template<class T>
unsigned long mars::interfaces::BaseCameraSensor< T >::id
protected

Definition at line 223 of file sensor_bases.h.

◆ name

template<class T>
std::string mars::interfaces::BaseCameraSensor< T >::name
protected

Definition at line 224 of file sensor_bases.h.


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