#include <DrawMeshHandler.h>
Public Member Functions | |
DrawMeshHandler () | |
bool | endOfSimulation () |
unsigned int | getObjectType () const |
void | handleSimulation () |
void | synchronize () |
~DrawMeshHandler () | |
Static Public Attributes | |
static const unsigned int | DATA_DIFFUSE = DrawMeshHandler::DATA_WIDTH+1 |
Custom data used to specify surface diffuse color component. | |
static const unsigned int | DATA_EMISSION = DrawMeshHandler::DATA_SPECULAR+1 |
Custom data used to specify surface emissive color component. | |
static const unsigned int | DATA_MAIN = boost::hash<std::string>()("DrawMeshHandler") |
Main custom data. Also used to specify drawing frequency. | |
static const unsigned int | DATA_SPECULAR = DrawMeshHandler::DATA_DIFFUSE+1 |
Custom data used to specify surface specular color component. | |
static const unsigned int | DATA_TRANSPARENCY = DrawMeshHandler::DATA_EMISSION+1 |
Custom data used to specify surface transparency. | |
static const unsigned int | DATA_WIDTH = DrawMeshHandler::DATA_MAIN+1 |
Custom data used to specify line width. | |
Protected Member Functions | |
void | _initialize () |
void | msgCallback (shape_msgs::MeshConstPtr msg) |
void | registerCustomVariables () const |
Protected Attributes | |
simFloat | _diffuse [3] |
Mesh line width. | |
simInt | _drawingObject |
simFloat | _emission [3] |
Mesh specular color. | |
simFloat | _frequency |
shape_msgs::MeshConstPtr | _lastMsg |
simFloat | _lastTime |
simFloat | _specular [3] |
Mesh diffuse color. | |
ros::Subscriber | _sub |
simInt | _transparency |
Mesh emission color. | |
simInt | _width |
Definition at line 9 of file DrawMeshHandler.h.
Definition at line 18 of file DrawMeshHandler.cpp.
Definition at line 31 of file DrawMeshHandler.cpp.
void DrawMeshHandler::_initialize | ( | ) | [protected, virtual] |
Implements GenericObjectHandler.
Definition at line 115 of file DrawMeshHandler.cpp.
bool DrawMeshHandler::endOfSimulation | ( | ) | [virtual] |
Reimplemented from GenericObjectHandler.
Definition at line 64 of file DrawMeshHandler.cpp.
unsigned int DrawMeshHandler::getObjectType | ( | ) | const [virtual] |
Implements GenericObjectHandler.
Definition at line 34 of file DrawMeshHandler.cpp.
void DrawMeshHandler::handleSimulation | ( | ) | [virtual] |
Implements GenericObjectHandler.
Definition at line 72 of file DrawMeshHandler.cpp.
void DrawMeshHandler::msgCallback | ( | shape_msgs::MeshConstPtr | msg | ) | [protected] |
Callback for velocity commands.
Definition at line 250 of file DrawMeshHandler.cpp.
void DrawMeshHandler::registerCustomVariables | ( | ) | const [protected] |
Register custom lua variables for use in Lua scripts
Definition at line 254 of file DrawMeshHandler.cpp.
void DrawMeshHandler::synchronize | ( | ) | [virtual] |
Reimplemented from GenericObjectHandler.
Definition at line 38 of file DrawMeshHandler.cpp.
simFloat DrawMeshHandler::_diffuse[3] [protected] |
Mesh line width.
Definition at line 86 of file DrawMeshHandler.h.
simInt DrawMeshHandler::_drawingObject [protected] |
Drawing object handle
Definition at line 82 of file DrawMeshHandler.h.
simFloat DrawMeshHandler::_emission[3] [protected] |
Mesh specular color.
Definition at line 88 of file DrawMeshHandler.h.
simFloat DrawMeshHandler::_frequency [protected] |
Drawing frequency
Definition at line 77 of file DrawMeshHandler.h.
shape_msgs::MeshConstPtr DrawMeshHandler::_lastMsg [protected] |
Last received message.
Definition at line 62 of file DrawMeshHandler.h.
simFloat DrawMeshHandler::_lastTime [protected] |
Simulation time of the last drawing.
Definition at line 72 of file DrawMeshHandler.h.
simFloat DrawMeshHandler::_specular[3] [protected] |
Mesh diffuse color.
Definition at line 87 of file DrawMeshHandler.h.
ros::Subscriber DrawMeshHandler::_sub [protected] |
Subscriber for receiving line points.
Definition at line 57 of file DrawMeshHandler.h.
simInt DrawMeshHandler::_transparency [protected] |
Mesh emission color.
Definition at line 89 of file DrawMeshHandler.h.
simInt DrawMeshHandler::_width [protected] |
Definition at line 85 of file DrawMeshHandler.h.
const unsigned int DrawMeshHandler::DATA_DIFFUSE = DrawMeshHandler::DATA_WIDTH+1 [static] |
Custom data used to specify surface diffuse color component.
Definition at line 37 of file DrawMeshHandler.h.
const unsigned int DrawMeshHandler::DATA_EMISSION = DrawMeshHandler::DATA_SPECULAR+1 [static] |
Custom data used to specify surface emissive color component.
Definition at line 39 of file DrawMeshHandler.h.
const unsigned int DrawMeshHandler::DATA_MAIN = boost::hash<std::string>()("DrawMeshHandler") [static] |
Main custom data. Also used to specify drawing frequency.
Definition at line 35 of file DrawMeshHandler.h.
const unsigned int DrawMeshHandler::DATA_SPECULAR = DrawMeshHandler::DATA_DIFFUSE+1 [static] |
Custom data used to specify surface specular color component.
Definition at line 38 of file DrawMeshHandler.h.
const unsigned int DrawMeshHandler::DATA_TRANSPARENCY = DrawMeshHandler::DATA_EMISSION+1 [static] |
Custom data used to specify surface transparency.
Definition at line 40 of file DrawMeshHandler.h.
const unsigned int DrawMeshHandler::DATA_WIDTH = DrawMeshHandler::DATA_MAIN+1 [static] |
Custom data used to specify line width.
Definition at line 36 of file DrawMeshHandler.h.