Inheritance diagram for ImagePublisher:
Definition at line 14 of file ImagePublisher.H.
Public Member Functions | |
ImagePublisher (std::string name) | |
~ImagePublisher () | |
void | initOperator () |
All Capability registration calls should be made in this operator, along with any other initialization. | |
void | runOperator (WURDE::WURDEImage image, WURDE::WURDEImage stereo) |
The main method for the class if the operator is stereo. | |
void | runOperator (WURDE::WURDEImage theimage) |
The main method for the class if the operator is monocular. | |
void | quitOperator () |
Cleanup function. | |
Protected Attributes | |
WURDE::ImageSource | m_imagesource |
bool | m_published |
ImagePublisher | ( | std::string | name | ) |
Definition at line 11 of file ImagePublisher.cpp.
References ImagePublisher::m_imagesource, and VisionOperator::registerSupplier().
~ImagePublisher | ( | ) |
void initOperator | ( | ) | [virtual] |
All Capability registration calls should be made in this operator, along with any other initialization.
The visionModule will then register the objects with the CommsManager. All WURDE should be members of the class and *not* allocated dynamically.
Implements VisionOperator.
Definition at line 15 of file ImagePublisher.cpp.
References ImageTransportInfoStruct::compression, WURDE::COMPRESSION_UNCOMPRESSED, ImageTransportInfoStruct::format, WURDE::FORMAT_CHAR_111_YUV24, WURDE::FORMAT_CHAR_11_YUV422, WURDE::FORMAT_CHAR_1_GRAY, WURDE::g_globalConfiguration, WURDEConfiguration::getModuleOption(), WURDEConfiguration::haveModuleOption(), ImageTransportInfoStruct::height, ImageTransport::info, VisionOperator::m_format, ImagePublisher::m_imagesource, VisionOperator::m_name, ImagePublisher::m_published, VisionOperator::m_state, VisionOperator::m_stereo, ImageSource::setCompression(), ImageSource::setFormat(), Writable::setValueAndLock(), WURDE::STATE_RUN, ImageTransportInfoStruct::userChannels, and ImageTransportInfoStruct::width.
void runOperator | ( | WURDE::WURDEImage | image, | |
WURDE::WURDEImage | stereo | |||
) | [inline, virtual] |
The main method for the class if the operator is stereo.
All work should be done within this function, which will be called each loop. If the operator is monocular, this method should return without doing any work.
Implements VisionOperator.
Definition at line 20 of file ImagePublisher.H.
void runOperator | ( | WURDE::WURDEImage | theimage | ) | [virtual] |
The main method for the class if the operator is monocular.
All work should be done within this function, which will be called each loop. If the operator is stereo, this method should return without doing any work.
Implements VisionOperator.
Definition at line 55 of file ImagePublisher.cpp.
References WURDE::g_debug(), ImageTransport::getNextRequest(), ImagePublisher::m_imagesource, ImagePublisher::m_published, WURDE::MESSAGE_PING, ImageTransportInfoStruct::mType, Capability::newRequest(), ImageSource::publishImage(), ImageTransport::publishInfo(), and ImageTransport::requests.
void quitOperator | ( | ) | [virtual] |
Cleanup function.
Free any memory you've allocated here.
Implements VisionOperator.
Definition at line 79 of file ImagePublisher.cpp.
References ImageTransport::data, ImageTransportDataStruct::image, ImageTransportDataStruct::imagesize, ImagePublisher::m_imagesource, ImagePublisher::m_published, VisionOperator::m_state, and WURDE::STATE_QUIT.
WURDE::ImageSource m_imagesource [protected] |
Definition at line 25 of file ImagePublisher.H.
Referenced by ImagePublisher::ImagePublisher(), ImagePublisher::initOperator(), ImagePublisher::quitOperator(), and ImagePublisher::runOperator().
bool m_published [protected] |
Definition at line 26 of file ImagePublisher.H.
Referenced by ImagePublisher::initOperator(), ImagePublisher::quitOperator(), and ImagePublisher::runOperator().