$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-srs_public/doc_stacks/2013-03-05_12-22-34.333426/srs_public/srs_assisted_grasping_msgs/msg/ManualGraspingGoal.msg */ 00002 #ifndef SRS_ASSISTED_GRASPING_MSGS_MESSAGE_MANUALGRASPINGGOAL_H 00003 #define SRS_ASSISTED_GRASPING_MSGS_MESSAGE_MANUALGRASPINGGOAL_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 srs_assisted_grasping_msgs 00019 { 00020 template <class ContainerAllocator> 00021 struct ManualGraspingGoal_ { 00022 typedef ManualGraspingGoal_<ContainerAllocator> Type; 00023 00024 ManualGraspingGoal_() 00025 : grasp_type(0) 00026 , max_force(0.0) 00027 , accept_two_fingers_contact(false) 00028 , do_not_open_fingers(false) 00029 { 00030 } 00031 00032 ManualGraspingGoal_(const ContainerAllocator& _alloc) 00033 : grasp_type(0) 00034 , max_force(0.0) 00035 , accept_two_fingers_contact(false) 00036 , do_not_open_fingers(false) 00037 { 00038 } 00039 00040 typedef uint8_t _grasp_type_type; 00041 uint8_t grasp_type; 00042 00043 typedef float _max_force_type; 00044 float max_force; 00045 00046 typedef uint8_t _accept_two_fingers_contact_type; 00047 uint8_t accept_two_fingers_contact; 00048 00049 typedef uint8_t _do_not_open_fingers_type; 00050 uint8_t do_not_open_fingers; 00051 00052 00053 private: 00054 static const char* __s_getDataType_() { return "srs_assisted_grasping_msgs/ManualGraspingGoal"; } 00055 public: 00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00057 00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00059 00060 private: 00061 static const char* __s_getMD5Sum_() { return "9ab9620ff244d7283f96379a16476d1e"; } 00062 public: 00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00064 00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00066 00067 private: 00068 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00069 # goal\n\ 00070 uint8 grasp_type\n\ 00071 float32 max_force\n\ 00072 bool accept_two_fingers_contact\n\ 00073 bool do_not_open_fingers\n\ 00074 \n\ 00075 "; } 00076 public: 00077 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00078 00079 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00080 00081 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00082 { 00083 ros::serialization::OStream stream(write_ptr, 1000000000); 00084 ros::serialization::serialize(stream, grasp_type); 00085 ros::serialization::serialize(stream, max_force); 00086 ros::serialization::serialize(stream, accept_two_fingers_contact); 00087 ros::serialization::serialize(stream, do_not_open_fingers); 00088 return stream.getData(); 00089 } 00090 00091 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00092 { 00093 ros::serialization::IStream stream(read_ptr, 1000000000); 00094 ros::serialization::deserialize(stream, grasp_type); 00095 ros::serialization::deserialize(stream, max_force); 00096 ros::serialization::deserialize(stream, accept_two_fingers_contact); 00097 ros::serialization::deserialize(stream, do_not_open_fingers); 00098 return stream.getData(); 00099 } 00100 00101 ROS_DEPRECATED virtual uint32_t serializationLength() const 00102 { 00103 uint32_t size = 0; 00104 size += ros::serialization::serializationLength(grasp_type); 00105 size += ros::serialization::serializationLength(max_force); 00106 size += ros::serialization::serializationLength(accept_two_fingers_contact); 00107 size += ros::serialization::serializationLength(do_not_open_fingers); 00108 return size; 00109 } 00110 00111 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> > Ptr; 00112 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> const> ConstPtr; 00113 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00114 }; // struct ManualGraspingGoal 00115 typedef ::srs_assisted_grasping_msgs::ManualGraspingGoal_<std::allocator<void> > ManualGraspingGoal; 00116 00117 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ManualGraspingGoal> ManualGraspingGoalPtr; 00118 typedef boost::shared_ptr< ::srs_assisted_grasping_msgs::ManualGraspingGoal const> ManualGraspingGoalConstPtr; 00119 00120 00121 template<typename ContainerAllocator> 00122 std::ostream& operator<<(std::ostream& s, const ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> & v) 00123 { 00124 ros::message_operations::Printer< ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> >::stream(s, "", v); 00125 return s;} 00126 00127 } // namespace srs_assisted_grasping_msgs 00128 00129 namespace ros 00130 { 00131 namespace message_traits 00132 { 00133 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> > : public TrueType {}; 00134 template<class ContainerAllocator> struct IsMessage< ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> const> : public TrueType {}; 00135 template<class ContainerAllocator> 00136 struct MD5Sum< ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> > { 00137 static const char* value() 00138 { 00139 return "9ab9620ff244d7283f96379a16476d1e"; 00140 } 00141 00142 static const char* value(const ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> &) { return value(); } 00143 static const uint64_t static_value1 = 0x9ab9620ff244d728ULL; 00144 static const uint64_t static_value2 = 0x3f96379a16476d1eULL; 00145 }; 00146 00147 template<class ContainerAllocator> 00148 struct DataType< ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> > { 00149 static const char* value() 00150 { 00151 return "srs_assisted_grasping_msgs/ManualGraspingGoal"; 00152 } 00153 00154 static const char* value(const ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> &) { return value(); } 00155 }; 00156 00157 template<class ContainerAllocator> 00158 struct Definition< ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> > { 00159 static const char* value() 00160 { 00161 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00162 # goal\n\ 00163 uint8 grasp_type\n\ 00164 float32 max_force\n\ 00165 bool accept_two_fingers_contact\n\ 00166 bool do_not_open_fingers\n\ 00167 \n\ 00168 "; 00169 } 00170 00171 static const char* value(const ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> &) { return value(); } 00172 }; 00173 00174 template<class ContainerAllocator> struct IsFixedSize< ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> > : public TrueType {}; 00175 } // namespace message_traits 00176 } // namespace ros 00177 00178 namespace ros 00179 { 00180 namespace serialization 00181 { 00182 00183 template<class ContainerAllocator> struct Serializer< ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> > 00184 { 00185 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00186 { 00187 stream.next(m.grasp_type); 00188 stream.next(m.max_force); 00189 stream.next(m.accept_two_fingers_contact); 00190 stream.next(m.do_not_open_fingers); 00191 } 00192 00193 ROS_DECLARE_ALLINONE_SERIALIZER; 00194 }; // struct ManualGraspingGoal_ 00195 } // namespace serialization 00196 } // namespace ros 00197 00198 namespace ros 00199 { 00200 namespace message_operations 00201 { 00202 00203 template<class ContainerAllocator> 00204 struct Printer< ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> > 00205 { 00206 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::srs_assisted_grasping_msgs::ManualGraspingGoal_<ContainerAllocator> & v) 00207 { 00208 s << indent << "grasp_type: "; 00209 Printer<uint8_t>::stream(s, indent + " ", v.grasp_type); 00210 s << indent << "max_force: "; 00211 Printer<float>::stream(s, indent + " ", v.max_force); 00212 s << indent << "accept_two_fingers_contact: "; 00213 Printer<uint8_t>::stream(s, indent + " ", v.accept_two_fingers_contact); 00214 s << indent << "do_not_open_fingers: "; 00215 Printer<uint8_t>::stream(s, indent + " ", v.do_not_open_fingers); 00216 } 00217 }; 00218 00219 00220 } // namespace message_operations 00221 } // namespace ros 00222 00223 #endif // SRS_ASSISTED_GRASPING_MSGS_MESSAGE_MANUALGRASPINGGOAL_H 00224