Go to the documentation of this file.
35 #ifndef TOPIC_TOOLS_SHAPE_SHIFTER_H
36 #define TOPIC_TOOLS_SHAPE_SHIFTER_H
65 static bool uses_old_API_;
69 virtual ~ShapeShifter();
72 std::string
const& getDataType()
const;
73 std::string
const& getMD5Sum()
const;
74 std::string
const& getMessageDefinition()
const;
76 void morph(
const std::string& md5sum,
const std::string& datatype,
const std::string& msg_def,
77 const std::string& latching);
88 template<
typename Stream>
89 void write(Stream& stream)
const;
91 template<
typename Stream>
92 void read(Stream& stream);
95 uint32_t size()
const;
99 std::string md5,
datatype, msg_def, latching;
102 std::vector<uint8_t> msgBuf;
110 namespace message_traits {
121 static const char*
value() {
return "*"; }
130 static const char*
value() {
return "*"; }
142 namespace serialization
148 template<
typename Stream>
153 template<
typename Stream>
199 if (ros::message_traits::datatype<M>() !=
getDataType())
202 if (ros::message_traits::md5sum<M>() !=
getMD5Sum())
216 template<
typename Stream>
222 template<
typename Stream>
229 msgBuf.resize(stream.getLength());
230 memcpy(
msgBuf.data(), stream.getData(), stream.getLength());
void deserialize(Stream &stream, boost::array< T, N > &t)
boost::function< void(const SingleSubscriberPublisher &)> SubscriberStatusCallback
boost::shared_ptr< M > message
boost::shared_ptr< std::map< std::string, std::string > > connection_header
Exception(const std::string &what)
topic_tools
Author(s): Morgan Quigley, Brian Gerkey, Dirk Thomas
, Jacob Perron
autogenerated on Sat Sep 14 2024 03:00:05