00001
00002 #ifndef PR2_IMAGE_SNAPSHOT_RECORDER_MESSAGE_IMAGESNAPSHOTGOAL_H
00003 #define PR2_IMAGE_SNAPSHOT_RECORDER_MESSAGE_IMAGESNAPSHOTGOAL_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace pr2_image_snapshot_recorder
00015 {
00016 template <class ContainerAllocator>
00017 struct ImageSnapshotGoal_ : public ros::Message
00018 {
00019 typedef ImageSnapshotGoal_<ContainerAllocator> Type;
00020
00021 ImageSnapshotGoal_()
00022 : topic_name()
00023 , num_images(0)
00024 , output_file_name()
00025 {
00026 }
00027
00028 ImageSnapshotGoal_(const ContainerAllocator& _alloc)
00029 : topic_name(_alloc)
00030 , num_images(0)
00031 , output_file_name(_alloc)
00032 {
00033 }
00034
00035 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _topic_name_type;
00036 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > topic_name;
00037
00038 typedef int32_t _num_images_type;
00039 int32_t num_images;
00040
00041 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _output_file_name_type;
00042 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > output_file_name;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "pr2_image_snapshot_recorder/ImageSnapshotGoal"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00049
00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00051
00052 private:
00053 static const char* __s_getMD5Sum_() { return "13e4842bc6386877d90e53523f6d94ba"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00056
00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00058
00059 private:
00060 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00061 string topic_name # Topic name, must be of sensor_msgs/Image\n\
00062 int32 num_images # Set <0 to record until prempted\n\
00063 string output_file_name # Default: /hwlog/TOPIC_NAME_DATE_TIME.bag\n\
00064 \n\
00065 "; }
00066 public:
00067 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00068
00069 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00070
00071 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00072 {
00073 ros::serialization::OStream stream(write_ptr, 1000000000);
00074 ros::serialization::serialize(stream, topic_name);
00075 ros::serialization::serialize(stream, num_images);
00076 ros::serialization::serialize(stream, output_file_name);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00081 {
00082 ros::serialization::IStream stream(read_ptr, 1000000000);
00083 ros::serialization::deserialize(stream, topic_name);
00084 ros::serialization::deserialize(stream, num_images);
00085 ros::serialization::deserialize(stream, output_file_name);
00086 return stream.getData();
00087 }
00088
00089 ROS_DEPRECATED virtual uint32_t serializationLength() const
00090 {
00091 uint32_t size = 0;
00092 size += ros::serialization::serializationLength(topic_name);
00093 size += ros::serialization::serializationLength(num_images);
00094 size += ros::serialization::serializationLength(output_file_name);
00095 return size;
00096 }
00097
00098 typedef boost::shared_ptr< ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> > Ptr;
00099 typedef boost::shared_ptr< ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> const> ConstPtr;
00100 };
00101 typedef ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<std::allocator<void> > ImageSnapshotGoal;
00102
00103 typedef boost::shared_ptr< ::pr2_image_snapshot_recorder::ImageSnapshotGoal> ImageSnapshotGoalPtr;
00104 typedef boost::shared_ptr< ::pr2_image_snapshot_recorder::ImageSnapshotGoal const> ImageSnapshotGoalConstPtr;
00105
00106
00107 template<typename ContainerAllocator>
00108 std::ostream& operator<<(std::ostream& s, const ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> & v)
00109 {
00110 ros::message_operations::Printer< ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> >::stream(s, "", v);
00111 return s;}
00112
00113 }
00114
00115 namespace ros
00116 {
00117 namespace message_traits
00118 {
00119 template<class ContainerAllocator>
00120 struct MD5Sum< ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> > {
00121 static const char* value()
00122 {
00123 return "13e4842bc6386877d90e53523f6d94ba";
00124 }
00125
00126 static const char* value(const ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> &) { return value(); }
00127 static const uint64_t static_value1 = 0x13e4842bc6386877ULL;
00128 static const uint64_t static_value2 = 0xd90e53523f6d94baULL;
00129 };
00130
00131 template<class ContainerAllocator>
00132 struct DataType< ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> > {
00133 static const char* value()
00134 {
00135 return "pr2_image_snapshot_recorder/ImageSnapshotGoal";
00136 }
00137
00138 static const char* value(const ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> &) { return value(); }
00139 };
00140
00141 template<class ContainerAllocator>
00142 struct Definition< ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> > {
00143 static const char* value()
00144 {
00145 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00146 string topic_name # Topic name, must be of sensor_msgs/Image\n\
00147 int32 num_images # Set <0 to record until prempted\n\
00148 string output_file_name # Default: /hwlog/TOPIC_NAME_DATE_TIME.bag\n\
00149 \n\
00150 ";
00151 }
00152
00153 static const char* value(const ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> &) { return value(); }
00154 };
00155
00156 }
00157 }
00158
00159 namespace ros
00160 {
00161 namespace serialization
00162 {
00163
00164 template<class ContainerAllocator> struct Serializer< ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> >
00165 {
00166 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00167 {
00168 stream.next(m.topic_name);
00169 stream.next(m.num_images);
00170 stream.next(m.output_file_name);
00171 }
00172
00173 ROS_DECLARE_ALLINONE_SERIALIZER;
00174 };
00175 }
00176 }
00177
00178 namespace ros
00179 {
00180 namespace message_operations
00181 {
00182
00183 template<class ContainerAllocator>
00184 struct Printer< ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> >
00185 {
00186 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_image_snapshot_recorder::ImageSnapshotGoal_<ContainerAllocator> & v)
00187 {
00188 s << indent << "topic_name: ";
00189 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.topic_name);
00190 s << indent << "num_images: ";
00191 Printer<int32_t>::stream(s, indent + " ", v.num_images);
00192 s << indent << "output_file_name: ";
00193 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.output_file_name);
00194 }
00195 };
00196
00197
00198 }
00199 }
00200
00201 #endif // PR2_IMAGE_SNAPSHOT_RECORDER_MESSAGE_IMAGESNAPSHOTGOAL_H
00202