Paints the current LRF measurements. More...
#include <NewLaserDataPainter.h>
Public Member Functions | |
NewLaserDataPainter () | |
The constructor. | |
virtual void | paint (float next2DLayer) |
Paint everything using OpenGL. | |
void | updateData (const sensor_msgs::LaserScan::ConstPtr &msg) |
~NewLaserDataPainter () | |
The destructor. | |
Private Attributes | |
bool | m_FirstScan |
flag for initialization on first received laser scan | |
unsigned int | m_NumLaserPoints |
number of measurement points per laser scan | |
float | m_RangeMax |
maximum scanner range | |
std::vector< float > | m_Ranges |
measurement ranges | |
float | m_ScaleFactor |
scale factor for improved visualization | |
std::vector< BaseLib::Math::Vec3f > | m_UnitLaserDirections |
lookup-table for angles | |
std::vector< BaseLib::Math::Vec3f > | m_WorldPoints |
Process an incoming message. |
Paints the current LRF measurements.
Definition at line 27 of file NewLaserDataPainter.h.
The constructor.
The destructor.
virtual void NewLaserDataPainter::paint | ( | float | next2DLayer | ) | [virtual] |
Paint everything using OpenGL.
Implements PainterPlugin.
void NewLaserDataPainter::updateData | ( | const sensor_msgs::LaserScan::ConstPtr & | msg | ) |
bool NewLaserDataPainter::m_FirstScan [private] |
flag for initialization on first received laser scan
Definition at line 60 of file NewLaserDataPainter.h.
unsigned int NewLaserDataPainter::m_NumLaserPoints [private] |
number of measurement points per laser scan
Definition at line 58 of file NewLaserDataPainter.h.
float NewLaserDataPainter::m_RangeMax [private] |
maximum scanner range
Definition at line 56 of file NewLaserDataPainter.h.
std::vector<float> NewLaserDataPainter::m_Ranges [private] |
measurement ranges
Definition at line 54 of file NewLaserDataPainter.h.
float NewLaserDataPainter::m_ScaleFactor [private] |
scale factor for improved visualization
Definition at line 64 of file NewLaserDataPainter.h.
std::vector<BaseLib::Math::Vec3f> NewLaserDataPainter::m_UnitLaserDirections [private] |
lookup-table for angles
Definition at line 62 of file NewLaserDataPainter.h.
std::vector<BaseLib::Math::Vec3f> NewLaserDataPainter::m_WorldPoints [private] |
Process an incoming message.
laser data as 3D points in world coordinates
Definition at line 52 of file NewLaserDataPainter.h.