00001
00002 #ifndef SAFE_BASE_CONTROLLER_MESSAGE_TWISTLIMITS_H
00003 #define SAFE_BASE_CONTROLLER_MESSAGE_TWISTLIMITS_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 #include "safe_base_controller/Vector3Limits.h"
00014 #include "safe_base_controller/Vector3Limits.h"
00015
00016 namespace safe_base_controller
00017 {
00018 template <class ContainerAllocator>
00019 struct TwistLimits_ : public ros::Message
00020 {
00021 typedef TwistLimits_<ContainerAllocator> Type;
00022
00023 TwistLimits_()
00024 : linear()
00025 , angular()
00026 {
00027 }
00028
00029 TwistLimits_(const ContainerAllocator& _alloc)
00030 : linear(_alloc)
00031 , angular(_alloc)
00032 {
00033 }
00034
00035 typedef ::safe_base_controller::Vector3Limits_<ContainerAllocator> _linear_type;
00036 ::safe_base_controller::Vector3Limits_<ContainerAllocator> linear;
00037
00038 typedef ::safe_base_controller::Vector3Limits_<ContainerAllocator> _angular_type;
00039 ::safe_base_controller::Vector3Limits_<ContainerAllocator> angular;
00040
00041
00042 private:
00043 static const char* __s_getDataType_() { return "safe_base_controller/TwistLimits"; }
00044 public:
00045 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00046
00047 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00048
00049 private:
00050 static const char* __s_getMD5Sum_() { return "5235fa346310174a9a636f40a549504a"; }
00051 public:
00052 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00053
00054 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00055
00056 private:
00057 static const char* __s_getMessageDefinition_() { return "# This expresses velocity limits in free space broken into it's linear and angular limit parts. \n\
00058 Vector3Limits linear\n\
00059 Vector3Limits angular\n\
00060 \n\
00061 ================================================================================\n\
00062 MSG: safe_base_controller/Vector3Limits\n\
00063 # This represents limits for a vector in free space. \n\
00064 float64 x_min\n\
00065 float64 x_max\n\
00066 float64 y_min\n\
00067 float64 y_max\n\
00068 float64 z_min\n\
00069 float64 z_max\n\
00070 \n\
00071 "; }
00072 public:
00073 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00074
00075 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00076
00077 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00078 {
00079 ros::serialization::OStream stream(write_ptr, 1000000000);
00080 ros::serialization::serialize(stream, linear);
00081 ros::serialization::serialize(stream, angular);
00082 return stream.getData();
00083 }
00084
00085 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00086 {
00087 ros::serialization::IStream stream(read_ptr, 1000000000);
00088 ros::serialization::deserialize(stream, linear);
00089 ros::serialization::deserialize(stream, angular);
00090 return stream.getData();
00091 }
00092
00093 ROS_DEPRECATED virtual uint32_t serializationLength() const
00094 {
00095 uint32_t size = 0;
00096 size += ros::serialization::serializationLength(linear);
00097 size += ros::serialization::serializationLength(angular);
00098 return size;
00099 }
00100
00101 typedef boost::shared_ptr< ::safe_base_controller::TwistLimits_<ContainerAllocator> > Ptr;
00102 typedef boost::shared_ptr< ::safe_base_controller::TwistLimits_<ContainerAllocator> const> ConstPtr;
00103 };
00104 typedef ::safe_base_controller::TwistLimits_<std::allocator<void> > TwistLimits;
00105
00106 typedef boost::shared_ptr< ::safe_base_controller::TwistLimits> TwistLimitsPtr;
00107 typedef boost::shared_ptr< ::safe_base_controller::TwistLimits const> TwistLimitsConstPtr;
00108
00109
00110 template<typename ContainerAllocator>
00111 std::ostream& operator<<(std::ostream& s, const ::safe_base_controller::TwistLimits_<ContainerAllocator> & v)
00112 {
00113 ros::message_operations::Printer< ::safe_base_controller::TwistLimits_<ContainerAllocator> >::stream(s, "", v);
00114 return s;}
00115
00116 }
00117
00118 namespace ros
00119 {
00120 namespace message_traits
00121 {
00122 template<class ContainerAllocator>
00123 struct MD5Sum< ::safe_base_controller::TwistLimits_<ContainerAllocator> > {
00124 static const char* value()
00125 {
00126 return "5235fa346310174a9a636f40a549504a";
00127 }
00128
00129 static const char* value(const ::safe_base_controller::TwistLimits_<ContainerAllocator> &) { return value(); }
00130 static const uint64_t static_value1 = 0x5235fa346310174aULL;
00131 static const uint64_t static_value2 = 0x9a636f40a549504aULL;
00132 };
00133
00134 template<class ContainerAllocator>
00135 struct DataType< ::safe_base_controller::TwistLimits_<ContainerAllocator> > {
00136 static const char* value()
00137 {
00138 return "safe_base_controller/TwistLimits";
00139 }
00140
00141 static const char* value(const ::safe_base_controller::TwistLimits_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 template<class ContainerAllocator>
00145 struct Definition< ::safe_base_controller::TwistLimits_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "# This expresses velocity limits in free space broken into it's linear and angular limit parts. \n\
00149 Vector3Limits linear\n\
00150 Vector3Limits angular\n\
00151 \n\
00152 ================================================================================\n\
00153 MSG: safe_base_controller/Vector3Limits\n\
00154 # This represents limits for a vector in free space. \n\
00155 float64 x_min\n\
00156 float64 x_max\n\
00157 float64 y_min\n\
00158 float64 y_max\n\
00159 float64 z_min\n\
00160 float64 z_max\n\
00161 \n\
00162 ";
00163 }
00164
00165 static const char* value(const ::safe_base_controller::TwistLimits_<ContainerAllocator> &) { return value(); }
00166 };
00167
00168 template<class ContainerAllocator> struct IsFixedSize< ::safe_base_controller::TwistLimits_<ContainerAllocator> > : public TrueType {};
00169 }
00170 }
00171
00172 namespace ros
00173 {
00174 namespace serialization
00175 {
00176
00177 template<class ContainerAllocator> struct Serializer< ::safe_base_controller::TwistLimits_<ContainerAllocator> >
00178 {
00179 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00180 {
00181 stream.next(m.linear);
00182 stream.next(m.angular);
00183 }
00184
00185 ROS_DECLARE_ALLINONE_SERIALIZER;
00186 };
00187 }
00188 }
00189
00190 namespace ros
00191 {
00192 namespace message_operations
00193 {
00194
00195 template<class ContainerAllocator>
00196 struct Printer< ::safe_base_controller::TwistLimits_<ContainerAllocator> >
00197 {
00198 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::safe_base_controller::TwistLimits_<ContainerAllocator> & v)
00199 {
00200 s << indent << "linear: ";
00201 s << std::endl;
00202 Printer< ::safe_base_controller::Vector3Limits_<ContainerAllocator> >::stream(s, indent + " ", v.linear);
00203 s << indent << "angular: ";
00204 s << std::endl;
00205 Printer< ::safe_base_controller::Vector3Limits_<ContainerAllocator> >::stream(s, indent + " ", v.angular);
00206 }
00207 };
00208
00209
00210 }
00211 }
00212
00213 #endif // SAFE_BASE_CONTROLLER_MESSAGE_TWISTLIMITS_H
00214