00001
00002 #ifndef BRICS_ACTUATOR_MESSAGE_JOINTCONSTRAINT_H
00003 #define BRICS_ACTUATOR_MESSAGE_JOINTCONSTRAINT_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 "brics_actuator/JointValue.h"
00014
00015 namespace brics_actuator
00016 {
00017 template <class ContainerAllocator>
00018 struct JointConstraint_ : public ros::Message
00019 {
00020 typedef JointConstraint_<ContainerAllocator> Type;
00021
00022 JointConstraint_()
00023 : type()
00024 , value()
00025 {
00026 }
00027
00028 JointConstraint_(const ContainerAllocator& _alloc)
00029 : type(_alloc)
00030 , value(_alloc)
00031 {
00032 }
00033
00034 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _type_type;
00035 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > type;
00036
00037 typedef ::brics_actuator::JointValue_<ContainerAllocator> _value_type;
00038 ::brics_actuator::JointValue_<ContainerAllocator> value;
00039
00040
00041 private:
00042 static const char* __s_getDataType_() { return "brics_actuator/JointConstraint"; }
00043 public:
00044 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00045
00046 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00047
00048 private:
00049 static const char* __s_getMD5Sum_() { return "f77db04949b26b64f80564df22f00ecb"; }
00050 public:
00051 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00052
00053 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00054
00055 private:
00056 static const char* __s_getMessageDefinition_() { return "string type #smaller, greater, equal or <, >, =\n\
00057 JointValue value\n\
00058 \n\
00059 ================================================================================\n\
00060 MSG: brics_actuator/JointValue\n\
00061 time timeStamp #time of the data \n\
00062 string joint_uri\n\
00063 string unit #if empy expects si units, you can use boost::unit\n\
00064 float64 value\n\
00065 \n\
00066 "; }
00067 public:
00068 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00069
00070 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00071
00072 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00073 {
00074 ros::serialization::OStream stream(write_ptr, 1000000000);
00075 ros::serialization::serialize(stream, type);
00076 ros::serialization::serialize(stream, value);
00077 return stream.getData();
00078 }
00079
00080 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00081 {
00082 ros::serialization::IStream stream(read_ptr, 1000000000);
00083 ros::serialization::deserialize(stream, type);
00084 ros::serialization::deserialize(stream, value);
00085 return stream.getData();
00086 }
00087
00088 ROS_DEPRECATED virtual uint32_t serializationLength() const
00089 {
00090 uint32_t size = 0;
00091 size += ros::serialization::serializationLength(type);
00092 size += ros::serialization::serializationLength(value);
00093 return size;
00094 }
00095
00096 typedef boost::shared_ptr< ::brics_actuator::JointConstraint_<ContainerAllocator> > Ptr;
00097 typedef boost::shared_ptr< ::brics_actuator::JointConstraint_<ContainerAllocator> const> ConstPtr;
00098 };
00099 typedef ::brics_actuator::JointConstraint_<std::allocator<void> > JointConstraint;
00100
00101 typedef boost::shared_ptr< ::brics_actuator::JointConstraint> JointConstraintPtr;
00102 typedef boost::shared_ptr< ::brics_actuator::JointConstraint const> JointConstraintConstPtr;
00103
00104
00105 template<typename ContainerAllocator>
00106 std::ostream& operator<<(std::ostream& s, const ::brics_actuator::JointConstraint_<ContainerAllocator> & v)
00107 {
00108 ros::message_operations::Printer< ::brics_actuator::JointConstraint_<ContainerAllocator> >::stream(s, "", v);
00109 return s;}
00110
00111 }
00112
00113 namespace ros
00114 {
00115 namespace message_traits
00116 {
00117 template<class ContainerAllocator>
00118 struct MD5Sum< ::brics_actuator::JointConstraint_<ContainerAllocator> > {
00119 static const char* value()
00120 {
00121 return "f77db04949b26b64f80564df22f00ecb";
00122 }
00123
00124 static const char* value(const ::brics_actuator::JointConstraint_<ContainerAllocator> &) { return value(); }
00125 static const uint64_t static_value1 = 0xf77db04949b26b64ULL;
00126 static const uint64_t static_value2 = 0xf80564df22f00ecbULL;
00127 };
00128
00129 template<class ContainerAllocator>
00130 struct DataType< ::brics_actuator::JointConstraint_<ContainerAllocator> > {
00131 static const char* value()
00132 {
00133 return "brics_actuator/JointConstraint";
00134 }
00135
00136 static const char* value(const ::brics_actuator::JointConstraint_<ContainerAllocator> &) { return value(); }
00137 };
00138
00139 template<class ContainerAllocator>
00140 struct Definition< ::brics_actuator::JointConstraint_<ContainerAllocator> > {
00141 static const char* value()
00142 {
00143 return "string type #smaller, greater, equal or <, >, =\n\
00144 JointValue value\n\
00145 \n\
00146 ================================================================================\n\
00147 MSG: brics_actuator/JointValue\n\
00148 time timeStamp #time of the data \n\
00149 string joint_uri\n\
00150 string unit #if empy expects si units, you can use boost::unit\n\
00151 float64 value\n\
00152 \n\
00153 ";
00154 }
00155
00156 static const char* value(const ::brics_actuator::JointConstraint_<ContainerAllocator> &) { return value(); }
00157 };
00158
00159 }
00160 }
00161
00162 namespace ros
00163 {
00164 namespace serialization
00165 {
00166
00167 template<class ContainerAllocator> struct Serializer< ::brics_actuator::JointConstraint_<ContainerAllocator> >
00168 {
00169 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00170 {
00171 stream.next(m.type);
00172 stream.next(m.value);
00173 }
00174
00175 ROS_DECLARE_ALLINONE_SERIALIZER;
00176 };
00177 }
00178 }
00179
00180 namespace ros
00181 {
00182 namespace message_operations
00183 {
00184
00185 template<class ContainerAllocator>
00186 struct Printer< ::brics_actuator::JointConstraint_<ContainerAllocator> >
00187 {
00188 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::brics_actuator::JointConstraint_<ContainerAllocator> & v)
00189 {
00190 s << indent << "type: ";
00191 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.type);
00192 s << indent << "value: ";
00193 s << std::endl;
00194 Printer< ::brics_actuator::JointValue_<ContainerAllocator> >::stream(s, indent + " ", v.value);
00195 }
00196 };
00197
00198
00199 }
00200 }
00201
00202 #endif // BRICS_ACTUATOR_MESSAGE_JOINTCONSTRAINT_H
00203