00001
00002 #ifndef CONTROL_MSGS_MESSAGE_JOINTTOLERANCE_H
00003 #define CONTROL_MSGS_MESSAGE_JOINTTOLERANCE_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 control_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct JointTolerance_ {
00022 typedef JointTolerance_<ContainerAllocator> Type;
00023
00024 JointTolerance_()
00025 : name()
00026 , position(0.0)
00027 , velocity(0.0)
00028 , acceleration(0.0)
00029 {
00030 }
00031
00032 JointTolerance_(const ContainerAllocator& _alloc)
00033 : name(_alloc)
00034 , position(0.0)
00035 , velocity(0.0)
00036 , acceleration(0.0)
00037 {
00038 }
00039
00040 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00041 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00042
00043 typedef double _position_type;
00044 double position;
00045
00046 typedef double _velocity_type;
00047 double velocity;
00048
00049 typedef double _acceleration_type;
00050 double acceleration;
00051
00052
00053 private:
00054 static const char* __s_getDataType_() { return "control_msgs/JointTolerance"; }
00055 public:
00056 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00057
00058 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00059
00060 private:
00061 static const char* __s_getMD5Sum_() { return "f544fe9c16cf04547e135dd6063ff5be"; }
00062 public:
00063 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00064
00065 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00066
00067 private:
00068 static const char* __s_getMessageDefinition_() { return "# The tolerances specify the amount the position, velocity, and\n\
00069 # accelerations can vary from the setpoints. For example, in the case\n\
00070 # of trajectory control, when the actual position varies beyond\n\
00071 # (desired position + position tolerance), the trajectory goal may\n\
00072 # abort.\n\
00073 # \n\
00074 # There are two special values for tolerances:\n\
00075 # * 0 - The tolerance is unspecified and will remain at whatever the default is\n\
00076 # * -1 - The tolerance is \"erased\". If there was a default, the joint will be\n\
00077 # allowed to move without restriction.\n\
00078 \n\
00079 string name\n\
00080 float64 position # in radians or meters (for a revolute or prismatic joint, respectively)\n\
00081 float64 velocity # in rad/sec or m/sec\n\
00082 float64 acceleration # in rad/sec^2 or m/sec^2\n\
00083 \n\
00084 "; }
00085 public:
00086 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00087
00088 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00089
00090 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00091 {
00092 ros::serialization::OStream stream(write_ptr, 1000000000);
00093 ros::serialization::serialize(stream, name);
00094 ros::serialization::serialize(stream, position);
00095 ros::serialization::serialize(stream, velocity);
00096 ros::serialization::serialize(stream, acceleration);
00097 return stream.getData();
00098 }
00099
00100 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00101 {
00102 ros::serialization::IStream stream(read_ptr, 1000000000);
00103 ros::serialization::deserialize(stream, name);
00104 ros::serialization::deserialize(stream, position);
00105 ros::serialization::deserialize(stream, velocity);
00106 ros::serialization::deserialize(stream, acceleration);
00107 return stream.getData();
00108 }
00109
00110 ROS_DEPRECATED virtual uint32_t serializationLength() const
00111 {
00112 uint32_t size = 0;
00113 size += ros::serialization::serializationLength(name);
00114 size += ros::serialization::serializationLength(position);
00115 size += ros::serialization::serializationLength(velocity);
00116 size += ros::serialization::serializationLength(acceleration);
00117 return size;
00118 }
00119
00120 typedef boost::shared_ptr< ::control_msgs::JointTolerance_<ContainerAllocator> > Ptr;
00121 typedef boost::shared_ptr< ::control_msgs::JointTolerance_<ContainerAllocator> const> ConstPtr;
00122 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00123 };
00124 typedef ::control_msgs::JointTolerance_<std::allocator<void> > JointTolerance;
00125
00126 typedef boost::shared_ptr< ::control_msgs::JointTolerance> JointTolerancePtr;
00127 typedef boost::shared_ptr< ::control_msgs::JointTolerance const> JointToleranceConstPtr;
00128
00129
00130 template<typename ContainerAllocator>
00131 std::ostream& operator<<(std::ostream& s, const ::control_msgs::JointTolerance_<ContainerAllocator> & v)
00132 {
00133 ros::message_operations::Printer< ::control_msgs::JointTolerance_<ContainerAllocator> >::stream(s, "", v);
00134 return s;}
00135
00136 }
00137
00138 namespace ros
00139 {
00140 namespace message_traits
00141 {
00142 template<class ContainerAllocator> struct IsMessage< ::control_msgs::JointTolerance_<ContainerAllocator> > : public TrueType {};
00143 template<class ContainerAllocator> struct IsMessage< ::control_msgs::JointTolerance_<ContainerAllocator> const> : public TrueType {};
00144 template<class ContainerAllocator>
00145 struct MD5Sum< ::control_msgs::JointTolerance_<ContainerAllocator> > {
00146 static const char* value()
00147 {
00148 return "f544fe9c16cf04547e135dd6063ff5be";
00149 }
00150
00151 static const char* value(const ::control_msgs::JointTolerance_<ContainerAllocator> &) { return value(); }
00152 static const uint64_t static_value1 = 0xf544fe9c16cf0454ULL;
00153 static const uint64_t static_value2 = 0x7e135dd6063ff5beULL;
00154 };
00155
00156 template<class ContainerAllocator>
00157 struct DataType< ::control_msgs::JointTolerance_<ContainerAllocator> > {
00158 static const char* value()
00159 {
00160 return "control_msgs/JointTolerance";
00161 }
00162
00163 static const char* value(const ::control_msgs::JointTolerance_<ContainerAllocator> &) { return value(); }
00164 };
00165
00166 template<class ContainerAllocator>
00167 struct Definition< ::control_msgs::JointTolerance_<ContainerAllocator> > {
00168 static const char* value()
00169 {
00170 return "# The tolerances specify the amount the position, velocity, and\n\
00171 # accelerations can vary from the setpoints. For example, in the case\n\
00172 # of trajectory control, when the actual position varies beyond\n\
00173 # (desired position + position tolerance), the trajectory goal may\n\
00174 # abort.\n\
00175 # \n\
00176 # There are two special values for tolerances:\n\
00177 # * 0 - The tolerance is unspecified and will remain at whatever the default is\n\
00178 # * -1 - The tolerance is \"erased\". If there was a default, the joint will be\n\
00179 # allowed to move without restriction.\n\
00180 \n\
00181 string name\n\
00182 float64 position # in radians or meters (for a revolute or prismatic joint, respectively)\n\
00183 float64 velocity # in rad/sec or m/sec\n\
00184 float64 acceleration # in rad/sec^2 or m/sec^2\n\
00185 \n\
00186 ";
00187 }
00188
00189 static const char* value(const ::control_msgs::JointTolerance_<ContainerAllocator> &) { return value(); }
00190 };
00191
00192 }
00193 }
00194
00195 namespace ros
00196 {
00197 namespace serialization
00198 {
00199
00200 template<class ContainerAllocator> struct Serializer< ::control_msgs::JointTolerance_<ContainerAllocator> >
00201 {
00202 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00203 {
00204 stream.next(m.name);
00205 stream.next(m.position);
00206 stream.next(m.velocity);
00207 stream.next(m.acceleration);
00208 }
00209
00210 ROS_DECLARE_ALLINONE_SERIALIZER;
00211 };
00212 }
00213 }
00214
00215 namespace ros
00216 {
00217 namespace message_operations
00218 {
00219
00220 template<class ContainerAllocator>
00221 struct Printer< ::control_msgs::JointTolerance_<ContainerAllocator> >
00222 {
00223 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::control_msgs::JointTolerance_<ContainerAllocator> & v)
00224 {
00225 s << indent << "name: ";
00226 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00227 s << indent << "position: ";
00228 Printer<double>::stream(s, indent + " ", v.position);
00229 s << indent << "velocity: ";
00230 Printer<double>::stream(s, indent + " ", v.velocity);
00231 s << indent << "acceleration: ";
00232 Printer<double>::stream(s, indent + " ", v.acceleration);
00233 }
00234 };
00235
00236
00237 }
00238 }
00239
00240 #endif // CONTROL_MSGS_MESSAGE_JOINTTOLERANCE_H
00241