Public Member Functions | Private Member Functions | Private Attributes | List of all members
rviz::ROSImageTexture Class Reference

#include <ros_image_texture.h>

Public Member Functions

void addMessage (const sensor_msgs::Image::ConstPtr &image)
 
void clear ()
 
uint32_t getHeight ()
 
const sensor_msgs::Image::ConstPtr & getImage ()
 
const Ogre::TexturePtr & getTexture ()
 
uint32_t getWidth ()
 
 ROSImageTexture ()
 
void setMedianFrames (unsigned median_frames)
 
void setNormalizeFloatImage (bool normalize, double min=0.0, double max=1.0)
 
bool update ()
 
 ~ROSImageTexture ()
 

Private Member Functions

template<typename T >
void normalize (T *image_data, size_t image_data_size, std::vector< uint8_t > &buffer)
 
double updateMedian (std::deque< double > &buffer, double new_value)
 

Private Attributes

sensor_msgs::Image::ConstPtr current_image_
 
Ogre::Image empty_image_
 
uint32_t height_
 
double max_
 
std::deque< double > max_buffer_
 
unsigned median_frames_
 
double min_
 
std::deque< double > min_buffer_
 
boost::mutex mutex_
 
bool new_image_
 
bool normalize_
 
Ogre::TexturePtr texture_
 
uint32_t width_
 

Detailed Description

Definition at line 57 of file ros_image_texture.h.

Constructor & Destructor Documentation

◆ ROSImageTexture()

rviz::ROSImageTexture::ROSImageTexture ( )

Definition at line 46 of file ros_image_texture.cpp.

◆ ~ROSImageTexture()

rviz::ROSImageTexture::~ROSImageTexture ( )

Definition at line 62 of file ros_image_texture.cpp.

Member Function Documentation

◆ addMessage()

void rviz::ROSImageTexture::addMessage ( const sensor_msgs::Image::ConstPtr &  image)

Definition at line 285 of file ros_image_texture.cpp.

◆ clear()

void rviz::ROSImageTexture::clear ( )

Definition at line 67 of file ros_image_texture.cpp.

◆ getHeight()

uint32_t rviz::ROSImageTexture::getHeight ( )
inline

Definition at line 77 of file ros_image_texture.h.

◆ getImage()

const sensor_msgs::Image::ConstPtr & rviz::ROSImageTexture::getImage ( )

Definition at line 80 of file ros_image_texture.cpp.

◆ getTexture()

const Ogre::TexturePtr& rviz::ROSImageTexture::getTexture ( )
inline

Definition at line 67 of file ros_image_texture.h.

◆ getWidth()

uint32_t rviz::ROSImageTexture::getWidth ( )
inline

Definition at line 73 of file ros_image_texture.h.

◆ normalize()

template<typename T >
void rviz::ROSImageTexture::normalize ( T *  image_data,
size_t  image_data_size,
std::vector< uint8_t > &  buffer 
)
private

Definition at line 115 of file ros_image_texture.cpp.

◆ setMedianFrames()

void rviz::ROSImageTexture::setMedianFrames ( unsigned  median_frames)

Definition at line 87 of file ros_image_texture.cpp.

◆ setNormalizeFloatImage()

void rviz::ROSImageTexture::setNormalizeFloatImage ( bool  normalize,
double  min = 0.0,
double  max = 1.0 
)

Definition at line 106 of file ros_image_texture.cpp.

◆ update()

bool rviz::ROSImageTexture::update ( )

Definition at line 179 of file ros_image_texture.cpp.

◆ updateMedian()

double rviz::ROSImageTexture::updateMedian ( std::deque< double > &  buffer,
double  new_value 
)
private

Definition at line 92 of file ros_image_texture.cpp.

Member Data Documentation

◆ current_image_

sensor_msgs::Image::ConstPtr rviz::ROSImageTexture::current_image_
private

Definition at line 92 of file ros_image_texture.h.

◆ empty_image_

Ogre::Image rviz::ROSImageTexture::empty_image_
private

Definition at line 97 of file ros_image_texture.h.

◆ height_

uint32_t rviz::ROSImageTexture::height_
private

Definition at line 100 of file ros_image_texture.h.

◆ max_

double rviz::ROSImageTexture::max_
private

Definition at line 105 of file ros_image_texture.h.

◆ max_buffer_

std::deque<double> rviz::ROSImageTexture::max_buffer_
private

Definition at line 108 of file ros_image_texture.h.

◆ median_frames_

unsigned rviz::ROSImageTexture::median_frames_
private

Definition at line 106 of file ros_image_texture.h.

◆ min_

double rviz::ROSImageTexture::min_
private

Definition at line 104 of file ros_image_texture.h.

◆ min_buffer_

std::deque<double> rviz::ROSImageTexture::min_buffer_
private

Definition at line 107 of file ros_image_texture.h.

◆ mutex_

boost::mutex rviz::ROSImageTexture::mutex_
private

Definition at line 93 of file ros_image_texture.h.

◆ new_image_

bool rviz::ROSImageTexture::new_image_
private

Definition at line 94 of file ros_image_texture.h.

◆ normalize_

bool rviz::ROSImageTexture::normalize_
private

Definition at line 103 of file ros_image_texture.h.

◆ texture_

Ogre::TexturePtr rviz::ROSImageTexture::texture_
private

Definition at line 96 of file ros_image_texture.h.

◆ width_

uint32_t rviz::ROSImageTexture::width_
private

Definition at line 99 of file ros_image_texture.h.


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


rviz
Author(s): Dave Hershberger, David Gossow, Josh Faust
autogenerated on Sat May 27 2023 02:06:26