$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_calibration/doc_stacks/2013-03-01_16-35-11.769043/pr2_calibration/joint_states_settler/msg/ConfigGoal.msg */ 00002 #ifndef JOINT_STATES_SETTLER_MESSAGE_CONFIGGOAL_H 00003 #define JOINT_STATES_SETTLER_MESSAGE_CONFIGGOAL_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 joint_states_settler 00019 { 00020 template <class ContainerAllocator> 00021 struct ConfigGoal_ { 00022 typedef ConfigGoal_<ContainerAllocator> Type; 00023 00024 ConfigGoal_() 00025 : joint_names() 00026 , tolerances() 00027 , max_step() 00028 , cache_size(0) 00029 { 00030 } 00031 00032 ConfigGoal_(const ContainerAllocator& _alloc) 00033 : joint_names(_alloc) 00034 , tolerances(_alloc) 00035 , max_step() 00036 , cache_size(0) 00037 { 00038 } 00039 00040 typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _joint_names_type; 00041 std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > joint_names; 00042 00043 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _tolerances_type; 00044 std::vector<double, typename ContainerAllocator::template rebind<double>::other > tolerances; 00045 00046 typedef ros::Duration _max_step_type; 00047 ros::Duration max_step; 00048 00049 typedef uint32_t _cache_size_type; 00050 uint32_t cache_size; 00051 00052 00053 ROS_DEPRECATED uint32_t get_joint_names_size() const { return (uint32_t)joint_names.size(); } 00054 ROS_DEPRECATED void set_joint_names_size(uint32_t size) { joint_names.resize((size_t)size); } 00055 ROS_DEPRECATED void get_joint_names_vec(std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) const { vec = this->joint_names; } 00056 ROS_DEPRECATED void set_joint_names_vec(const std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > & vec) { this->joint_names = vec; } 00057 ROS_DEPRECATED uint32_t get_tolerances_size() const { return (uint32_t)tolerances.size(); } 00058 ROS_DEPRECATED void set_tolerances_size(uint32_t size) { tolerances.resize((size_t)size); } 00059 ROS_DEPRECATED void get_tolerances_vec(std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) const { vec = this->tolerances; } 00060 ROS_DEPRECATED void set_tolerances_vec(const std::vector<double, typename ContainerAllocator::template rebind<double>::other > & vec) { this->tolerances = vec; } 00061 private: 00062 static const char* __s_getDataType_() { return "joint_states_settler/ConfigGoal"; } 00063 public: 00064 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00065 00066 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00067 00068 private: 00069 static const char* __s_getMD5Sum_() { return "863b25359077f9aa231257b3d1612b63"; } 00070 public: 00071 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00072 00073 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00074 00075 private: 00076 static const char* __s_getMessageDefinition_() { return "string[] joint_names # Names of the joints we're waiting to settle\n\ 00077 float64[] tolerances # Tolerance on each of the specified joints\n\ 00078 duration max_step # The maximum timestep between two elements in an interval\n\ 00079 uint32 cache_size # The size of our cache when searching for an interval\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, joint_names); 00091 ros::serialization::serialize(stream, tolerances); 00092 ros::serialization::serialize(stream, max_step); 00093 ros::serialization::serialize(stream, cache_size); 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, joint_names); 00101 ros::serialization::deserialize(stream, tolerances); 00102 ros::serialization::deserialize(stream, max_step); 00103 ros::serialization::deserialize(stream, cache_size); 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(joint_names); 00111 size += ros::serialization::serializationLength(tolerances); 00112 size += ros::serialization::serializationLength(max_step); 00113 size += ros::serialization::serializationLength(cache_size); 00114 return size; 00115 } 00116 00117 typedef boost::shared_ptr< ::joint_states_settler::ConfigGoal_<ContainerAllocator> > Ptr; 00118 typedef boost::shared_ptr< ::joint_states_settler::ConfigGoal_<ContainerAllocator> const> ConstPtr; 00119 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00120 }; // struct ConfigGoal 00121 typedef ::joint_states_settler::ConfigGoal_<std::allocator<void> > ConfigGoal; 00122 00123 typedef boost::shared_ptr< ::joint_states_settler::ConfigGoal> ConfigGoalPtr; 00124 typedef boost::shared_ptr< ::joint_states_settler::ConfigGoal const> ConfigGoalConstPtr; 00125 00126 00127 template<typename ContainerAllocator> 00128 std::ostream& operator<<(std::ostream& s, const ::joint_states_settler::ConfigGoal_<ContainerAllocator> & v) 00129 { 00130 ros::message_operations::Printer< ::joint_states_settler::ConfigGoal_<ContainerAllocator> >::stream(s, "", v); 00131 return s;} 00132 00133 } // namespace joint_states_settler 00134 00135 namespace ros 00136 { 00137 namespace message_traits 00138 { 00139 template<class ContainerAllocator> struct IsMessage< ::joint_states_settler::ConfigGoal_<ContainerAllocator> > : public TrueType {}; 00140 template<class ContainerAllocator> struct IsMessage< ::joint_states_settler::ConfigGoal_<ContainerAllocator> const> : public TrueType {}; 00141 template<class ContainerAllocator> 00142 struct MD5Sum< ::joint_states_settler::ConfigGoal_<ContainerAllocator> > { 00143 static const char* value() 00144 { 00145 return "863b25359077f9aa231257b3d1612b63"; 00146 } 00147 00148 static const char* value(const ::joint_states_settler::ConfigGoal_<ContainerAllocator> &) { return value(); } 00149 static const uint64_t static_value1 = 0x863b25359077f9aaULL; 00150 static const uint64_t static_value2 = 0x231257b3d1612b63ULL; 00151 }; 00152 00153 template<class ContainerAllocator> 00154 struct DataType< ::joint_states_settler::ConfigGoal_<ContainerAllocator> > { 00155 static const char* value() 00156 { 00157 return "joint_states_settler/ConfigGoal"; 00158 } 00159 00160 static const char* value(const ::joint_states_settler::ConfigGoal_<ContainerAllocator> &) { return value(); } 00161 }; 00162 00163 template<class ContainerAllocator> 00164 struct Definition< ::joint_states_settler::ConfigGoal_<ContainerAllocator> > { 00165 static const char* value() 00166 { 00167 return "string[] joint_names # Names of the joints we're waiting to settle\n\ 00168 float64[] tolerances # Tolerance on each of the specified joints\n\ 00169 duration max_step # The maximum timestep between two elements in an interval\n\ 00170 uint32 cache_size # The size of our cache when searching for an interval\n\ 00171 \n\ 00172 "; 00173 } 00174 00175 static const char* value(const ::joint_states_settler::ConfigGoal_<ContainerAllocator> &) { return value(); } 00176 }; 00177 00178 } // namespace message_traits 00179 } // namespace ros 00180 00181 namespace ros 00182 { 00183 namespace serialization 00184 { 00185 00186 template<class ContainerAllocator> struct Serializer< ::joint_states_settler::ConfigGoal_<ContainerAllocator> > 00187 { 00188 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00189 { 00190 stream.next(m.joint_names); 00191 stream.next(m.tolerances); 00192 stream.next(m.max_step); 00193 stream.next(m.cache_size); 00194 } 00195 00196 ROS_DECLARE_ALLINONE_SERIALIZER; 00197 }; // struct ConfigGoal_ 00198 } // namespace serialization 00199 } // namespace ros 00200 00201 namespace ros 00202 { 00203 namespace message_operations 00204 { 00205 00206 template<class ContainerAllocator> 00207 struct Printer< ::joint_states_settler::ConfigGoal_<ContainerAllocator> > 00208 { 00209 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::joint_states_settler::ConfigGoal_<ContainerAllocator> & v) 00210 { 00211 s << indent << "joint_names[]" << std::endl; 00212 for (size_t i = 0; i < v.joint_names.size(); ++i) 00213 { 00214 s << indent << " joint_names[" << i << "]: "; 00215 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]); 00216 } 00217 s << indent << "tolerances[]" << std::endl; 00218 for (size_t i = 0; i < v.tolerances.size(); ++i) 00219 { 00220 s << indent << " tolerances[" << i << "]: "; 00221 Printer<double>::stream(s, indent + " ", v.tolerances[i]); 00222 } 00223 s << indent << "max_step: "; 00224 Printer<ros::Duration>::stream(s, indent + " ", v.max_step); 00225 s << indent << "cache_size: "; 00226 Printer<uint32_t>::stream(s, indent + " ", v.cache_size); 00227 } 00228 }; 00229 00230 00231 } // namespace message_operations 00232 } // namespace ros 00233 00234 #endif // JOINT_STATES_SETTLER_MESSAGE_CONFIGGOAL_H 00235