![]() |
An open-source, flexible 3D physical simulation framework
|
#include <RaySensor.h>
Public Member Functions | |
RaySensor (interfaces::ControlCenter *control, RayConfig config) | |
~RaySensor (void) | |
std::vector< double > | getSensorData () const |
int | getSensorData (double **) const |
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 | update (std::vector< interfaces::draw_item > *drawItems) |
This is the update function that updates the position of the vertices of all draw_item structs contained in drawItems. More... | |
virtual configmaps::ConfigMap | createConfig () const |
const RayConfig & | getConfig () const |
![]() | |
BasePolarIntersectionSensor (unsigned long id, std::string name, int cols, int rows, double angleX, double angleY, double maxDistance=std::numeric_limits< double >::infinity()) | |
virtual | ~BasePolarIntersectionSensor () |
![]() | |
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 |
![]() | |
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) |
![]() | |
SensorInterface (ControlCenter *center) | |
virtual | ~SensorInterface () |
![]() | |
ReceiverInterface () | |
virtual | ~ReceiverInterface () |
![]() | |
virtual | ~DrawInterface () |
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 | |
RayConfig | config |
std::vector< utils::Vector > | directions |
bool | have_update |
long | positionIndices [3] |
long | rotationIndices [4] |
Additional Inherited Members | |
![]() | |
double | stepX |
double | stepY |
double | maxDistance |
![]() | |
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 |
![]() | |
int | cols |
int | rows |
int | channels |
std::vector< double > | data |
![]() | |
ControlCenter * | control |
Definition at line 71 of file RaySensor.h.
mars::sim::RaySensor::RaySensor | ( | interfaces::ControlCenter * | control, |
RayConfig | config | ||
) |
Definition at line 55 of file RaySensor.cpp.
mars::sim::RaySensor::~RaySensor | ( | void | ) |
Definition at line 130 of file RaySensor.cpp.
|
virtual |
Reimplemented from mars::interfaces::BaseSensor.
Definition at line 249 of file RaySensor.cpp.
const RayConfig & mars::sim::RaySensor::getConfig | ( | ) | const |
Definition at line 269 of file RaySensor.cpp.
std::vector< double > mars::sim::RaySensor::getSensorData | ( | ) | const |
Definition at line 137 of file RaySensor.cpp.
|
virtual |
Reimplemented from mars::interfaces::BasePolarIntersectionSensor.
Definition at line 146 of file RaySensor.cpp.
|
static |
Definition at line 49 of file RaySensor.cpp.
|
static |
Definition at line 206 of file RaySensor.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 154 of file RaySensor.cpp.
|
virtual |
This is the update function that updates the position of the vertices of all draw_item structs contained in drawItems.
Implements mars::interfaces::DrawInterface.
Definition at line 184 of file RaySensor.cpp.
|
private |
Definition at line 97 of file RaySensor.h.
|
private |
Definition at line 98 of file RaySensor.h.
|
private |
Definition at line 99 of file RaySensor.h.
|
private |
Definition at line 101 of file RaySensor.h.
|
private |
Definition at line 102 of file RaySensor.h.