00001
00002 #ifndef MOTION_PLANNING_MSGS_MESSAGE_JOINTLIMITS_H
00003 #define MOTION_PLANNING_MSGS_MESSAGE_JOINTLIMITS_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 motion_planning_msgs
00015 {
00016 template <class ContainerAllocator>
00017 struct JointLimits_ : public ros::Message
00018 {
00019 typedef JointLimits_<ContainerAllocator> Type;
00020
00021 JointLimits_()
00022 : joint_name()
00023 , has_position_limits(0)
00024 , min_position(0.0)
00025 , max_position(0.0)
00026 , has_velocity_limits(0)
00027 , max_velocity(0.0)
00028 , has_acceleration_limits(0)
00029 , max_acceleration(0.0)
00030 {
00031 }
00032
00033 JointLimits_(const ContainerAllocator& _alloc)
00034 : joint_name(_alloc)
00035 , has_position_limits(0)
00036 , min_position(0.0)
00037 , max_position(0.0)
00038 , has_velocity_limits(0)
00039 , max_velocity(0.0)
00040 , has_acceleration_limits(0)
00041 , max_acceleration(0.0)
00042 {
00043 }
00044
00045 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _joint_name_type;
00046 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > joint_name;
00047
00048 typedef uint8_t _has_position_limits_type;
00049 uint8_t has_position_limits;
00050
00051 typedef double _min_position_type;
00052 double min_position;
00053
00054 typedef double _max_position_type;
00055 double max_position;
00056
00057 typedef uint8_t _has_velocity_limits_type;
00058 uint8_t has_velocity_limits;
00059
00060 typedef double _max_velocity_type;
00061 double max_velocity;
00062
00063 typedef uint8_t _has_acceleration_limits_type;
00064 uint8_t has_acceleration_limits;
00065
00066 typedef double _max_acceleration_type;
00067 double max_acceleration;
00068
00069
00070 private:
00071 static const char* __s_getDataType_() { return "motion_planning_msgs/JointLimits"; }
00072 public:
00073 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00074
00075 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00076
00077 private:
00078 static const char* __s_getMD5Sum_() { return "c3664ae4e985c5c886bfcffcbc6f1044"; }
00079 public:
00080 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00081
00082 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00083
00084 private:
00085 static const char* __s_getMessageDefinition_() { return "# This message contains information about limits of a particular joint (or control dimension)\n\
00086 string joint_name\n\
00087 \n\
00088 # true if the joint has position limits\n\
00089 uint8 has_position_limits\n\
00090 \n\
00091 # min and max position limits\n\
00092 float64 min_position\n\
00093 float64 max_position\n\
00094 \n\
00095 # true if joint has velocity limits\n\
00096 uint8 has_velocity_limits\n\
00097 \n\
00098 # max velocity limit\n\
00099 float64 max_velocity\n\
00100 # min_velocity is assumed to be -max_velocity\n\
00101 \n\
00102 # true if joint has acceleration limits\n\
00103 uint8 has_acceleration_limits\n\
00104 # max acceleration limit\n\
00105 float64 max_acceleration\n\
00106 # min_acceleration is assumed to be -max_acceleration\n\
00107 \n\
00108 "; }
00109 public:
00110 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00111
00112 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00113
00114 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00115 {
00116 ros::serialization::OStream stream(write_ptr, 1000000000);
00117 ros::serialization::serialize(stream, joint_name);
00118 ros::serialization::serialize(stream, has_position_limits);
00119 ros::serialization::serialize(stream, min_position);
00120 ros::serialization::serialize(stream, max_position);
00121 ros::serialization::serialize(stream, has_velocity_limits);
00122 ros::serialization::serialize(stream, max_velocity);
00123 ros::serialization::serialize(stream, has_acceleration_limits);
00124 ros::serialization::serialize(stream, max_acceleration);
00125 return stream.getData();
00126 }
00127
00128 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00129 {
00130 ros::serialization::IStream stream(read_ptr, 1000000000);
00131 ros::serialization::deserialize(stream, joint_name);
00132 ros::serialization::deserialize(stream, has_position_limits);
00133 ros::serialization::deserialize(stream, min_position);
00134 ros::serialization::deserialize(stream, max_position);
00135 ros::serialization::deserialize(stream, has_velocity_limits);
00136 ros::serialization::deserialize(stream, max_velocity);
00137 ros::serialization::deserialize(stream, has_acceleration_limits);
00138 ros::serialization::deserialize(stream, max_acceleration);
00139 return stream.getData();
00140 }
00141
00142 ROS_DEPRECATED virtual uint32_t serializationLength() const
00143 {
00144 uint32_t size = 0;
00145 size += ros::serialization::serializationLength(joint_name);
00146 size += ros::serialization::serializationLength(has_position_limits);
00147 size += ros::serialization::serializationLength(min_position);
00148 size += ros::serialization::serializationLength(max_position);
00149 size += ros::serialization::serializationLength(has_velocity_limits);
00150 size += ros::serialization::serializationLength(max_velocity);
00151 size += ros::serialization::serializationLength(has_acceleration_limits);
00152 size += ros::serialization::serializationLength(max_acceleration);
00153 return size;
00154 }
00155
00156 typedef boost::shared_ptr< ::motion_planning_msgs::JointLimits_<ContainerAllocator> > Ptr;
00157 typedef boost::shared_ptr< ::motion_planning_msgs::JointLimits_<ContainerAllocator> const> ConstPtr;
00158 };
00159 typedef ::motion_planning_msgs::JointLimits_<std::allocator<void> > JointLimits;
00160
00161 typedef boost::shared_ptr< ::motion_planning_msgs::JointLimits> JointLimitsPtr;
00162 typedef boost::shared_ptr< ::motion_planning_msgs::JointLimits const> JointLimitsConstPtr;
00163
00164
00165 template<typename ContainerAllocator>
00166 std::ostream& operator<<(std::ostream& s, const ::motion_planning_msgs::JointLimits_<ContainerAllocator> & v)
00167 {
00168 ros::message_operations::Printer< ::motion_planning_msgs::JointLimits_<ContainerAllocator> >::stream(s, "", v);
00169 return s;}
00170
00171 }
00172
00173 namespace ros
00174 {
00175 namespace message_traits
00176 {
00177 template<class ContainerAllocator>
00178 struct MD5Sum< ::motion_planning_msgs::JointLimits_<ContainerAllocator> > {
00179 static const char* value()
00180 {
00181 return "c3664ae4e985c5c886bfcffcbc6f1044";
00182 }
00183
00184 static const char* value(const ::motion_planning_msgs::JointLimits_<ContainerAllocator> &) { return value(); }
00185 static const uint64_t static_value1 = 0xc3664ae4e985c5c8ULL;
00186 static const uint64_t static_value2 = 0x86bfcffcbc6f1044ULL;
00187 };
00188
00189 template<class ContainerAllocator>
00190 struct DataType< ::motion_planning_msgs::JointLimits_<ContainerAllocator> > {
00191 static const char* value()
00192 {
00193 return "motion_planning_msgs/JointLimits";
00194 }
00195
00196 static const char* value(const ::motion_planning_msgs::JointLimits_<ContainerAllocator> &) { return value(); }
00197 };
00198
00199 template<class ContainerAllocator>
00200 struct Definition< ::motion_planning_msgs::JointLimits_<ContainerAllocator> > {
00201 static const char* value()
00202 {
00203 return "# This message contains information about limits of a particular joint (or control dimension)\n\
00204 string joint_name\n\
00205 \n\
00206 # true if the joint has position limits\n\
00207 uint8 has_position_limits\n\
00208 \n\
00209 # min and max position limits\n\
00210 float64 min_position\n\
00211 float64 max_position\n\
00212 \n\
00213 # true if joint has velocity limits\n\
00214 uint8 has_velocity_limits\n\
00215 \n\
00216 # max velocity limit\n\
00217 float64 max_velocity\n\
00218 # min_velocity is assumed to be -max_velocity\n\
00219 \n\
00220 # true if joint has acceleration limits\n\
00221 uint8 has_acceleration_limits\n\
00222 # max acceleration limit\n\
00223 float64 max_acceleration\n\
00224 # min_acceleration is assumed to be -max_acceleration\n\
00225 \n\
00226 ";
00227 }
00228
00229 static const char* value(const ::motion_planning_msgs::JointLimits_<ContainerAllocator> &) { return value(); }
00230 };
00231
00232 }
00233 }
00234
00235 namespace ros
00236 {
00237 namespace serialization
00238 {
00239
00240 template<class ContainerAllocator> struct Serializer< ::motion_planning_msgs::JointLimits_<ContainerAllocator> >
00241 {
00242 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00243 {
00244 stream.next(m.joint_name);
00245 stream.next(m.has_position_limits);
00246 stream.next(m.min_position);
00247 stream.next(m.max_position);
00248 stream.next(m.has_velocity_limits);
00249 stream.next(m.max_velocity);
00250 stream.next(m.has_acceleration_limits);
00251 stream.next(m.max_acceleration);
00252 }
00253
00254 ROS_DECLARE_ALLINONE_SERIALIZER;
00255 };
00256 }
00257 }
00258
00259 namespace ros
00260 {
00261 namespace message_operations
00262 {
00263
00264 template<class ContainerAllocator>
00265 struct Printer< ::motion_planning_msgs::JointLimits_<ContainerAllocator> >
00266 {
00267 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::motion_planning_msgs::JointLimits_<ContainerAllocator> & v)
00268 {
00269 s << indent << "joint_name: ";
00270 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_name);
00271 s << indent << "has_position_limits: ";
00272 Printer<uint8_t>::stream(s, indent + " ", v.has_position_limits);
00273 s << indent << "min_position: ";
00274 Printer<double>::stream(s, indent + " ", v.min_position);
00275 s << indent << "max_position: ";
00276 Printer<double>::stream(s, indent + " ", v.max_position);
00277 s << indent << "has_velocity_limits: ";
00278 Printer<uint8_t>::stream(s, indent + " ", v.has_velocity_limits);
00279 s << indent << "max_velocity: ";
00280 Printer<double>::stream(s, indent + " ", v.max_velocity);
00281 s << indent << "has_acceleration_limits: ";
00282 Printer<uint8_t>::stream(s, indent + " ", v.has_acceleration_limits);
00283 s << indent << "max_acceleration: ";
00284 Printer<double>::stream(s, indent + " ", v.max_acceleration);
00285 }
00286 };
00287
00288
00289 }
00290 }
00291
00292 #endif // MOTION_PLANNING_MSGS_MESSAGE_JOINTLIMITS_H
00293