$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/MoveArmGoal.msg */ 00002 #ifndef SIMPLE_ARM_SERVER_MESSAGE_MOVEARMGOAL_H 00003 #define SIMPLE_ARM_SERVER_MESSAGE_MOVEARMGOAL_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 "std_msgs/Header.h" 00018 #include "simple_arm_server/ArmAction.h" 00019 00020 namespace simple_arm_server 00021 { 00022 template <class ContainerAllocator> 00023 struct MoveArmGoal_ { 00024 typedef MoveArmGoal_<ContainerAllocator> Type; 00025 00026 MoveArmGoal_() 00027 : header() 00028 , motions() 00029 { 00030 } 00031 00032 MoveArmGoal_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , motions(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::simple_arm_server::ArmAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::simple_arm_server::ArmAction_<ContainerAllocator> >::other > _motions_type; 00042 std::vector< ::simple_arm_server::ArmAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::simple_arm_server::ArmAction_<ContainerAllocator> >::other > motions; 00043 00044 00045 ROS_DEPRECATED uint32_t get_motions_size() const { return (uint32_t)motions.size(); } 00046 ROS_DEPRECATED void set_motions_size(uint32_t size) { motions.resize((size_t)size); } 00047 ROS_DEPRECATED void get_motions_vec(std::vector< ::simple_arm_server::ArmAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::simple_arm_server::ArmAction_<ContainerAllocator> >::other > & vec) const { vec = this->motions; } 00048 ROS_DEPRECATED void set_motions_vec(const std::vector< ::simple_arm_server::ArmAction_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::simple_arm_server::ArmAction_<ContainerAllocator> >::other > & vec) { this->motions = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "simple_arm_server/MoveArmGoal"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "ac68653317d50968c1043cdf98e3aea9"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00065 std_msgs/Header header\n\ 00066 ArmAction[] motions\n\ 00067 \n\ 00068 ================================================================================\n\ 00069 MSG: std_msgs/Header\n\ 00070 # Standard metadata for higher-level stamped data types.\n\ 00071 # This is generally used to communicate timestamped data \n\ 00072 # in a particular coordinate frame.\n\ 00073 # \n\ 00074 # sequence ID: consecutively increasing ID \n\ 00075 uint32 seq\n\ 00076 #Two-integer timestamp that is expressed as:\n\ 00077 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00078 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00079 # time-handling sugar is provided by the client library\n\ 00080 time stamp\n\ 00081 #Frame this data is associated with\n\ 00082 # 0: no frame\n\ 00083 # 1: global frame\n\ 00084 string frame_id\n\ 00085 \n\ 00086 ================================================================================\n\ 00087 MSG: simple_arm_server/ArmAction\n\ 00088 #\n\ 00089 # Move arm or adjust gripper\n\ 00090 #\n\ 00091 \n\ 00092 byte MOVE_ARM=0\n\ 00093 byte MOVE_GRIPPER=1\n\ 00094 \n\ 00095 byte type # move the arm or the gripper?\n\ 00096 \n\ 00097 geometry_msgs/Pose goal # goal for arm\n\ 00098 float64 command # width to open gripper\n\ 00099 \n\ 00100 duration move_time\n\ 00101 \n\ 00102 ================================================================================\n\ 00103 MSG: geometry_msgs/Pose\n\ 00104 # A representation of pose in free space, composed of postion and orientation. \n\ 00105 Point position\n\ 00106 Quaternion orientation\n\ 00107 \n\ 00108 ================================================================================\n\ 00109 MSG: geometry_msgs/Point\n\ 00110 # This contains the position of a point in free space\n\ 00111 float64 x\n\ 00112 float64 y\n\ 00113 float64 z\n\ 00114 \n\ 00115 ================================================================================\n\ 00116 MSG: geometry_msgs/Quaternion\n\ 00117 # This represents an orientation in free space in quaternion form.\n\ 00118 \n\ 00119 float64 x\n\ 00120 float64 y\n\ 00121 float64 z\n\ 00122 float64 w\n\ 00123 \n\ 00124 "; } 00125 public: 00126 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00127 00128 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00129 00130 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00131 { 00132 ros::serialization::OStream stream(write_ptr, 1000000000); 00133 ros::serialization::serialize(stream, header); 00134 ros::serialization::serialize(stream, motions); 00135 return stream.getData(); 00136 } 00137 00138 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00139 { 00140 ros::serialization::IStream stream(read_ptr, 1000000000); 00141 ros::serialization::deserialize(stream, header); 00142 ros::serialization::deserialize(stream, motions); 00143 return stream.getData(); 00144 } 00145 00146 ROS_DEPRECATED virtual uint32_t serializationLength() const 00147 { 00148 uint32_t size = 0; 00149 size += ros::serialization::serializationLength(header); 00150 size += ros::serialization::serializationLength(motions); 00151 return size; 00152 } 00153 00154 typedef boost::shared_ptr< ::simple_arm_server::MoveArmGoal_<ContainerAllocator> > Ptr; 00155 typedef boost::shared_ptr< ::simple_arm_server::MoveArmGoal_<ContainerAllocator> const> ConstPtr; 00156 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00157 }; // struct MoveArmGoal 00158 typedef ::simple_arm_server::MoveArmGoal_<std::allocator<void> > MoveArmGoal; 00159 00160 typedef boost::shared_ptr< ::simple_arm_server::MoveArmGoal> MoveArmGoalPtr; 00161 typedef boost::shared_ptr< ::simple_arm_server::MoveArmGoal const> MoveArmGoalConstPtr; 00162 00163 00164 template<typename ContainerAllocator> 00165 std::ostream& operator<<(std::ostream& s, const ::simple_arm_server::MoveArmGoal_<ContainerAllocator> & v) 00166 { 00167 ros::message_operations::Printer< ::simple_arm_server::MoveArmGoal_<ContainerAllocator> >::stream(s, "", v); 00168 return s;} 00169 00170 } // namespace simple_arm_server 00171 00172 namespace ros 00173 { 00174 namespace message_traits 00175 { 00176 template<class ContainerAllocator> struct IsMessage< ::simple_arm_server::MoveArmGoal_<ContainerAllocator> > : public TrueType {}; 00177 template<class ContainerAllocator> struct IsMessage< ::simple_arm_server::MoveArmGoal_<ContainerAllocator> const> : public TrueType {}; 00178 template<class ContainerAllocator> 00179 struct MD5Sum< ::simple_arm_server::MoveArmGoal_<ContainerAllocator> > { 00180 static const char* value() 00181 { 00182 return "ac68653317d50968c1043cdf98e3aea9"; 00183 } 00184 00185 static const char* value(const ::simple_arm_server::MoveArmGoal_<ContainerAllocator> &) { return value(); } 00186 static const uint64_t static_value1 = 0xac68653317d50968ULL; 00187 static const uint64_t static_value2 = 0xc1043cdf98e3aea9ULL; 00188 }; 00189 00190 template<class ContainerAllocator> 00191 struct DataType< ::simple_arm_server::MoveArmGoal_<ContainerAllocator> > { 00192 static const char* value() 00193 { 00194 return "simple_arm_server/MoveArmGoal"; 00195 } 00196 00197 static const char* value(const ::simple_arm_server::MoveArmGoal_<ContainerAllocator> &) { return value(); } 00198 }; 00199 00200 template<class ContainerAllocator> 00201 struct Definition< ::simple_arm_server::MoveArmGoal_<ContainerAllocator> > { 00202 static const char* value() 00203 { 00204 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00205 std_msgs/Header header\n\ 00206 ArmAction[] motions\n\ 00207 \n\ 00208 ================================================================================\n\ 00209 MSG: std_msgs/Header\n\ 00210 # Standard metadata for higher-level stamped data types.\n\ 00211 # This is generally used to communicate timestamped data \n\ 00212 # in a particular coordinate frame.\n\ 00213 # \n\ 00214 # sequence ID: consecutively increasing ID \n\ 00215 uint32 seq\n\ 00216 #Two-integer timestamp that is expressed as:\n\ 00217 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00218 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00219 # time-handling sugar is provided by the client library\n\ 00220 time stamp\n\ 00221 #Frame this data is associated with\n\ 00222 # 0: no frame\n\ 00223 # 1: global frame\n\ 00224 string frame_id\n\ 00225 \n\ 00226 ================================================================================\n\ 00227 MSG: simple_arm_server/ArmAction\n\ 00228 #\n\ 00229 # Move arm or adjust gripper\n\ 00230 #\n\ 00231 \n\ 00232 byte MOVE_ARM=0\n\ 00233 byte MOVE_GRIPPER=1\n\ 00234 \n\ 00235 byte type # move the arm or the gripper?\n\ 00236 \n\ 00237 geometry_msgs/Pose goal # goal for arm\n\ 00238 float64 command # width to open gripper\n\ 00239 \n\ 00240 duration move_time\n\ 00241 \n\ 00242 ================================================================================\n\ 00243 MSG: geometry_msgs/Pose\n\ 00244 # A representation of pose in free space, composed of postion and orientation. \n\ 00245 Point position\n\ 00246 Quaternion orientation\n\ 00247 \n\ 00248 ================================================================================\n\ 00249 MSG: geometry_msgs/Point\n\ 00250 # This contains the position of a point in free space\n\ 00251 float64 x\n\ 00252 float64 y\n\ 00253 float64 z\n\ 00254 \n\ 00255 ================================================================================\n\ 00256 MSG: geometry_msgs/Quaternion\n\ 00257 # This represents an orientation in free space in quaternion form.\n\ 00258 \n\ 00259 float64 x\n\ 00260 float64 y\n\ 00261 float64 z\n\ 00262 float64 w\n\ 00263 \n\ 00264 "; 00265 } 00266 00267 static const char* value(const ::simple_arm_server::MoveArmGoal_<ContainerAllocator> &) { return value(); } 00268 }; 00269 00270 } // namespace message_traits 00271 } // namespace ros 00272 00273 namespace ros 00274 { 00275 namespace serialization 00276 { 00277 00278 template<class ContainerAllocator> struct Serializer< ::simple_arm_server::MoveArmGoal_<ContainerAllocator> > 00279 { 00280 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00281 { 00282 stream.next(m.header); 00283 stream.next(m.motions); 00284 } 00285 00286 ROS_DECLARE_ALLINONE_SERIALIZER; 00287 }; // struct MoveArmGoal_ 00288 } // namespace serialization 00289 } // namespace ros 00290 00291 namespace ros 00292 { 00293 namespace message_operations 00294 { 00295 00296 template<class ContainerAllocator> 00297 struct Printer< ::simple_arm_server::MoveArmGoal_<ContainerAllocator> > 00298 { 00299 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::simple_arm_server::MoveArmGoal_<ContainerAllocator> & v) 00300 { 00301 s << indent << "header: "; 00302 s << std::endl; 00303 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00304 s << indent << "motions[]" << std::endl; 00305 for (size_t i = 0; i < v.motions.size(); ++i) 00306 { 00307 s << indent << " motions[" << i << "]: "; 00308 s << std::endl; 00309 s << indent; 00310 Printer< ::simple_arm_server::ArmAction_<ContainerAllocator> >::stream(s, indent + " ", v.motions[i]); 00311 } 00312 } 00313 }; 00314 00315 00316 } // namespace message_operations 00317 } // namespace ros 00318 00319 #endif // SIMPLE_ARM_SERVER_MESSAGE_MOVEARMGOAL_H 00320