ContactsState.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-simulator_gazebo/doc_stacks/2014-01-05_11-32-34.493080/simulator_gazebo/gazebo_msgs/msg/ContactsState.msg */
00002 #ifndef GAZEBO_MSGS_MESSAGE_CONTACTSSTATE_H
00003 #define GAZEBO_MSGS_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_msgs
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   typedef boost::shared_ptr< ::gazebo_msgs::ContactsState_<ContainerAllocator> > Ptr;
00046   typedef boost::shared_ptr< ::gazebo_msgs::ContactsState_<ContainerAllocator>  const> ConstPtr;
00047   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 }; // struct ContactsState
00049 typedef  ::gazebo_msgs::ContactsState_<std::allocator<void> > ContactsState;
00050 
00051 typedef boost::shared_ptr< ::gazebo_msgs::ContactsState> ContactsStatePtr;
00052 typedef boost::shared_ptr< ::gazebo_msgs::ContactsState const> ContactsStateConstPtr;
00053 
00054 
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const  ::gazebo_msgs::ContactsState_<ContainerAllocator> & v)
00057 {
00058   ros::message_operations::Printer< ::gazebo_msgs::ContactsState_<ContainerAllocator> >::stream(s, "", v);
00059   return s;}
00060 
00061 } // namespace gazebo_msgs
00062 
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ContactsState_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::gazebo_msgs::ContactsState_<ContainerAllocator>  const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::gazebo_msgs::ContactsState_<ContainerAllocator> > {
00071   static const char* value() 
00072   {
00073     return "acbcb1601a8e525bf72509f18e6f668d";
00074   }
00075 
00076   static const char* value(const  ::gazebo_msgs::ContactsState_<ContainerAllocator> &) { return value(); } 
00077   static const uint64_t static_value1 = 0xacbcb1601a8e525bULL;
00078   static const uint64_t static_value2 = 0xf72509f18e6f668dULL;
00079 };
00080 
00081 template<class ContainerAllocator>
00082 struct DataType< ::gazebo_msgs::ContactsState_<ContainerAllocator> > {
00083   static const char* value() 
00084   {
00085     return "gazebo_msgs/ContactsState";
00086   }
00087 
00088   static const char* value(const  ::gazebo_msgs::ContactsState_<ContainerAllocator> &) { return value(); } 
00089 };
00090 
00091 template<class ContainerAllocator>
00092 struct Definition< ::gazebo_msgs::ContactsState_<ContainerAllocator> > {
00093   static const char* value() 
00094   {
00095     return "Header header                                   # stamp\n\
00096 gazebo_msgs/ContactState[] states            # array of geom pairs in contact\n\
00097 \n\
00098 ================================================================================\n\
00099 MSG: std_msgs/Header\n\
00100 # Standard metadata for higher-level stamped data types.\n\
00101 # This is generally used to communicate timestamped data \n\
00102 # in a particular coordinate frame.\n\
00103 # \n\
00104 # sequence ID: consecutively increasing ID \n\
00105 uint32 seq\n\
00106 #Two-integer timestamp that is expressed as:\n\
00107 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00108 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00109 # time-handling sugar is provided by the client library\n\
00110 time stamp\n\
00111 #Frame this data is associated with\n\
00112 # 0: no frame\n\
00113 # 1: global frame\n\
00114 string frame_id\n\
00115 \n\
00116 ================================================================================\n\
00117 MSG: gazebo_msgs/ContactState\n\
00118 string info                                   # text info on this contact\n\
00119 string collision1_name                        # name of contact collision1\n\
00120 string collision2_name                        # name of contact collision2\n\
00121 geometry_msgs/Wrench[] wrenches               # list of forces/torques\n\
00122 geometry_msgs/Wrench total_wrench             # sum of forces/torques in every DOF\n\
00123 geometry_msgs/Vector3[] contact_positions     # list of contact position\n\
00124 geometry_msgs/Vector3[] contact_normals       # list of contact normals\n\
00125 float64[] depths                              # list of penetration depths\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   }
00143 
00144   static const char* value(const  ::gazebo_msgs::ContactsState_<ContainerAllocator> &) { return value(); } 
00145 };
00146 
00147 template<class ContainerAllocator> struct HasHeader< ::gazebo_msgs::ContactsState_<ContainerAllocator> > : public TrueType {};
00148 template<class ContainerAllocator> struct HasHeader< const ::gazebo_msgs::ContactsState_<ContainerAllocator> > : public TrueType {};
00149 } // namespace message_traits
00150 } // namespace ros
00151 
00152 namespace ros
00153 {
00154 namespace serialization
00155 {
00156 
00157 template<class ContainerAllocator> struct Serializer< ::gazebo_msgs::ContactsState_<ContainerAllocator> >
00158 {
00159   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00160   {
00161     stream.next(m.header);
00162     stream.next(m.states);
00163   }
00164 
00165   ROS_DECLARE_ALLINONE_SERIALIZER;
00166 }; // struct ContactsState_
00167 } // namespace serialization
00168 } // namespace ros
00169 
00170 namespace ros
00171 {
00172 namespace message_operations
00173 {
00174 
00175 template<class ContainerAllocator>
00176 struct Printer< ::gazebo_msgs::ContactsState_<ContainerAllocator> >
00177 {
00178   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::gazebo_msgs::ContactsState_<ContainerAllocator> & v) 
00179   {
00180     s << indent << "header: ";
00181 s << std::endl;
00182     Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + "  ", v.header);
00183     s << indent << "states[]" << std::endl;
00184     for (size_t i = 0; i < v.states.size(); ++i)
00185     {
00186       s << indent << "  states[" << i << "]: ";
00187       s << std::endl;
00188       s << indent;
00189       Printer< ::gazebo_msgs::ContactState_<ContainerAllocator> >::stream(s, indent + "    ", v.states[i]);
00190     }
00191   }
00192 };
00193 
00194 
00195 } // namespace message_operations
00196 } // namespace ros
00197 
00198 #endif // GAZEBO_MSGS_MESSAGE_CONTACTSSTATE_H
00199 


gazebo_msgs
Author(s): John Hsu
autogenerated on Sun Jan 5 2014 11:34:32