$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-mit-ros-pkg/doc_stacks/2013-03-03_11-36-56.162166/mit-ros-pkg/ee_cart_imped/ee_cart_imped_msgs/msg/StiffPoint.msg */ 00002 #ifndef EE_CART_IMPED_MSGS_MESSAGE_STIFFPOINT_H 00003 #define EE_CART_IMPED_MSGS_MESSAGE_STIFFPOINT_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 "geometry_msgs/Pose.h" 00019 #include "geometry_msgs/Wrench.h" 00020 00021 namespace ee_cart_imped_msgs 00022 { 00023 template <class ContainerAllocator> 00024 struct StiffPoint_ { 00025 typedef StiffPoint_<ContainerAllocator> Type; 00026 00027 StiffPoint_() 00028 : header() 00029 , pose() 00030 , wrench_or_stiffness() 00031 , isForceX(false) 00032 , isForceY(false) 00033 , isForceZ(false) 00034 , isTorqueX(false) 00035 , isTorqueY(false) 00036 , isTorqueZ(false) 00037 , time_from_start() 00038 { 00039 } 00040 00041 StiffPoint_(const ContainerAllocator& _alloc) 00042 : header(_alloc) 00043 , pose(_alloc) 00044 , wrench_or_stiffness(_alloc) 00045 , isForceX(false) 00046 , isForceY(false) 00047 , isForceZ(false) 00048 , isTorqueX(false) 00049 , isTorqueY(false) 00050 , isTorqueZ(false) 00051 , time_from_start() 00052 { 00053 } 00054 00055 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00056 ::std_msgs::Header_<ContainerAllocator> header; 00057 00058 typedef ::geometry_msgs::Pose_<ContainerAllocator> _pose_type; 00059 ::geometry_msgs::Pose_<ContainerAllocator> pose; 00060 00061 typedef ::geometry_msgs::Wrench_<ContainerAllocator> _wrench_or_stiffness_type; 00062 ::geometry_msgs::Wrench_<ContainerAllocator> wrench_or_stiffness; 00063 00064 typedef uint8_t _isForceX_type; 00065 uint8_t isForceX; 00066 00067 typedef uint8_t _isForceY_type; 00068 uint8_t isForceY; 00069 00070 typedef uint8_t _isForceZ_type; 00071 uint8_t isForceZ; 00072 00073 typedef uint8_t _isTorqueX_type; 00074 uint8_t isTorqueX; 00075 00076 typedef uint8_t _isTorqueY_type; 00077 uint8_t isTorqueY; 00078 00079 typedef uint8_t _isTorqueZ_type; 00080 uint8_t isTorqueZ; 00081 00082 typedef ros::Duration _time_from_start_type; 00083 ros::Duration time_from_start; 00084 00085 00086 private: 00087 static const char* __s_getDataType_() { return "ee_cart_imped_msgs/StiffPoint"; } 00088 public: 00089 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00090 00091 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00092 00093 private: 00094 static const char* __s_getMD5Sum_() { return "2b6b597656e805a0ca2e1de07dc31a66"; } 00095 public: 00096 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00097 00098 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00099 00100 private: 00101 static const char* __s_getMessageDefinition_() { return "Header header\n\ 00102 #The pose to achieve in the stiffness directions\n\ 00103 geometry_msgs/Pose pose\n\ 00104 #Wrench or stiffness for each dimension\n\ 00105 geometry_msgs/Wrench wrench_or_stiffness\n\ 00106 #The following are True if a force/torque should\n\ 00107 #be exerted and False if a stiffness should be used.\n\ 00108 bool isForceX\n\ 00109 bool isForceY\n\ 00110 bool isForceZ\n\ 00111 bool isTorqueX\n\ 00112 bool isTorqueY\n\ 00113 bool isTorqueZ\n\ 00114 #The time from the start of the trajectory that this\n\ 00115 #point should be achieved.\n\ 00116 duration time_from_start\n\ 00117 ================================================================================\n\ 00118 MSG: std_msgs/Header\n\ 00119 # Standard metadata for higher-level stamped data types.\n\ 00120 # This is generally used to communicate timestamped data \n\ 00121 # in a particular coordinate frame.\n\ 00122 # \n\ 00123 # sequence ID: consecutively increasing ID \n\ 00124 uint32 seq\n\ 00125 #Two-integer timestamp that is expressed as:\n\ 00126 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00127 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00128 # time-handling sugar is provided by the client library\n\ 00129 time stamp\n\ 00130 #Frame this data is associated with\n\ 00131 # 0: no frame\n\ 00132 # 1: global frame\n\ 00133 string frame_id\n\ 00134 \n\ 00135 ================================================================================\n\ 00136 MSG: geometry_msgs/Pose\n\ 00137 # A representation of pose in free space, composed of postion and orientation. \n\ 00138 Point position\n\ 00139 Quaternion orientation\n\ 00140 \n\ 00141 ================================================================================\n\ 00142 MSG: geometry_msgs/Point\n\ 00143 # This contains the position of a point in free space\n\ 00144 float64 x\n\ 00145 float64 y\n\ 00146 float64 z\n\ 00147 \n\ 00148 ================================================================================\n\ 00149 MSG: geometry_msgs/Quaternion\n\ 00150 # This represents an orientation in free space in quaternion form.\n\ 00151 \n\ 00152 float64 x\n\ 00153 float64 y\n\ 00154 float64 z\n\ 00155 float64 w\n\ 00156 \n\ 00157 ================================================================================\n\ 00158 MSG: geometry_msgs/Wrench\n\ 00159 # This represents force in free space, seperated into \n\ 00160 # it's linear and angular parts. \n\ 00161 Vector3 force\n\ 00162 Vector3 torque\n\ 00163 \n\ 00164 ================================================================================\n\ 00165 MSG: geometry_msgs/Vector3\n\ 00166 # This represents a vector in free space. \n\ 00167 \n\ 00168 float64 x\n\ 00169 float64 y\n\ 00170 float64 z\n\ 00171 "; } 00172 public: 00173 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00174 00175 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00176 00177 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00178 { 00179 ros::serialization::OStream stream(write_ptr, 1000000000); 00180 ros::serialization::serialize(stream, header); 00181 ros::serialization::serialize(stream, pose); 00182 ros::serialization::serialize(stream, wrench_or_stiffness); 00183 ros::serialization::serialize(stream, isForceX); 00184 ros::serialization::serialize(stream, isForceY); 00185 ros::serialization::serialize(stream, isForceZ); 00186 ros::serialization::serialize(stream, isTorqueX); 00187 ros::serialization::serialize(stream, isTorqueY); 00188 ros::serialization::serialize(stream, isTorqueZ); 00189 ros::serialization::serialize(stream, time_from_start); 00190 return stream.getData(); 00191 } 00192 00193 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00194 { 00195 ros::serialization::IStream stream(read_ptr, 1000000000); 00196 ros::serialization::deserialize(stream, header); 00197 ros::serialization::deserialize(stream, pose); 00198 ros::serialization::deserialize(stream, wrench_or_stiffness); 00199 ros::serialization::deserialize(stream, isForceX); 00200 ros::serialization::deserialize(stream, isForceY); 00201 ros::serialization::deserialize(stream, isForceZ); 00202 ros::serialization::deserialize(stream, isTorqueX); 00203 ros::serialization::deserialize(stream, isTorqueY); 00204 ros::serialization::deserialize(stream, isTorqueZ); 00205 ros::serialization::deserialize(stream, time_from_start); 00206 return stream.getData(); 00207 } 00208 00209 ROS_DEPRECATED virtual uint32_t serializationLength() const 00210 { 00211 uint32_t size = 0; 00212 size += ros::serialization::serializationLength(header); 00213 size += ros::serialization::serializationLength(pose); 00214 size += ros::serialization::serializationLength(wrench_or_stiffness); 00215 size += ros::serialization::serializationLength(isForceX); 00216 size += ros::serialization::serializationLength(isForceY); 00217 size += ros::serialization::serializationLength(isForceZ); 00218 size += ros::serialization::serializationLength(isTorqueX); 00219 size += ros::serialization::serializationLength(isTorqueY); 00220 size += ros::serialization::serializationLength(isTorqueZ); 00221 size += ros::serialization::serializationLength(time_from_start); 00222 return size; 00223 } 00224 00225 typedef boost::shared_ptr< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> > Ptr; 00226 typedef boost::shared_ptr< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> const> ConstPtr; 00227 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00228 }; // struct StiffPoint 00229 typedef ::ee_cart_imped_msgs::StiffPoint_<std::allocator<void> > StiffPoint; 00230 00231 typedef boost::shared_ptr< ::ee_cart_imped_msgs::StiffPoint> StiffPointPtr; 00232 typedef boost::shared_ptr< ::ee_cart_imped_msgs::StiffPoint const> StiffPointConstPtr; 00233 00234 00235 template<typename ContainerAllocator> 00236 std::ostream& operator<<(std::ostream& s, const ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> & v) 00237 { 00238 ros::message_operations::Printer< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> >::stream(s, "", v); 00239 return s;} 00240 00241 } // namespace ee_cart_imped_msgs 00242 00243 namespace ros 00244 { 00245 namespace message_traits 00246 { 00247 template<class ContainerAllocator> struct IsMessage< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> > : public TrueType {}; 00248 template<class ContainerAllocator> struct IsMessage< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> const> : public TrueType {}; 00249 template<class ContainerAllocator> 00250 struct MD5Sum< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> > { 00251 static const char* value() 00252 { 00253 return "2b6b597656e805a0ca2e1de07dc31a66"; 00254 } 00255 00256 static const char* value(const ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> &) { return value(); } 00257 static const uint64_t static_value1 = 0x2b6b597656e805a0ULL; 00258 static const uint64_t static_value2 = 0xca2e1de07dc31a66ULL; 00259 }; 00260 00261 template<class ContainerAllocator> 00262 struct DataType< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> > { 00263 static const char* value() 00264 { 00265 return "ee_cart_imped_msgs/StiffPoint"; 00266 } 00267 00268 static const char* value(const ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> &) { return value(); } 00269 }; 00270 00271 template<class ContainerAllocator> 00272 struct Definition< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> > { 00273 static const char* value() 00274 { 00275 return "Header header\n\ 00276 #The pose to achieve in the stiffness directions\n\ 00277 geometry_msgs/Pose pose\n\ 00278 #Wrench or stiffness for each dimension\n\ 00279 geometry_msgs/Wrench wrench_or_stiffness\n\ 00280 #The following are True if a force/torque should\n\ 00281 #be exerted and False if a stiffness should be used.\n\ 00282 bool isForceX\n\ 00283 bool isForceY\n\ 00284 bool isForceZ\n\ 00285 bool isTorqueX\n\ 00286 bool isTorqueY\n\ 00287 bool isTorqueZ\n\ 00288 #The time from the start of the trajectory that this\n\ 00289 #point should be achieved.\n\ 00290 duration time_from_start\n\ 00291 ================================================================================\n\ 00292 MSG: std_msgs/Header\n\ 00293 # Standard metadata for higher-level stamped data types.\n\ 00294 # This is generally used to communicate timestamped data \n\ 00295 # in a particular coordinate frame.\n\ 00296 # \n\ 00297 # sequence ID: consecutively increasing ID \n\ 00298 uint32 seq\n\ 00299 #Two-integer timestamp that is expressed as:\n\ 00300 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00301 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00302 # time-handling sugar is provided by the client library\n\ 00303 time stamp\n\ 00304 #Frame this data is associated with\n\ 00305 # 0: no frame\n\ 00306 # 1: global frame\n\ 00307 string frame_id\n\ 00308 \n\ 00309 ================================================================================\n\ 00310 MSG: geometry_msgs/Pose\n\ 00311 # A representation of pose in free space, composed of postion and orientation. \n\ 00312 Point position\n\ 00313 Quaternion orientation\n\ 00314 \n\ 00315 ================================================================================\n\ 00316 MSG: geometry_msgs/Point\n\ 00317 # This contains the position of a point in free space\n\ 00318 float64 x\n\ 00319 float64 y\n\ 00320 float64 z\n\ 00321 \n\ 00322 ================================================================================\n\ 00323 MSG: geometry_msgs/Quaternion\n\ 00324 # This represents an orientation in free space in quaternion form.\n\ 00325 \n\ 00326 float64 x\n\ 00327 float64 y\n\ 00328 float64 z\n\ 00329 float64 w\n\ 00330 \n\ 00331 ================================================================================\n\ 00332 MSG: geometry_msgs/Wrench\n\ 00333 # This represents force in free space, seperated into \n\ 00334 # it's linear and angular parts. \n\ 00335 Vector3 force\n\ 00336 Vector3 torque\n\ 00337 \n\ 00338 ================================================================================\n\ 00339 MSG: geometry_msgs/Vector3\n\ 00340 # This represents a vector in free space. \n\ 00341 \n\ 00342 float64 x\n\ 00343 float64 y\n\ 00344 float64 z\n\ 00345 "; 00346 } 00347 00348 static const char* value(const ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> &) { return value(); } 00349 }; 00350 00351 template<class ContainerAllocator> struct HasHeader< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> > : public TrueType {}; 00352 template<class ContainerAllocator> struct HasHeader< const ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> > : public TrueType {}; 00353 } // namespace message_traits 00354 } // namespace ros 00355 00356 namespace ros 00357 { 00358 namespace serialization 00359 { 00360 00361 template<class ContainerAllocator> struct Serializer< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> > 00362 { 00363 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00364 { 00365 stream.next(m.header); 00366 stream.next(m.pose); 00367 stream.next(m.wrench_or_stiffness); 00368 stream.next(m.isForceX); 00369 stream.next(m.isForceY); 00370 stream.next(m.isForceZ); 00371 stream.next(m.isTorqueX); 00372 stream.next(m.isTorqueY); 00373 stream.next(m.isTorqueZ); 00374 stream.next(m.time_from_start); 00375 } 00376 00377 ROS_DECLARE_ALLINONE_SERIALIZER; 00378 }; // struct StiffPoint_ 00379 } // namespace serialization 00380 } // namespace ros 00381 00382 namespace ros 00383 { 00384 namespace message_operations 00385 { 00386 00387 template<class ContainerAllocator> 00388 struct Printer< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> > 00389 { 00390 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> & v) 00391 { 00392 s << indent << "header: "; 00393 s << std::endl; 00394 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00395 s << indent << "pose: "; 00396 s << std::endl; 00397 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose); 00398 s << indent << "wrench_or_stiffness: "; 00399 s << std::endl; 00400 Printer< ::geometry_msgs::Wrench_<ContainerAllocator> >::stream(s, indent + " ", v.wrench_or_stiffness); 00401 s << indent << "isForceX: "; 00402 Printer<uint8_t>::stream(s, indent + " ", v.isForceX); 00403 s << indent << "isForceY: "; 00404 Printer<uint8_t>::stream(s, indent + " ", v.isForceY); 00405 s << indent << "isForceZ: "; 00406 Printer<uint8_t>::stream(s, indent + " ", v.isForceZ); 00407 s << indent << "isTorqueX: "; 00408 Printer<uint8_t>::stream(s, indent + " ", v.isTorqueX); 00409 s << indent << "isTorqueY: "; 00410 Printer<uint8_t>::stream(s, indent + " ", v.isTorqueY); 00411 s << indent << "isTorqueZ: "; 00412 Printer<uint8_t>::stream(s, indent + " ", v.isTorqueZ); 00413 s << indent << "time_from_start: "; 00414 Printer<ros::Duration>::stream(s, indent + " ", v.time_from_start); 00415 } 00416 }; 00417 00418 00419 } // namespace message_operations 00420 } // namespace ros 00421 00422 #endif // EE_CART_IMPED_MSGS_MESSAGE_STIFFPOINT_H 00423