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