Static Public Member Functions
mm_messages::Message< mm_vision_msgs::ImagePtr > Struct Template Reference

#include <image.hpp>

List of all members.

Static Public Member Functions

static mm_vision_msgs::ImagePtr decode (const unsigned char *buffer, const unsigned int &size)
static void encode (const mm_vision_msgs::ImagePtr &s, ByteArray &buffer)

Detailed Description

template<>
struct mm_messages::Message< mm_vision_msgs::ImagePtr >

Definition at line 81 of file image.hpp.


Member Function Documentation

mm_vision_msgs::ImagePtr mm_messages::Message< mm_vision_msgs::ImagePtr >::decode ( const unsigned char *  buffer,
const unsigned int &  size 
) [static]

This deserialises everything into image, filling in all fields except the semantic id (which would be applied externally)

Parameters:
buffer: the buffer directly from socket land.
size: size of the allocated buffer
Returns:
ImagePtr

Definition at line 68 of file image.cpp.

void mm_messages::Message< mm_vision_msgs::ImagePtr >::encode ( const mm_vision_msgs::ImagePtr image,
ByteArray buffer 
) [static]

Serialise it onto a buffer.

We're doing more copies than we need to here. Be good to be able to pass the image's buffer directly to the underlying send command. However that probably isn't possible as it requires a prefixed header and contiguous memory across header and data.

Parameters:
image
buffer

Definition at line 55 of file image.cpp.


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


mm_vision_msgs
Author(s): Daniel Stonier
autogenerated on Sun Jun 7 2015 12:58:21