$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_object_manipulation/doc_stacks/2013-03-05_12-10-38.333207/pr2_object_manipulation/manipulation/pr2_object_manipulation_msgs/msg/IMGUIAdvancedOptions.msg */ 00002 #ifndef PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_IMGUIADVANCEDOPTIONS_H 00003 #define PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_IMGUIADVANCEDOPTIONS_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_object_manipulation_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct IMGUIAdvancedOptions_ { 00022 typedef IMGUIAdvancedOptions_<ContainerAllocator> Type; 00023 00024 IMGUIAdvancedOptions_() 00025 : reactive_grasping(false) 00026 , reactive_force(false) 00027 , reactive_place(false) 00028 , lift_steps(0) 00029 , retreat_steps(0) 00030 , lift_direction_choice(0) 00031 , desired_approach(0) 00032 , min_approach(0) 00033 , max_contact_force(0.0) 00034 { 00035 } 00036 00037 IMGUIAdvancedOptions_(const ContainerAllocator& _alloc) 00038 : reactive_grasping(false) 00039 , reactive_force(false) 00040 , reactive_place(false) 00041 , lift_steps(0) 00042 , retreat_steps(0) 00043 , lift_direction_choice(0) 00044 , desired_approach(0) 00045 , min_approach(0) 00046 , max_contact_force(0.0) 00047 { 00048 } 00049 00050 typedef uint8_t _reactive_grasping_type; 00051 uint8_t reactive_grasping; 00052 00053 typedef uint8_t _reactive_force_type; 00054 uint8_t reactive_force; 00055 00056 typedef uint8_t _reactive_place_type; 00057 uint8_t reactive_place; 00058 00059 typedef int32_t _lift_steps_type; 00060 int32_t lift_steps; 00061 00062 typedef int32_t _retreat_steps_type; 00063 int32_t retreat_steps; 00064 00065 typedef int32_t _lift_direction_choice_type; 00066 int32_t lift_direction_choice; 00067 00068 typedef int32_t _desired_approach_type; 00069 int32_t desired_approach; 00070 00071 typedef int32_t _min_approach_type; 00072 int32_t min_approach; 00073 00074 typedef float _max_contact_force_type; 00075 float max_contact_force; 00076 00077 00078 private: 00079 static const char* __s_getDataType_() { return "pr2_object_manipulation_msgs/IMGUIAdvancedOptions"; } 00080 public: 00081 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00082 00083 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00084 00085 private: 00086 static const char* __s_getMD5Sum_() { return "ee2aaab9891f220c6d37172b3a279178"; } 00087 public: 00088 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00089 00090 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00091 00092 private: 00093 static const char* __s_getMessageDefinition_() { return " \n\ 00094 bool reactive_grasping\n\ 00095 bool reactive_force \n\ 00096 bool reactive_place\n\ 00097 int32 lift_steps\n\ 00098 int32 retreat_steps\n\ 00099 int32 lift_direction_choice\n\ 00100 int32 desired_approach\n\ 00101 int32 min_approach\n\ 00102 float32 max_contact_force\n\ 00103 \n\ 00104 "; } 00105 public: 00106 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00107 00108 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00109 00110 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00111 { 00112 ros::serialization::OStream stream(write_ptr, 1000000000); 00113 ros::serialization::serialize(stream, reactive_grasping); 00114 ros::serialization::serialize(stream, reactive_force); 00115 ros::serialization::serialize(stream, reactive_place); 00116 ros::serialization::serialize(stream, lift_steps); 00117 ros::serialization::serialize(stream, retreat_steps); 00118 ros::serialization::serialize(stream, lift_direction_choice); 00119 ros::serialization::serialize(stream, desired_approach); 00120 ros::serialization::serialize(stream, min_approach); 00121 ros::serialization::serialize(stream, max_contact_force); 00122 return stream.getData(); 00123 } 00124 00125 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00126 { 00127 ros::serialization::IStream stream(read_ptr, 1000000000); 00128 ros::serialization::deserialize(stream, reactive_grasping); 00129 ros::serialization::deserialize(stream, reactive_force); 00130 ros::serialization::deserialize(stream, reactive_place); 00131 ros::serialization::deserialize(stream, lift_steps); 00132 ros::serialization::deserialize(stream, retreat_steps); 00133 ros::serialization::deserialize(stream, lift_direction_choice); 00134 ros::serialization::deserialize(stream, desired_approach); 00135 ros::serialization::deserialize(stream, min_approach); 00136 ros::serialization::deserialize(stream, max_contact_force); 00137 return stream.getData(); 00138 } 00139 00140 ROS_DEPRECATED virtual uint32_t serializationLength() const 00141 { 00142 uint32_t size = 0; 00143 size += ros::serialization::serializationLength(reactive_grasping); 00144 size += ros::serialization::serializationLength(reactive_force); 00145 size += ros::serialization::serializationLength(reactive_place); 00146 size += ros::serialization::serializationLength(lift_steps); 00147 size += ros::serialization::serializationLength(retreat_steps); 00148 size += ros::serialization::serializationLength(lift_direction_choice); 00149 size += ros::serialization::serializationLength(desired_approach); 00150 size += ros::serialization::serializationLength(min_approach); 00151 size += ros::serialization::serializationLength(max_contact_force); 00152 return size; 00153 } 00154 00155 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> > Ptr; 00156 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> const> ConstPtr; 00157 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00158 }; // struct IMGUIAdvancedOptions 00159 typedef ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<std::allocator<void> > IMGUIAdvancedOptions; 00160 00161 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions> IMGUIAdvancedOptionsPtr; 00162 typedef boost::shared_ptr< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions const> IMGUIAdvancedOptionsConstPtr; 00163 00164 00165 template<typename ContainerAllocator> 00166 std::ostream& operator<<(std::ostream& s, const ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> & v) 00167 { 00168 ros::message_operations::Printer< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> >::stream(s, "", v); 00169 return s;} 00170 00171 } // namespace pr2_object_manipulation_msgs 00172 00173 namespace ros 00174 { 00175 namespace message_traits 00176 { 00177 template<class ContainerAllocator> struct IsMessage< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> > : public TrueType {}; 00178 template<class ContainerAllocator> struct IsMessage< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> const> : public TrueType {}; 00179 template<class ContainerAllocator> 00180 struct MD5Sum< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> > { 00181 static const char* value() 00182 { 00183 return "ee2aaab9891f220c6d37172b3a279178"; 00184 } 00185 00186 static const char* value(const ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> &) { return value(); } 00187 static const uint64_t static_value1 = 0xee2aaab9891f220cULL; 00188 static const uint64_t static_value2 = 0x6d37172b3a279178ULL; 00189 }; 00190 00191 template<class ContainerAllocator> 00192 struct DataType< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> > { 00193 static const char* value() 00194 { 00195 return "pr2_object_manipulation_msgs/IMGUIAdvancedOptions"; 00196 } 00197 00198 static const char* value(const ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> &) { return value(); } 00199 }; 00200 00201 template<class ContainerAllocator> 00202 struct Definition< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> > { 00203 static const char* value() 00204 { 00205 return " \n\ 00206 bool reactive_grasping\n\ 00207 bool reactive_force \n\ 00208 bool reactive_place\n\ 00209 int32 lift_steps\n\ 00210 int32 retreat_steps\n\ 00211 int32 lift_direction_choice\n\ 00212 int32 desired_approach\n\ 00213 int32 min_approach\n\ 00214 float32 max_contact_force\n\ 00215 \n\ 00216 "; 00217 } 00218 00219 static const char* value(const ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> &) { return value(); } 00220 }; 00221 00222 template<class ContainerAllocator> struct IsFixedSize< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> > : public TrueType {}; 00223 } // namespace message_traits 00224 } // namespace ros 00225 00226 namespace ros 00227 { 00228 namespace serialization 00229 { 00230 00231 template<class ContainerAllocator> struct Serializer< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> > 00232 { 00233 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00234 { 00235 stream.next(m.reactive_grasping); 00236 stream.next(m.reactive_force); 00237 stream.next(m.reactive_place); 00238 stream.next(m.lift_steps); 00239 stream.next(m.retreat_steps); 00240 stream.next(m.lift_direction_choice); 00241 stream.next(m.desired_approach); 00242 stream.next(m.min_approach); 00243 stream.next(m.max_contact_force); 00244 } 00245 00246 ROS_DECLARE_ALLINONE_SERIALIZER; 00247 }; // struct IMGUIAdvancedOptions_ 00248 } // namespace serialization 00249 } // namespace ros 00250 00251 namespace ros 00252 { 00253 namespace message_operations 00254 { 00255 00256 template<class ContainerAllocator> 00257 struct Printer< ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> > 00258 { 00259 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_object_manipulation_msgs::IMGUIAdvancedOptions_<ContainerAllocator> & v) 00260 { 00261 s << indent << "reactive_grasping: "; 00262 Printer<uint8_t>::stream(s, indent + " ", v.reactive_grasping); 00263 s << indent << "reactive_force: "; 00264 Printer<uint8_t>::stream(s, indent + " ", v.reactive_force); 00265 s << indent << "reactive_place: "; 00266 Printer<uint8_t>::stream(s, indent + " ", v.reactive_place); 00267 s << indent << "lift_steps: "; 00268 Printer<int32_t>::stream(s, indent + " ", v.lift_steps); 00269 s << indent << "retreat_steps: "; 00270 Printer<int32_t>::stream(s, indent + " ", v.retreat_steps); 00271 s << indent << "lift_direction_choice: "; 00272 Printer<int32_t>::stream(s, indent + " ", v.lift_direction_choice); 00273 s << indent << "desired_approach: "; 00274 Printer<int32_t>::stream(s, indent + " ", v.desired_approach); 00275 s << indent << "min_approach: "; 00276 Printer<int32_t>::stream(s, indent + " ", v.min_approach); 00277 s << indent << "max_contact_force: "; 00278 Printer<float>::stream(s, indent + " ", v.max_contact_force); 00279 } 00280 }; 00281 00282 00283 } // namespace message_operations 00284 } // namespace ros 00285 00286 #endif // PR2_OBJECT_MANIPULATION_MSGS_MESSAGE_IMGUIADVANCEDOPTIONS_H 00287