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