Ray.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-fuerte-jsk-ros-pkg/doc_stacks/2013-03-23_12-16-27.483192/jsk-ros-pkg/openrave_planning/openraveros/msg/Ray.msg */
00002 #ifndef OPENRAVEROS_MESSAGE_RAY_H
00003 #define OPENRAVEROS_MESSAGE_RAY_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 openraveros
00019 {
00020 template <class ContainerAllocator>
00021 struct Ray_ {
00022   typedef Ray_<ContainerAllocator> Type;
00023 
00024   Ray_()
00025   : position()
00026   , direction()
00027   {
00028     position.assign(0.0);
00029     direction.assign(0.0);
00030   }
00031 
00032   Ray_(const ContainerAllocator& _alloc)
00033   : position()
00034   , direction()
00035   {
00036     position.assign(0.0);
00037     direction.assign(0.0);
00038   }
00039 
00040   typedef boost::array<float, 3>  _position_type;
00041   boost::array<float, 3>  position;
00042 
00043   typedef boost::array<float, 3>  _direction_type;
00044   boost::array<float, 3>  direction;
00045 
00046 
00047   typedef boost::shared_ptr< ::openraveros::Ray_<ContainerAllocator> > Ptr;
00048   typedef boost::shared_ptr< ::openraveros::Ray_<ContainerAllocator>  const> ConstPtr;
00049   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00050 }; // struct Ray
00051 typedef  ::openraveros::Ray_<std::allocator<void> > Ray;
00052 
00053 typedef boost::shared_ptr< ::openraveros::Ray> RayPtr;
00054 typedef boost::shared_ptr< ::openraveros::Ray const> RayConstPtr;
00055 
00056 
00057 template<typename ContainerAllocator>
00058 std::ostream& operator<<(std::ostream& s, const  ::openraveros::Ray_<ContainerAllocator> & v)
00059 {
00060   ros::message_operations::Printer< ::openraveros::Ray_<ContainerAllocator> >::stream(s, "", v);
00061   return s;}
00062 
00063 } // namespace openraveros
00064 
00065 namespace ros
00066 {
00067 namespace message_traits
00068 {
00069 template<class ContainerAllocator> struct IsMessage< ::openraveros::Ray_<ContainerAllocator> > : public TrueType {};
00070 template<class ContainerAllocator> struct IsMessage< ::openraveros::Ray_<ContainerAllocator>  const> : public TrueType {};
00071 template<class ContainerAllocator>
00072 struct MD5Sum< ::openraveros::Ray_<ContainerAllocator> > {
00073   static const char* value() 
00074   {
00075     return "f959602c8c2ec407852a35257f84293c";
00076   }
00077 
00078   static const char* value(const  ::openraveros::Ray_<ContainerAllocator> &) { return value(); } 
00079   static const uint64_t static_value1 = 0xf959602c8c2ec407ULL;
00080   static const uint64_t static_value2 = 0x852a35257f84293cULL;
00081 };
00082 
00083 template<class ContainerAllocator>
00084 struct DataType< ::openraveros::Ray_<ContainerAllocator> > {
00085   static const char* value() 
00086   {
00087     return "openraveros/Ray";
00088   }
00089 
00090   static const char* value(const  ::openraveros::Ray_<ContainerAllocator> &) { return value(); } 
00091 };
00092 
00093 template<class ContainerAllocator>
00094 struct Definition< ::openraveros::Ray_<ContainerAllocator> > {
00095   static const char* value() 
00096   {
00097     return "# defines a ray starting at position and going along direction\n\
00098 float32[3] position\n\
00099 float32[3] direction\n\
00100 \n\
00101 ";
00102   }
00103 
00104   static const char* value(const  ::openraveros::Ray_<ContainerAllocator> &) { return value(); } 
00105 };
00106 
00107 template<class ContainerAllocator> struct IsFixedSize< ::openraveros::Ray_<ContainerAllocator> > : public TrueType {};
00108 } // namespace message_traits
00109 } // namespace ros
00110 
00111 namespace ros
00112 {
00113 namespace serialization
00114 {
00115 
00116 template<class ContainerAllocator> struct Serializer< ::openraveros::Ray_<ContainerAllocator> >
00117 {
00118   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00119   {
00120     stream.next(m.position);
00121     stream.next(m.direction);
00122   }
00123 
00124   ROS_DECLARE_ALLINONE_SERIALIZER;
00125 }; // struct Ray_
00126 } // namespace serialization
00127 } // namespace ros
00128 
00129 namespace ros
00130 {
00131 namespace message_operations
00132 {
00133 
00134 template<class ContainerAllocator>
00135 struct Printer< ::openraveros::Ray_<ContainerAllocator> >
00136 {
00137   template<typename Stream> static void stream(Stream& s, const std::string& indent, const  ::openraveros::Ray_<ContainerAllocator> & v) 
00138   {
00139     s << indent << "position[]" << std::endl;
00140     for (size_t i = 0; i < v.position.size(); ++i)
00141     {
00142       s << indent << "  position[" << i << "]: ";
00143       Printer<float>::stream(s, indent + "  ", v.position[i]);
00144     }
00145     s << indent << "direction[]" << std::endl;
00146     for (size_t i = 0; i < v.direction.size(); ++i)
00147     {
00148       s << indent << "  direction[" << i << "]: ";
00149       Printer<float>::stream(s, indent + "  ", v.direction[i]);
00150     }
00151   }
00152 };
00153 
00154 
00155 } // namespace message_operations
00156 } // namespace ros
00157 
00158 #endif // OPENRAVEROS_MESSAGE_RAY_H
00159 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


openraveros
Author(s): Rosen Diankov (rosen.diankov@gmail.com)
autogenerated on Sat Mar 23 2013 22:16:08