$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/EECartImpedGoal.msg */ 00002 #ifndef EE_CART_IMPED_MSGS_MESSAGE_EECARTIMPEDGOAL_H 00003 #define EE_CART_IMPED_MSGS_MESSAGE_EECARTIMPEDGOAL_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 "ee_cart_imped_msgs/StiffPoint.h" 00019 00020 namespace ee_cart_imped_msgs 00021 { 00022 template <class ContainerAllocator> 00023 struct EECartImpedGoal_ { 00024 typedef EECartImpedGoal_<ContainerAllocator> Type; 00025 00026 EECartImpedGoal_() 00027 : header() 00028 , trajectory() 00029 { 00030 } 00031 00032 EECartImpedGoal_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , trajectory(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> >::other > _trajectory_type; 00042 std::vector< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> >::other > trajectory; 00043 00044 00045 ROS_DEPRECATED uint32_t get_trajectory_size() const { return (uint32_t)trajectory.size(); } 00046 ROS_DEPRECATED void set_trajectory_size(uint32_t size) { trajectory.resize((size_t)size); } 00047 ROS_DEPRECATED void get_trajectory_vec(std::vector< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> >::other > & vec) const { vec = this->trajectory; } 00048 ROS_DEPRECATED void set_trajectory_vec(const std::vector< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> >::other > & vec) { this->trajectory = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "ee_cart_imped_msgs/EECartImpedGoal"; } 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 "0b1ff60300ab63f83c2158e930c32bb2"; } 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 #goal definition\n\ 00066 Header header\n\ 00067 ee_cart_imped_msgs/StiffPoint[] trajectory\n\ 00068 \n\ 00069 ================================================================================\n\ 00070 MSG: std_msgs/Header\n\ 00071 # Standard metadata for higher-level stamped data types.\n\ 00072 # This is generally used to communicate timestamped data \n\ 00073 # in a particular coordinate frame.\n\ 00074 # \n\ 00075 # sequence ID: consecutively increasing ID \n\ 00076 uint32 seq\n\ 00077 #Two-integer timestamp that is expressed as:\n\ 00078 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00079 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00080 # time-handling sugar is provided by the client library\n\ 00081 time stamp\n\ 00082 #Frame this data is associated with\n\ 00083 # 0: no frame\n\ 00084 # 1: global frame\n\ 00085 string frame_id\n\ 00086 \n\ 00087 ================================================================================\n\ 00088 MSG: ee_cart_imped_msgs/StiffPoint\n\ 00089 Header header\n\ 00090 #The pose to achieve in the stiffness directions\n\ 00091 geometry_msgs/Pose pose\n\ 00092 #Wrench or stiffness for each dimension\n\ 00093 geometry_msgs/Wrench wrench_or_stiffness\n\ 00094 #The following are True if a force/torque should\n\ 00095 #be exerted and False if a stiffness should be used.\n\ 00096 bool isForceX\n\ 00097 bool isForceY\n\ 00098 bool isForceZ\n\ 00099 bool isTorqueX\n\ 00100 bool isTorqueY\n\ 00101 bool isTorqueZ\n\ 00102 #The time from the start of the trajectory that this\n\ 00103 #point should be achieved.\n\ 00104 duration time_from_start\n\ 00105 ================================================================================\n\ 00106 MSG: geometry_msgs/Pose\n\ 00107 # A representation of pose in free space, composed of postion and orientation. \n\ 00108 Point position\n\ 00109 Quaternion orientation\n\ 00110 \n\ 00111 ================================================================================\n\ 00112 MSG: geometry_msgs/Point\n\ 00113 # This contains the position of a point in free space\n\ 00114 float64 x\n\ 00115 float64 y\n\ 00116 float64 z\n\ 00117 \n\ 00118 ================================================================================\n\ 00119 MSG: geometry_msgs/Quaternion\n\ 00120 # This represents an orientation in free space in quaternion form.\n\ 00121 \n\ 00122 float64 x\n\ 00123 float64 y\n\ 00124 float64 z\n\ 00125 float64 w\n\ 00126 \n\ 00127 ================================================================================\n\ 00128 MSG: geometry_msgs/Wrench\n\ 00129 # This represents force in free space, seperated into \n\ 00130 # it's linear and angular parts. \n\ 00131 Vector3 force\n\ 00132 Vector3 torque\n\ 00133 \n\ 00134 ================================================================================\n\ 00135 MSG: geometry_msgs/Vector3\n\ 00136 # This represents a vector in free space. \n\ 00137 \n\ 00138 float64 x\n\ 00139 float64 y\n\ 00140 float64 z\n\ 00141 "; } 00142 public: 00143 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00144 00145 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00146 00147 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00148 { 00149 ros::serialization::OStream stream(write_ptr, 1000000000); 00150 ros::serialization::serialize(stream, header); 00151 ros::serialization::serialize(stream, trajectory); 00152 return stream.getData(); 00153 } 00154 00155 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00156 { 00157 ros::serialization::IStream stream(read_ptr, 1000000000); 00158 ros::serialization::deserialize(stream, header); 00159 ros::serialization::deserialize(stream, trajectory); 00160 return stream.getData(); 00161 } 00162 00163 ROS_DEPRECATED virtual uint32_t serializationLength() const 00164 { 00165 uint32_t size = 0; 00166 size += ros::serialization::serializationLength(header); 00167 size += ros::serialization::serializationLength(trajectory); 00168 return size; 00169 } 00170 00171 typedef boost::shared_ptr< ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> > Ptr; 00172 typedef boost::shared_ptr< ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> const> ConstPtr; 00173 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00174 }; // struct EECartImpedGoal 00175 typedef ::ee_cart_imped_msgs::EECartImpedGoal_<std::allocator<void> > EECartImpedGoal; 00176 00177 typedef boost::shared_ptr< ::ee_cart_imped_msgs::EECartImpedGoal> EECartImpedGoalPtr; 00178 typedef boost::shared_ptr< ::ee_cart_imped_msgs::EECartImpedGoal const> EECartImpedGoalConstPtr; 00179 00180 00181 template<typename ContainerAllocator> 00182 std::ostream& operator<<(std::ostream& s, const ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> & v) 00183 { 00184 ros::message_operations::Printer< ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> >::stream(s, "", v); 00185 return s;} 00186 00187 } // namespace ee_cart_imped_msgs 00188 00189 namespace ros 00190 { 00191 namespace message_traits 00192 { 00193 template<class ContainerAllocator> struct IsMessage< ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> > : public TrueType {}; 00194 template<class ContainerAllocator> struct IsMessage< ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> const> : public TrueType {}; 00195 template<class ContainerAllocator> 00196 struct MD5Sum< ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> > { 00197 static const char* value() 00198 { 00199 return "0b1ff60300ab63f83c2158e930c32bb2"; 00200 } 00201 00202 static const char* value(const ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> &) { return value(); } 00203 static const uint64_t static_value1 = 0x0b1ff60300ab63f8ULL; 00204 static const uint64_t static_value2 = 0x3c2158e930c32bb2ULL; 00205 }; 00206 00207 template<class ContainerAllocator> 00208 struct DataType< ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> > { 00209 static const char* value() 00210 { 00211 return "ee_cart_imped_msgs/EECartImpedGoal"; 00212 } 00213 00214 static const char* value(const ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> &) { return value(); } 00215 }; 00216 00217 template<class ContainerAllocator> 00218 struct Definition< ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> > { 00219 static const char* value() 00220 { 00221 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\ 00222 #goal definition\n\ 00223 Header header\n\ 00224 ee_cart_imped_msgs/StiffPoint[] trajectory\n\ 00225 \n\ 00226 ================================================================================\n\ 00227 MSG: std_msgs/Header\n\ 00228 # Standard metadata for higher-level stamped data types.\n\ 00229 # This is generally used to communicate timestamped data \n\ 00230 # in a particular coordinate frame.\n\ 00231 # \n\ 00232 # sequence ID: consecutively increasing ID \n\ 00233 uint32 seq\n\ 00234 #Two-integer timestamp that is expressed as:\n\ 00235 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00236 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00237 # time-handling sugar is provided by the client library\n\ 00238 time stamp\n\ 00239 #Frame this data is associated with\n\ 00240 # 0: no frame\n\ 00241 # 1: global frame\n\ 00242 string frame_id\n\ 00243 \n\ 00244 ================================================================================\n\ 00245 MSG: ee_cart_imped_msgs/StiffPoint\n\ 00246 Header header\n\ 00247 #The pose to achieve in the stiffness directions\n\ 00248 geometry_msgs/Pose pose\n\ 00249 #Wrench or stiffness for each dimension\n\ 00250 geometry_msgs/Wrench wrench_or_stiffness\n\ 00251 #The following are True if a force/torque should\n\ 00252 #be exerted and False if a stiffness should be used.\n\ 00253 bool isForceX\n\ 00254 bool isForceY\n\ 00255 bool isForceZ\n\ 00256 bool isTorqueX\n\ 00257 bool isTorqueY\n\ 00258 bool isTorqueZ\n\ 00259 #The time from the start of the trajectory that this\n\ 00260 #point should be achieved.\n\ 00261 duration time_from_start\n\ 00262 ================================================================================\n\ 00263 MSG: geometry_msgs/Pose\n\ 00264 # A representation of pose in free space, composed of postion and orientation. \n\ 00265 Point position\n\ 00266 Quaternion orientation\n\ 00267 \n\ 00268 ================================================================================\n\ 00269 MSG: geometry_msgs/Point\n\ 00270 # This contains the position of a point in free space\n\ 00271 float64 x\n\ 00272 float64 y\n\ 00273 float64 z\n\ 00274 \n\ 00275 ================================================================================\n\ 00276 MSG: geometry_msgs/Quaternion\n\ 00277 # This represents an orientation in free space in quaternion form.\n\ 00278 \n\ 00279 float64 x\n\ 00280 float64 y\n\ 00281 float64 z\n\ 00282 float64 w\n\ 00283 \n\ 00284 ================================================================================\n\ 00285 MSG: geometry_msgs/Wrench\n\ 00286 # This represents force in free space, seperated into \n\ 00287 # it's linear and angular parts. \n\ 00288 Vector3 force\n\ 00289 Vector3 torque\n\ 00290 \n\ 00291 ================================================================================\n\ 00292 MSG: geometry_msgs/Vector3\n\ 00293 # This represents a vector in free space. \n\ 00294 \n\ 00295 float64 x\n\ 00296 float64 y\n\ 00297 float64 z\n\ 00298 "; 00299 } 00300 00301 static const char* value(const ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> &) { return value(); } 00302 }; 00303 00304 template<class ContainerAllocator> struct HasHeader< ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> > : public TrueType {}; 00305 template<class ContainerAllocator> struct HasHeader< const ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> > : public TrueType {}; 00306 } // namespace message_traits 00307 } // namespace ros 00308 00309 namespace ros 00310 { 00311 namespace serialization 00312 { 00313 00314 template<class ContainerAllocator> struct Serializer< ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> > 00315 { 00316 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00317 { 00318 stream.next(m.header); 00319 stream.next(m.trajectory); 00320 } 00321 00322 ROS_DECLARE_ALLINONE_SERIALIZER; 00323 }; // struct EECartImpedGoal_ 00324 } // namespace serialization 00325 } // namespace ros 00326 00327 namespace ros 00328 { 00329 namespace message_operations 00330 { 00331 00332 template<class ContainerAllocator> 00333 struct Printer< ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> > 00334 { 00335 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::ee_cart_imped_msgs::EECartImpedGoal_<ContainerAllocator> & v) 00336 { 00337 s << indent << "header: "; 00338 s << std::endl; 00339 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00340 s << indent << "trajectory[]" << std::endl; 00341 for (size_t i = 0; i < v.trajectory.size(); ++i) 00342 { 00343 s << indent << " trajectory[" << i << "]: "; 00344 s << std::endl; 00345 s << indent; 00346 Printer< ::ee_cart_imped_msgs::StiffPoint_<ContainerAllocator> >::stream(s, indent + " ", v.trajectory[i]); 00347 } 00348 } 00349 }; 00350 00351 00352 } // namespace message_operations 00353 } // namespace ros 00354 00355 #endif // EE_CART_IMPED_MSGS_MESSAGE_EECARTIMPEDGOAL_H 00356