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