29 #ifndef BLOB_SHAPE_SHIFTER_H 30 #define BLOB_SHAPE_SHIFTER_H 54 const std::string&
msg_def = std::string(),
const std::string&
latching = std::string());
65 template<
typename Stream>
66 void write(Stream& stream)
const;
68 template<
typename Stream>
69 void read(Stream& stream);
72 uint32_t
size()
const;
95 template <
typename ContainerAllocator>
105 namespace message_traits {
116 static const char*
value() {
return "*"; }
125 static const char*
value() {
return "*"; }
137 namespace serialization
143 template<
typename Stream>
148 template<
typename Stream>
170 typedef std::map<std::string, std::string> map_t;
172 params.
message->__connection_header = shmap;
173 params.
message->morph(md5, datatype, msg_def, latching);
192 template<
typename Stream>
198 template<
typename Stream>
205 std::copy(stream.getData(), stream.getData() + stream.getLength(), buffer->begin());
211 #endif // BLOB_SHAPE_SHIFTER_H static const char * value()
static const char * value()
static void notify(const PreDeserializeParams< blob::ShapeShifter > ¶ms)
boost::function< void(const SingleSubscriberPublisher &)> SubscriberStatusCallback
static const char * value(const blob::ShapeShifter &m)
boost::shared_ptr< std::map< std::string, std::string > > __connection_header
static const char * value(const blob::ShapeShifter &m)
static const char * value(const blob::ShapeShifter &m)
std::string const & getMD5Sum() const
static void write(Stream &stream, const blob::ShapeShifter &m)
static void read(Stream &stream, blob::ShapeShifter &m)
std::string const & getDataType() const
boost::shared_ptr< ShapeShifter const > ShapeShifterConstPtr
uint32_t size() const
Return the size of the serialized message.
boost::shared_ptr< ShapeShifter const > ConstPtr
boost::shared_ptr< ShapeShifter > Ptr
void write(Stream &stream) const
Write serialized message contents out to a stream.
std::vector< value_type > Buffer
boost::shared_ptr< M > instantiate() const
static void stream(Stream &s, const std::string &indent, const M &value)
std::ostream & operator<<(std::ostream &s, const ::blob::Blob_< ContainerAllocator > &v)
ShapeShifter & morph(const std::string &md5sum, const std::string &datatype, const std::string &msg_def=std::string(), const std::string &latching=std::string())
static uint32_t serializedLength(const blob::ShapeShifter &m)
const value_type * end() const
boost::shared_ptr< M > message
void set(const void *data, size_type size)
const Blob & blob() const
boost::shared_ptr< ShapeShifter > ShapeShifterPtr
const value_type * begin() const
ShapeShifter asMessage() const
boost::shared_ptr< M > instantiate() const
Call to try instantiating as a particular type.
std::string const & getMessageDefinition() const
boost::shared_ptr< std::map< std::string, std::string > > connection_header
void read(Stream &stream)
ros::Publisher advertise(ros::NodeHandle &nh, const std::string &topic, uint32_t queue_size_, bool latch=false, const ros::SubscriberStatusCallback &connect_cb=ros::SubscriberStatusCallback()) const