Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef ROSCPP_MESSAGE_H
00029 #define ROSCPP_MESSAGE_H
00030
00031
00032
00033 #include "ros/macros.h"
00034 #include "ros/assert.h"
00035 #include <string>
00036 #include <string.h>
00037 #include <boost/shared_ptr.hpp>
00038 #include <boost/array.hpp>
00039 #include <stdint.h>
00040
00041
00042 #define ROSCPP_MESSAGE_HAS_DEFINITION
00043
00044 namespace ros
00045 {
00046
00047 typedef std::map<std::string, std::string> M_string;
00048
00052 #if 0
00053 class Message
00054 {
00055 public:
00056 typedef boost::shared_ptr<Message> Ptr;
00057 typedef boost::shared_ptr<Message const> ConstPtr;
00058 Message()
00059 {
00060 }
00061 virtual ~Message()
00062 {
00063 }
00064 virtual const std::string __getDataType() const = 0;
00065 virtual const std::string __getMD5Sum() const = 0;
00066 virtual const std::string __getMessageDefinition() const = 0;
00067 inline static std::string __s_getDataType() { ROS_BREAK(); return std::string(""); }
00068 inline static std::string __s_getMD5Sum() { ROS_BREAK(); return std::string(""); }
00069 inline static std::string __s_getMessageDefinition() { ROS_BREAK(); return std::string(""); }
00070 virtual uint32_t serializationLength() const = 0;
00071 virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const = 0;
00072 virtual uint8_t *deserialize(uint8_t *read_ptr) = 0;
00073 uint32_t __serialized_length;
00074 };
00075
00076 typedef boost::shared_ptr<Message> MessagePtr;
00077 typedef boost::shared_ptr<Message const> MessageConstPtr;
00078 #endif
00079
00080 #define SROS_SERIALIZE_PRIMITIVE(ptr, data) { memcpy(ptr, &data, sizeof(data)); ptr += sizeof(data); }
00081 #define SROS_SERIALIZE_BUFFER(ptr, data, data_size) { if (data_size > 0) { memcpy(ptr, data, data_size); ptr += data_size; } }
00082 #define SROS_DESERIALIZE_PRIMITIVE(ptr, data) { memcpy(&data, ptr, sizeof(data)); ptr += sizeof(data); }
00083 #define SROS_DESERIALIZE_BUFFER(ptr, data, data_size) { if (data_size > 0) { memcpy(data, ptr, data_size); ptr += data_size; } }
00084
00085 }
00086
00087 #endif
00088
roscpp
Author(s): Morgan Quigley, Josh Faust, Brian Gerkey, Troy Straszheim
autogenerated on Tue Mar 7 2017 03:44:47