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