Class ROSImageTexture

Class Documentation

class ROSImageTexture

Minimal helper to convert sensor_msgs::Image into an Ogre texture. Supports BGR8 and MONO8 (others are preprocessed before update()).

Public Functions

ROSImageTexture()
~ROSImageTexture()
void clear()
bool update(const sensor_msgs::msg::Image::ConstSharedPtr &image)
void ensure_texture_created()
inline Ogre::TexturePtr getTexture() const
inline uint32_t width() const
inline uint32_t height() const

Public Static Functions

static Ogre::PixelFormat getOgrePixelFormat(const std::string &encoding)