$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-simulator_gazebo/doc_stacks/2013-03-02_13-33-37.038309/simulator_gazebo/gazebo_plugins/msg/ContactsState.msg */ 00002 #ifndef GAZEBO_PLUGINS_MESSAGE_CONTACTSSTATE_H 00003 #define GAZEBO_PLUGINS_MESSAGE_CONTACTSSTATE_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 "gazebo_msgs/ContactState.h" 00019 00020 namespace gazebo_plugins 00021 { 00022 template <class ContainerAllocator> 00023 struct ContactsState_ { 00024 typedef ContactsState_<ContainerAllocator> Type; 00025 00026 ContactsState_() 00027 : header() 00028 , states() 00029 { 00030 } 00031 00032 ContactsState_(const ContainerAllocator& _alloc) 00033 : header(_alloc) 00034 , states(_alloc) 00035 { 00036 } 00037 00038 typedef ::std_msgs::Header_<ContainerAllocator> _header_type; 00039 ::std_msgs::Header_<ContainerAllocator> header; 00040 00041 typedef std::vector< ::gazebo_msgs::ContactState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gazebo_msgs::ContactState_<ContainerAllocator> >::other > _states_type; 00042 std::vector< ::gazebo_msgs::ContactState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gazebo_msgs::ContactState_<ContainerAllocator> >::other > states; 00043 00044 00045 ROS_DEPRECATED uint32_t get_states_size() const { return (uint32_t)states.size(); } 00046 ROS_DEPRECATED void set_states_size(uint32_t size) { states.resize((size_t)size); } 00047 ROS_DEPRECATED void get_states_vec(std::vector< ::gazebo_msgs::ContactState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gazebo_msgs::ContactState_<ContainerAllocator> >::other > & vec) const { vec = this->states; } 00048 ROS_DEPRECATED void set_states_vec(const std::vector< ::gazebo_msgs::ContactState_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::gazebo_msgs::ContactState_<ContainerAllocator> >::other > & vec) { this->states = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "gazebo_plugins/ContactsState"; } 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 "9d29ce6da289d3d303cc64b4cfdd0e84"; } 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 "#This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00065 \n\ 00066 Header header # stamp\n\ 00067 gazebo_msgs/ContactState[] states # array of geom pairs in contact\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: gazebo_msgs/ContactState\n\ 00089 string info # text info on this contact\n\ 00090 string geom1_name # name of contact geom1\n\ 00091 string geom2_name # name of contact geom2\n\ 00092 geometry_msgs/Wrench[] wrenches # list of forces/torques\n\ 00093 geometry_msgs/Wrench total_wrench # sum of forces/torques in every DOF\n\ 00094 geometry_msgs/Vector3[] contact_positions # list of contact position\n\ 00095 geometry_msgs/Vector3[] contact_normals # list of contact normals\n\ 00096 float64[] depths # list of penetration depths\n\ 00097 \n\ 00098 ================================================================================\n\ 00099 MSG: geometry_msgs/Wrench\n\ 00100 # This represents force in free space, seperated into \n\ 00101 # it's linear and angular parts. \n\ 00102 Vector3 force\n\ 00103 Vector3 torque\n\ 00104 \n\ 00105 ================================================================================\n\ 00106 MSG: geometry_msgs/Vector3\n\ 00107 # This represents a vector in free space. \n\ 00108 \n\ 00109 float64 x\n\ 00110 float64 y\n\ 00111 float64 z\n\ 00112 "; } 00113 public: 00114 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00115 00116 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00117 00118 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00119 { 00120 ros::serialization::OStream stream(write_ptr, 1000000000); 00121 ros::serialization::serialize(stream, header); 00122 ros::serialization::serialize(stream, states); 00123 return stream.getData(); 00124 } 00125 00126 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00127 { 00128 ros::serialization::IStream stream(read_ptr, 1000000000); 00129 ros::serialization::deserialize(stream, header); 00130 ros::serialization::deserialize(stream, states); 00131 return stream.getData(); 00132 } 00133 00134 ROS_DEPRECATED virtual uint32_t serializationLength() const 00135 { 00136 uint32_t size = 0; 00137 size += ros::serialization::serializationLength(header); 00138 size += ros::serialization::serializationLength(states); 00139 return size; 00140 } 00141 00142 typedef boost::shared_ptr< ::gazebo_plugins::ContactsState_<ContainerAllocator> > Ptr; 00143 typedef boost::shared_ptr< ::gazebo_plugins::ContactsState_<ContainerAllocator> const> ConstPtr; 00144 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00145 }; // struct ContactsState 00146 typedef ::gazebo_plugins::ContactsState_<std::allocator<void> > ContactsState; 00147 00148 typedef boost::shared_ptr< ::gazebo_plugins::ContactsState> ContactsStatePtr; 00149 typedef boost::shared_ptr< ::gazebo_plugins::ContactsState const> ContactsStateConstPtr; 00150 00151 00152 template<typename ContainerAllocator> 00153 std::ostream& operator<<(std::ostream& s, const ::gazebo_plugins::ContactsState_<ContainerAllocator> & v) 00154 { 00155 ros::message_operations::Printer< ::gazebo_plugins::ContactsState_<ContainerAllocator> >::stream(s, "", v); 00156 return s;} 00157 00158 } // namespace gazebo_plugins 00159 00160 namespace ros 00161 { 00162 namespace message_traits 00163 { 00164 template<class ContainerAllocator> struct IsMessage< ::gazebo_plugins::ContactsState_<ContainerAllocator> > : public TrueType {}; 00165 template<class ContainerAllocator> struct IsMessage< ::gazebo_plugins::ContactsState_<ContainerAllocator> const> : public TrueType {}; 00166 template<class ContainerAllocator> 00167 struct MD5Sum< ::gazebo_plugins::ContactsState_<ContainerAllocator> > { 00168 static const char* value() 00169 { 00170 return "9d29ce6da289d3d303cc64b4cfdd0e84"; 00171 } 00172 00173 static const char* value(const ::gazebo_plugins::ContactsState_<ContainerAllocator> &) { return value(); } 00174 static const uint64_t static_value1 = 0x9d29ce6da289d3d3ULL; 00175 static const uint64_t static_value2 = 0x03cc64b4cfdd0e84ULL; 00176 }; 00177 00178 template<class ContainerAllocator> 00179 struct DataType< ::gazebo_plugins::ContactsState_<ContainerAllocator> > { 00180 static const char* value() 00181 { 00182 return "gazebo_plugins/ContactsState"; 00183 } 00184 00185 static const char* value(const ::gazebo_plugins::ContactsState_<ContainerAllocator> &) { return value(); } 00186 }; 00187 00188 template<class ContainerAllocator> 00189 struct Definition< ::gazebo_plugins::ContactsState_<ContainerAllocator> > { 00190 static const char* value() 00191 { 00192 return "#This message is deprecated. Please use the version in gazebo_msgs instead.\n\ 00193 \n\ 00194 Header header # stamp\n\ 00195 gazebo_msgs/ContactState[] states # array of geom pairs in contact\n\ 00196 \n\ 00197 ================================================================================\n\ 00198 MSG: std_msgs/Header\n\ 00199 # Standard metadata for higher-level stamped data types.\n\ 00200 # This is generally used to communicate timestamped data \n\ 00201 # in a particular coordinate frame.\n\ 00202 # \n\ 00203 # sequence ID: consecutively increasing ID \n\ 00204 uint32 seq\n\ 00205 #Two-integer timestamp that is expressed as:\n\ 00206 # * stamp.secs: seconds (stamp_secs) since epoch\n\ 00207 # * stamp.nsecs: nanoseconds since stamp_secs\n\ 00208 # time-handling sugar is provided by the client library\n\ 00209 time stamp\n\ 00210 #Frame this data is associated with\n\ 00211 # 0: no frame\n\ 00212 # 1: global frame\n\ 00213 string frame_id\n\ 00214 \n\ 00215 ================================================================================\n\ 00216 MSG: gazebo_msgs/ContactState\n\ 00217 string info # text info on this contact\n\ 00218 string geom1_name # name of contact geom1\n\ 00219 string geom2_name # name of contact geom2\n\ 00220 geometry_msgs/Wrench[] wrenches # list of forces/torques\n\ 00221 geometry_msgs/Wrench total_wrench # sum of forces/torques in every DOF\n\ 00222 geometry_msgs/Vector3[] contact_positions # list of contact position\n\ 00223 geometry_msgs/Vector3[] contact_normals # list of contact normals\n\ 00224 float64[] depths # list of penetration depths\n\ 00225 \n\ 00226 ================================================================================\n\ 00227 MSG: geometry_msgs/Wrench\n\ 00228 # This represents force in free space, seperated into \n\ 00229 # it's linear and angular parts. \n\ 00230 Vector3 force\n\ 00231 Vector3 torque\n\ 00232 \n\ 00233 ================================================================================\n\ 00234 MSG: geometry_msgs/Vector3\n\ 00235 # This represents a vector in free space. \n\ 00236 \n\ 00237 float64 x\n\ 00238 float64 y\n\ 00239 float64 z\n\ 00240 "; 00241 } 00242 00243 static const char* value(const ::gazebo_plugins::ContactsState_<ContainerAllocator> &) { return value(); } 00244 }; 00245 00246 template<class ContainerAllocator> struct HasHeader< ::gazebo_plugins::ContactsState_<ContainerAllocator> > : public TrueType {}; 00247 template<class ContainerAllocator> struct HasHeader< const ::gazebo_plugins::ContactsState_<ContainerAllocator> > : public TrueType {}; 00248 } // namespace message_traits 00249 } // namespace ros 00250 00251 namespace ros 00252 { 00253 namespace serialization 00254 { 00255 00256 template<class ContainerAllocator> struct Serializer< ::gazebo_plugins::ContactsState_<ContainerAllocator> > 00257 { 00258 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00259 { 00260 stream.next(m.header); 00261 stream.next(m.states); 00262 } 00263 00264 ROS_DECLARE_ALLINONE_SERIALIZER; 00265 }; // struct ContactsState_ 00266 } // namespace serialization 00267 } // namespace ros 00268 00269 namespace ros 00270 { 00271 namespace message_operations 00272 { 00273 00274 template<class ContainerAllocator> 00275 struct Printer< ::gazebo_plugins::ContactsState_<ContainerAllocator> > 00276 { 00277 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::gazebo_plugins::ContactsState_<ContainerAllocator> & v) 00278 { 00279 s << indent << "header: "; 00280 s << std::endl; 00281 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header); 00282 s << indent << "states[]" << std::endl; 00283 for (size_t i = 0; i < v.states.size(); ++i) 00284 { 00285 s << indent << " states[" << i << "]: "; 00286 s << std::endl; 00287 s << indent; 00288 Printer< ::gazebo_msgs::ContactState_<ContainerAllocator> >::stream(s, indent + " ", v.states[i]); 00289 } 00290 } 00291 }; 00292 00293 00294 } // namespace message_operations 00295 } // namespace ros 00296 00297 #endif // GAZEBO_PLUGINS_MESSAGE_CONTACTSSTATE_H 00298