![]() |
An open-source, flexible 3D physical simulation framework
|
#include <CameraSensor.h>
Public Member Functions | |
CameraSensor (interfaces::ControlCenter *control, const CameraConfigStruct config) | |
~CameraSensor (void) | |
virtual int | getSensorData (interfaces::sReal **data) const |
void | getImage (std::vector< Pixel > &buffer) |
void | getDepthImage (std::vector< DistanceMeasurement > &buffer) |
virtual void | receiveData (const data_broker::DataInfo &info, const data_broker::DataPackage &package, int callbackParam) |
The DataBroker will call this method to notify the receiver of whenever the condition for which the receiver registered occur. More... | |
virtual void | preGraphicsUpdate (void) |
void | getCameraInfo (interfaces::cameraStruct *cs) |
virtual configmaps::ConfigMap | createConfig () const |
const CameraConfigStruct & | getConfig () const |
void | deactivateRendering () |
void | activateRendering () |
unsigned long | getWindowID () const |
![]() | |
BaseNodeSensor (unsigned long id, std::string name) | |
virtual | ~BaseNodeSensor () |
utils::Quaternion | getOrientation () const |
unsigned long | getAttachedNode () |
![]() | |
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 |
![]() | |
SensorInterface (ControlCenter *center) | |
virtual | ~SensorInterface () |
![]() | |
ReceiverInterface () | |
virtual | ~ReceiverInterface () |
![]() | |
GraphicsUpdateInterface (void) | |
virtual | ~GraphicsUpdateInterface (void) |
virtual void | postGraphicsUpdate (void) |
Static Public Member Functions | |
static interfaces::BaseSensor * | instanciate (interfaces::ControlCenter *control, interfaces::BaseConfig *config) |
static interfaces::BaseConfig * | parseConfig (interfaces::ControlCenter *control, configmaps::ConfigMap *config) |
![]() | |
static BaseConfig * | parseConfig (ControlCenter *control, configmaps::ConfigMap *config) |
Private Attributes | |
CameraConfigStruct | config |
interfaces::BaseCameraSensor< double > | depthCamera |
interfaces::BaseCameraSensor< char * > | imageCamera |
unsigned long | cam_window_id |
interfaces::GraphicsWindowInterface * | gw |
interfaces::GraphicsCameraInterface * | gc |
long | dbPosIndices [3] |
long | dbRotIndices [4] |
unsigned int | cam_id |
utils::Mutex | mutex |
int | renderCam |
unsigned long | draw_id |
Additional Inherited Members | |
![]() | |
unsigned long | id |
std::string | name |
unsigned long | updateRate |
![]() | |
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 |
![]() | |
ControlCenter * | control |
Definition at line 97 of file CameraSensor.h.
mars::sim::CameraSensor::CameraSensor | ( | interfaces::ControlCenter * | control, |
const CameraConfigStruct | config | ||
) |
Definition at line 50 of file CameraSensor.cpp.
mars::sim::CameraSensor::~CameraSensor | ( | void | ) |
Definition at line 120 of file CameraSensor.cpp.
void mars::sim::CameraSensor::activateRendering | ( | ) |
Definition at line 233 of file CameraSensor.cpp.
|
virtual |
Reimplemented from mars::interfaces::BaseSensor.
Definition at line 397 of file CameraSensor.cpp.
void mars::sim::CameraSensor::deactivateRendering | ( | ) |
Definition at line 225 of file CameraSensor.cpp.
void mars::sim::CameraSensor::getCameraInfo | ( | interfaces::cameraStruct * | cs | ) |
Definition at line 135 of file CameraSensor.cpp.
|
inline |
Definition at line 123 of file CameraSensor.h.
void mars::sim::CameraSensor::getDepthImage | ( | std::vector< DistanceMeasurement > & | buffer | ) |
Definition at line 154 of file CameraSensor.cpp.
void mars::sim::CameraSensor::getImage | ( | std::vector< Pixel > & | buffer | ) |
Definition at line 143 of file CameraSensor.cpp.
|
virtual |
Reimplemented from mars::interfaces::BaseSensor.
Definition at line 168 of file CameraSensor.cpp.
|
inline |
Definition at line 130 of file CameraSensor.h.
|
static |
Definition at line 43 of file CameraSensor.cpp.
|
static |
Definition at line 292 of file CameraSensor.cpp.
|
virtual |
Reimplemented from mars::interfaces::GraphicsUpdateInterface.
Definition at line 240 of file CameraSensor.cpp.
|
virtual |
The DataBroker will call this method to notify the receiver of whenever the condition for which the receiver registered occur.
info | Information about the DataPackage. |
dataPackage | The DataPackage containing all the data. |
callbackParam | The int the receiver passed during registration. The default (the receiver didn't provide a callbackParam) is 0. This can be used to easily distinguish different registrations. |
Implements mars::data_broker::ReceiverInterface.
Definition at line 264 of file CameraSensor.cpp.
|
private |
Definition at line 141 of file CameraSensor.h.
|
private |
Definition at line 136 of file CameraSensor.h.
|
private |
Definition at line 133 of file CameraSensor.h.
|
private |
Definition at line 139 of file CameraSensor.h.
|
private |
Definition at line 140 of file CameraSensor.h.
|
private |
Definition at line 134 of file CameraSensor.h.
|
private |
Definition at line 144 of file CameraSensor.h.
|
private |
Definition at line 138 of file CameraSensor.h.
|
private |
Definition at line 137 of file CameraSensor.h.
|
private |
Definition at line 135 of file CameraSensor.h.
|
private |
Definition at line 142 of file CameraSensor.h.
|
private |
Definition at line 143 of file CameraSensor.h.