00001
00002 #ifndef SAFE_BASE_CONTROLLER_MESSAGE_VECTOR3LIMITS_H
00003 #define SAFE_BASE_CONTROLLER_MESSAGE_VECTOR3LIMITS_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013
00014 namespace safe_base_controller
00015 {
00016 template <class ContainerAllocator>
00017 struct Vector3Limits_ : public ros::Message
00018 {
00019 typedef Vector3Limits_<ContainerAllocator> Type;
00020
00021 Vector3Limits_()
00022 : x_min(0.0)
00023 , x_max(0.0)
00024 , y_min(0.0)
00025 , y_max(0.0)
00026 , z_min(0.0)
00027 , z_max(0.0)
00028 {
00029 }
00030
00031 Vector3Limits_(const ContainerAllocator& _alloc)
00032 : x_min(0.0)
00033 , x_max(0.0)
00034 , y_min(0.0)
00035 , y_max(0.0)
00036 , z_min(0.0)
00037 , z_max(0.0)
00038 {
00039 }
00040
00041 typedef double _x_min_type;
00042 double x_min;
00043
00044 typedef double _x_max_type;
00045 double x_max;
00046
00047 typedef double _y_min_type;
00048 double y_min;
00049
00050 typedef double _y_max_type;
00051 double y_max;
00052
00053 typedef double _z_min_type;
00054 double z_min;
00055
00056 typedef double _z_max_type;
00057 double z_max;
00058
00059
00060 private:
00061 static const char* __s_getDataType_() { return "safe_base_controller/Vector3Limits"; }
00062 public:
00063 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00064
00065 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00066
00067 private:
00068 static const char* __s_getMD5Sum_() { return "ad99bb284c3254d76796e1b66efe44bd"; }
00069 public:
00070 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00071
00072 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00073
00074 private:
00075 static const char* __s_getMessageDefinition_() { return "# This represents limits for a vector in free space. \n\
00076 float64 x_min\n\
00077 float64 x_max\n\
00078 float64 y_min\n\
00079 float64 y_max\n\
00080 float64 z_min\n\
00081 float64 z_max\n\
00082 \n\
00083 "; }
00084 public:
00085 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00086
00087 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00088
00089 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00090 {
00091 ros::serialization::OStream stream(write_ptr, 1000000000);
00092 ros::serialization::serialize(stream, x_min);
00093 ros::serialization::serialize(stream, x_max);
00094 ros::serialization::serialize(stream, y_min);
00095 ros::serialization::serialize(stream, y_max);
00096 ros::serialization::serialize(stream, z_min);
00097 ros::serialization::serialize(stream, z_max);
00098 return stream.getData();
00099 }
00100
00101 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00102 {
00103 ros::serialization::IStream stream(read_ptr, 1000000000);
00104 ros::serialization::deserialize(stream, x_min);
00105 ros::serialization::deserialize(stream, x_max);
00106 ros::serialization::deserialize(stream, y_min);
00107 ros::serialization::deserialize(stream, y_max);
00108 ros::serialization::deserialize(stream, z_min);
00109 ros::serialization::deserialize(stream, z_max);
00110 return stream.getData();
00111 }
00112
00113 ROS_DEPRECATED virtual uint32_t serializationLength() const
00114 {
00115 uint32_t size = 0;
00116 size += ros::serialization::serializationLength(x_min);
00117 size += ros::serialization::serializationLength(x_max);
00118 size += ros::serialization::serializationLength(y_min);
00119 size += ros::serialization::serializationLength(y_max);
00120 size += ros::serialization::serializationLength(z_min);
00121 size += ros::serialization::serializationLength(z_max);
00122 return size;
00123 }
00124
00125 typedef boost::shared_ptr< ::safe_base_controller::Vector3Limits_<ContainerAllocator> > Ptr;
00126 typedef boost::shared_ptr< ::safe_base_controller::Vector3Limits_<ContainerAllocator> const> ConstPtr;
00127 };
00128 typedef ::safe_base_controller::Vector3Limits_<std::allocator<void> > Vector3Limits;
00129
00130 typedef boost::shared_ptr< ::safe_base_controller::Vector3Limits> Vector3LimitsPtr;
00131 typedef boost::shared_ptr< ::safe_base_controller::Vector3Limits const> Vector3LimitsConstPtr;
00132
00133
00134 template<typename ContainerAllocator>
00135 std::ostream& operator<<(std::ostream& s, const ::safe_base_controller::Vector3Limits_<ContainerAllocator> & v)
00136 {
00137 ros::message_operations::Printer< ::safe_base_controller::Vector3Limits_<ContainerAllocator> >::stream(s, "", v);
00138 return s;}
00139
00140 }
00141
00142 namespace ros
00143 {
00144 namespace message_traits
00145 {
00146 template<class ContainerAllocator>
00147 struct MD5Sum< ::safe_base_controller::Vector3Limits_<ContainerAllocator> > {
00148 static const char* value()
00149 {
00150 return "ad99bb284c3254d76796e1b66efe44bd";
00151 }
00152
00153 static const char* value(const ::safe_base_controller::Vector3Limits_<ContainerAllocator> &) { return value(); }
00154 static const uint64_t static_value1 = 0xad99bb284c3254d7ULL;
00155 static const uint64_t static_value2 = 0x6796e1b66efe44bdULL;
00156 };
00157
00158 template<class ContainerAllocator>
00159 struct DataType< ::safe_base_controller::Vector3Limits_<ContainerAllocator> > {
00160 static const char* value()
00161 {
00162 return "safe_base_controller/Vector3Limits";
00163 }
00164
00165 static const char* value(const ::safe_base_controller::Vector3Limits_<ContainerAllocator> &) { return value(); }
00166 };
00167
00168 template<class ContainerAllocator>
00169 struct Definition< ::safe_base_controller::Vector3Limits_<ContainerAllocator> > {
00170 static const char* value()
00171 {
00172 return "# This represents limits for a vector in free space. \n\
00173 float64 x_min\n\
00174 float64 x_max\n\
00175 float64 y_min\n\
00176 float64 y_max\n\
00177 float64 z_min\n\
00178 float64 z_max\n\
00179 \n\
00180 ";
00181 }
00182
00183 static const char* value(const ::safe_base_controller::Vector3Limits_<ContainerAllocator> &) { return value(); }
00184 };
00185
00186 template<class ContainerAllocator> struct IsFixedSize< ::safe_base_controller::Vector3Limits_<ContainerAllocator> > : public TrueType {};
00187 }
00188 }
00189
00190 namespace ros
00191 {
00192 namespace serialization
00193 {
00194
00195 template<class ContainerAllocator> struct Serializer< ::safe_base_controller::Vector3Limits_<ContainerAllocator> >
00196 {
00197 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00198 {
00199 stream.next(m.x_min);
00200 stream.next(m.x_max);
00201 stream.next(m.y_min);
00202 stream.next(m.y_max);
00203 stream.next(m.z_min);
00204 stream.next(m.z_max);
00205 }
00206
00207 ROS_DECLARE_ALLINONE_SERIALIZER;
00208 };
00209 }
00210 }
00211
00212 namespace ros
00213 {
00214 namespace message_operations
00215 {
00216
00217 template<class ContainerAllocator>
00218 struct Printer< ::safe_base_controller::Vector3Limits_<ContainerAllocator> >
00219 {
00220 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::safe_base_controller::Vector3Limits_<ContainerAllocator> & v)
00221 {
00222 s << indent << "x_min: ";
00223 Printer<double>::stream(s, indent + " ", v.x_min);
00224 s << indent << "x_max: ";
00225 Printer<double>::stream(s, indent + " ", v.x_max);
00226 s << indent << "y_min: ";
00227 Printer<double>::stream(s, indent + " ", v.y_min);
00228 s << indent << "y_max: ";
00229 Printer<double>::stream(s, indent + " ", v.y_max);
00230 s << indent << "z_min: ";
00231 Printer<double>::stream(s, indent + " ", v.z_min);
00232 s << indent << "z_max: ";
00233 Printer<double>::stream(s, indent + " ", v.z_max);
00234 }
00235 };
00236
00237
00238 }
00239 }
00240
00241 #endif // SAFE_BASE_CONTROLLER_MESSAGE_VECTOR3LIMITS_H
00242