29 #ifndef CPP_INTROSPECTION_MESSAGE_TEMPLATE_H 30 #define CPP_INTROSPECTION_MESSAGE_TEMPLATE_H 51 bool isSimple()
const {
return ros::message_traits::isSimple<MessageType>(); }
52 bool isFixedSize()
const {
return ros::message_traits::isFixedSize<MessageType>(); }
53 bool hasHeader()
const {
return ros::message_traits::hasHeader<MessageType>(); }
102 template <
typename T>
109 template <
typename T>
116 template <
typename T>
122 template <
typename T>
130 template <
typename T>
135 return ros::serialization::serializeMessage<T>(*x);
138 template <
typename T>
146 template <
typename T>
149 typename MessageType::Ptr x = boost::shared_static_cast<
MessageType>(instance);
157 #endif // CPP_INTROSPECTION_MESSAGE_TEMPLATE_H
VoidPtr deserialize(ros::serialization::IStream &stream, const VoidPtr &instance=VoidPtr()) const
static ros::Time * pointer(M &m)
void serialize(ros::serialization::OStream &stream, const VoidConstPtr &instance=VoidConstPtr()) const
virtual MessagePtr introspect() const
ros::Time * getTimeStamp(const VoidPtr &instance) const
const char * getDataType() const
boost::shared_ptr< void > VoidPtr
virtual ~MessageTemplate()
void serialize(Stream &stream, const T &t)
const char * getMD5Sum() const
static const char * value()
boost::shared_ptr< void const > VoidConstPtr
static const char * value()
static const char * value()
static std::string * pointer(M &m)
std::size_t serializationLength(const VoidConstPtr &instance=VoidConstPtr()) const
const std::type_info & getTypeId() const
uint32_t serializationLength(const T &t)
const char * getDefinition() const
::std_msgs::Header * getHeader(const VoidPtr &instance) const
void deserialize(Stream &stream, T &t)
VoidPtr createInstance() const
std::string * getFrameId(const VoidPtr &instance) const