$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-simple_arms/doc_stacks/2013-03-02_13-33-24.490382/simple_arms/simple_arm_server/msg/ArmAction.msg */ 00002 #ifndef SIMPLE_ARM_SERVER_MESSAGE_ARMACTION_H 00003 #define SIMPLE_ARM_SERVER_MESSAGE_ARMACTION_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 #include "geometry_msgs/Pose.h" 00018 00019 namespace simple_arm_server 00020 { 00021 template <class ContainerAllocator> 00022 struct ArmAction_ { 00023 typedef ArmAction_<ContainerAllocator> Type; 00024 00025 ArmAction_() 00026 : type(0) 00027 , goal() 00028 , command(0.0) 00029 , move_time() 00030 { 00031 } 00032 00033 ArmAction_(const ContainerAllocator& _alloc) 00034 : type(0) 00035 , goal(_alloc) 00036 , command(0.0) 00037 , move_time() 00038 { 00039 } 00040 00041 typedef int8_t _type_type; 00042 int8_t type; 00043 00044 typedef ::geometry_msgs::Pose_<ContainerAllocator> _goal_type; 00045 ::geometry_msgs::Pose_<ContainerAllocator> goal; 00046 00047 typedef double _command_type; 00048 double command; 00049 00050 typedef ros::Duration _move_time_type; 00051 ros::Duration move_time; 00052 00053 enum { MOVE_ARM = 0 }; 00054 enum { MOVE_GRIPPER = 1 }; 00055 00056 private: 00057 static const char* __s_getDataType_() { return "simple_arm_server/ArmAction"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00060 00061 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00062 00063 private: 00064 static const char* __s_getMD5Sum_() { return "3cbdbdb85ac6ff6f8288425d4a1dec78"; } 00065 public: 00066 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00067 00068 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00069 00070 private: 00071 static const char* __s_getMessageDefinition_() { return "#\n\ 00072 # Move arm or adjust gripper\n\ 00073 #\n\ 00074 \n\ 00075 byte MOVE_ARM=0\n\ 00076 byte MOVE_GRIPPER=1\n\ 00077 \n\ 00078 byte type # move the arm or the gripper?\n\ 00079 \n\ 00080 geometry_msgs/Pose goal # goal for arm\n\ 00081 float64 command # width to open gripper\n\ 00082 \n\ 00083 duration move_time\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: geometry_msgs/Pose\n\ 00087 # A representation of pose in free space, composed of postion and orientation. \n\ 00088 Point position\n\ 00089 Quaternion orientation\n\ 00090 \n\ 00091 ================================================================================\n\ 00092 MSG: geometry_msgs/Point\n\ 00093 # This contains the position of a point in free space\n\ 00094 float64 x\n\ 00095 float64 y\n\ 00096 float64 z\n\ 00097 \n\ 00098 ================================================================================\n\ 00099 MSG: geometry_msgs/Quaternion\n\ 00100 # This represents an orientation in free space in quaternion form.\n\ 00101 \n\ 00102 float64 x\n\ 00103 float64 y\n\ 00104 float64 z\n\ 00105 float64 w\n\ 00106 \n\ 00107 "; } 00108 public: 00109 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00110 00111 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00112 00113 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00114 { 00115 ros::serialization::OStream stream(write_ptr, 1000000000); 00116 ros::serialization::serialize(stream, type); 00117 ros::serialization::serialize(stream, goal); 00118 ros::serialization::serialize(stream, command); 00119 ros::serialization::serialize(stream, move_time); 00120 return stream.getData(); 00121 } 00122 00123 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00124 { 00125 ros::serialization::IStream stream(read_ptr, 1000000000); 00126 ros::serialization::deserialize(stream, type); 00127 ros::serialization::deserialize(stream, goal); 00128 ros::serialization::deserialize(stream, command); 00129 ros::serialization::deserialize(stream, move_time); 00130 return stream.getData(); 00131 } 00132 00133 ROS_DEPRECATED virtual uint32_t serializationLength() const 00134 { 00135 uint32_t size = 0; 00136 size += ros::serialization::serializationLength(type); 00137 size += ros::serialization::serializationLength(goal); 00138 size += ros::serialization::serializationLength(command); 00139 size += ros::serialization::serializationLength(move_time); 00140 return size; 00141 } 00142 00143 typedef boost::shared_ptr< ::simple_arm_server::ArmAction_<ContainerAllocator> > Ptr; 00144 typedef boost::shared_ptr< ::simple_arm_server::ArmAction_<ContainerAllocator> const> ConstPtr; 00145 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00146 }; // struct ArmAction 00147 typedef ::simple_arm_server::ArmAction_<std::allocator<void> > ArmAction; 00148 00149 typedef boost::shared_ptr< ::simple_arm_server::ArmAction> ArmActionPtr; 00150 typedef boost::shared_ptr< ::simple_arm_server::ArmAction const> ArmActionConstPtr; 00151 00152 00153 template<typename ContainerAllocator> 00154 std::ostream& operator<<(std::ostream& s, const ::simple_arm_server::ArmAction_<ContainerAllocator> & v) 00155 { 00156 ros::message_operations::Printer< ::simple_arm_server::ArmAction_<ContainerAllocator> >::stream(s, "", v); 00157 return s;} 00158 00159 } // namespace simple_arm_server 00160 00161 namespace ros 00162 { 00163 namespace message_traits 00164 { 00165 template<class ContainerAllocator> struct IsMessage< ::simple_arm_server::ArmAction_<ContainerAllocator> > : public TrueType {}; 00166 template<class ContainerAllocator> struct IsMessage< ::simple_arm_server::ArmAction_<ContainerAllocator> const> : public TrueType {}; 00167 template<class ContainerAllocator> 00168 struct MD5Sum< ::simple_arm_server::ArmAction_<ContainerAllocator> > { 00169 static const char* value() 00170 { 00171 return "3cbdbdb85ac6ff6f8288425d4a1dec78"; 00172 } 00173 00174 static const char* value(const ::simple_arm_server::ArmAction_<ContainerAllocator> &) { return value(); } 00175 static const uint64_t static_value1 = 0x3cbdbdb85ac6ff6fULL; 00176 static const uint64_t static_value2 = 0x8288425d4a1dec78ULL; 00177 }; 00178 00179 template<class ContainerAllocator> 00180 struct DataType< ::simple_arm_server::ArmAction_<ContainerAllocator> > { 00181 static const char* value() 00182 { 00183 return "simple_arm_server/ArmAction"; 00184 } 00185 00186 static const char* value(const ::simple_arm_server::ArmAction_<ContainerAllocator> &) { return value(); } 00187 }; 00188 00189 template<class ContainerAllocator> 00190 struct Definition< ::simple_arm_server::ArmAction_<ContainerAllocator> > { 00191 static const char* value() 00192 { 00193 return "#\n\ 00194 # Move arm or adjust gripper\n\ 00195 #\n\ 00196 \n\ 00197 byte MOVE_ARM=0\n\ 00198 byte MOVE_GRIPPER=1\n\ 00199 \n\ 00200 byte type # move the arm or the gripper?\n\ 00201 \n\ 00202 geometry_msgs/Pose goal # goal for arm\n\ 00203 float64 command # width to open gripper\n\ 00204 \n\ 00205 duration move_time\n\ 00206 \n\ 00207 ================================================================================\n\ 00208 MSG: geometry_msgs/Pose\n\ 00209 # A representation of pose in free space, composed of postion and orientation. \n\ 00210 Point position\n\ 00211 Quaternion orientation\n\ 00212 \n\ 00213 ================================================================================\n\ 00214 MSG: geometry_msgs/Point\n\ 00215 # This contains the position of a point in free space\n\ 00216 float64 x\n\ 00217 float64 y\n\ 00218 float64 z\n\ 00219 \n\ 00220 ================================================================================\n\ 00221 MSG: geometry_msgs/Quaternion\n\ 00222 # This represents an orientation in free space in quaternion form.\n\ 00223 \n\ 00224 float64 x\n\ 00225 float64 y\n\ 00226 float64 z\n\ 00227 float64 w\n\ 00228 \n\ 00229 "; 00230 } 00231 00232 static const char* value(const ::simple_arm_server::ArmAction_<ContainerAllocator> &) { return value(); } 00233 }; 00234 00235 template<class ContainerAllocator> struct IsFixedSize< ::simple_arm_server::ArmAction_<ContainerAllocator> > : public TrueType {}; 00236 } // namespace message_traits 00237 } // namespace ros 00238 00239 namespace ros 00240 { 00241 namespace serialization 00242 { 00243 00244 template<class ContainerAllocator> struct Serializer< ::simple_arm_server::ArmAction_<ContainerAllocator> > 00245 { 00246 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00247 { 00248 stream.next(m.type); 00249 stream.next(m.goal); 00250 stream.next(m.command); 00251 stream.next(m.move_time); 00252 } 00253 00254 ROS_DECLARE_ALLINONE_SERIALIZER; 00255 }; // struct ArmAction_ 00256 } // namespace serialization 00257 } // namespace ros 00258 00259 namespace ros 00260 { 00261 namespace message_operations 00262 { 00263 00264 template<class ContainerAllocator> 00265 struct Printer< ::simple_arm_server::ArmAction_<ContainerAllocator> > 00266 { 00267 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::simple_arm_server::ArmAction_<ContainerAllocator> & v) 00268 { 00269 s << indent << "type: "; 00270 Printer<int8_t>::stream(s, indent + " ", v.type); 00271 s << indent << "goal: "; 00272 s << std::endl; 00273 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.goal); 00274 s << indent << "command: "; 00275 Printer<double>::stream(s, indent + " ", v.command); 00276 s << indent << "move_time: "; 00277 Printer<ros::Duration>::stream(s, indent + " ", v.move_time); 00278 } 00279 }; 00280 00281 00282 } // namespace message_operations 00283 } // namespace ros 00284 00285 #endif // SIMPLE_ARM_SERVER_MESSAGE_ARMACTION_H 00286