CollisionOperation.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-arm_navigation/doc_stacks/2013-12-12_11-02-12.519893/arm_navigation/arm_navigation_msgs/msg/CollisionOperation.msg */
00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_COLLISIONOPERATION_H
00003 #define ARM_NAVIGATION_MSGS_MESSAGE_COLLISIONOPERATION_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 
00018 namespace arm_navigation_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct CollisionOperation_ {
00022   typedef CollisionOperation_<ContainerAllocator> Type;
00023 
00024   CollisionOperation_()
00025   : object1()
00026   , object2()
00027   , penetration_distance(0.0)
00028   , operation(0)
00029   {
00030   }
00031 
00032   CollisionOperation_(const ContainerAllocator& _alloc)
00033   : object1(_alloc)
00034   , object2(_alloc)
00035   , penetration_distance(0.0)
00036   , operation(0)
00037   {
00038   }
00039 
00040   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _object1_type;
00041   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  object1;
00042 
00043   typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  _object2_type;
00044   std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  object2;
00045 
00046   typedef double _penetration_distance_type;
00047   double penetration_distance;
00048 
00049   typedef int32_t _operation_type;
00050   int32_t operation;
00051 
00052   static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  COLLISION_SET_ALL;
00053   static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  COLLISION_SET_OBJECTS;
00054   static const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  COLLISION_SET_ATTACHED_OBJECTS;
00055   enum { DISABLE = 0 };
00056   enum { ENABLE = 1 };
00057 
00058   typedef boost::shared_ptr< ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> > Ptr;
00059   typedef boost::shared_ptr< ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator>  const> ConstPtr;
00060   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00061 }; // struct CollisionOperation
00062 typedef  ::arm_navigation_msgs::CollisionOperation_<std::allocator<void> > CollisionOperation;
00063 
00064 typedef boost::shared_ptr< ::arm_navigation_msgs::CollisionOperation> CollisionOperationPtr;
00065 typedef boost::shared_ptr< ::arm_navigation_msgs::CollisionOperation const> CollisionOperationConstPtr;
00066 
00067 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  CollisionOperation_<ContainerAllocator>::COLLISION_SET_ALL = "\"all\"";
00068 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  CollisionOperation_<ContainerAllocator>::COLLISION_SET_OBJECTS = "\"objects\"";
00069 template<typename ContainerAllocator> const std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other >  CollisionOperation_<ContainerAllocator>::COLLISION_SET_ATTACHED_OBJECTS = "\"attached\"";
00070 
00071 template<typename ContainerAllocator>
00072 std::ostream& operator<<(std::ostream& s, const  ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> & v)
00073 {
00074   ros::message_operations::Printer< ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> >::stream(s, "", v);
00075   return s;}
00076 
00077 } // namespace arm_navigation_msgs
00078 
00079 namespace ros
00080 {
00081 namespace message_traits
00082 {
00083 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> > : public TrueType {};
00084 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator>  const> : public TrueType {};
00085 template<class ContainerAllocator>
00086 struct MD5Sum< ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> > {
00087   static const char* value() 
00088   {
00089     return "e0cf3073b26bd86266c918a0c779f8a2";
00090   }
00091 
00092   static const char* value(const  ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> &) { return value(); } 
00093   static const uint64_t static_value1 = 0xe0cf3073b26bd862ULL;
00094   static const uint64_t static_value2 = 0x66c918a0c779f8a2ULL;
00095 };
00096 
00097 template<class ContainerAllocator>
00098 struct DataType< ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> > {
00099   static const char* value() 
00100   {
00101     return "arm_navigation_msgs/CollisionOperation";
00102   }
00103 
00104   static const char* value(const  ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> &) { return value(); } 
00105 };
00106 
00107 template<class ContainerAllocator>
00108 struct Definition< ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> > {
00109   static const char* value() 
00110   {
00111     return "# A definition of a collision operation\n\
00112 # E.g. (\"gripper\",COLLISION_SET_ALL,ENABLE) will enable collisions \n\
00113 # between the gripper and all objects in the collision space\n\
00114 \n\
00115 string object1\n\
00116 string object2\n\
00117 string COLLISION_SET_ALL=\"all\"\n\
00118 string COLLISION_SET_OBJECTS=\"objects\"\n\
00119 string COLLISION_SET_ATTACHED_OBJECTS=\"attached\"\n\
00120 \n\
00121 # The penetration distance to which collisions are allowed. This is 0.0 by default.\n\
00122 float64 penetration_distance\n\
00123 \n\
00124 # Flag that determines whether collisions will be enabled or disabled for the pair of objects specified above\n\
00125 int32 operation\n\
00126 int32 DISABLE=0\n\
00127 int32 ENABLE=1\n\
00128 \n\
00129 ";
00130   }
00131 
00132   static const char* value(const  ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> &) { return value(); } 
00133 };
00134 
00135 } // namespace message_traits
00136 } // namespace ros
00137 
00138 namespace ros
00139 {
00140 namespace serialization
00141 {
00142 
00143 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> >
00144 {
00145   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00146   {
00147     stream.next(m.object1);
00148     stream.next(m.object2);
00149     stream.next(m.penetration_distance);
00150     stream.next(m.operation);
00151   }
00152 
00153   ROS_DECLARE_ALLINONE_SERIALIZER;
00154 }; // struct CollisionOperation_
00155 } // namespace serialization
00156 } // namespace ros
00157 
00158 namespace ros
00159 {
00160 namespace message_operations
00161 {
00162 
00163 template<class ContainerAllocator>
00164 struct Printer< ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> >
00165 {
00166   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::arm_navigation_msgs::CollisionOperation_<ContainerAllocator> & v) 
00167   {
00168     s << indent << "object1: ";
00169     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.object1);
00170     s << indent << "object2: ";
00171     Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + "  ", v.object2);
00172     s << indent << "penetration_distance: ";
00173     Printer<double>::stream(s, indent + "  ", v.penetration_distance);
00174     s << indent << "operation: ";
00175     Printer<int32_t>::stream(s, indent + "  ", v.operation);
00176   }
00177 };
00178 
00179 
00180 } // namespace message_operations
00181 } // namespace ros
00182 
00183 #endif // ARM_NAVIGATION_MSGS_MESSAGE_COLLISIONOPERATION_H
00184 


arm_navigation_msgs
Author(s): Gil Jones
autogenerated on Thu Dec 12 2013 11:08:10