$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-pr2_self_test/doc_stacks/2013-03-02_13-02-42.165655/pr2_self_test/joint_qualification_controllers/msg/HysteresisRun.msg */ 00002 #ifndef JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_HYSTERESISRUN_H 00003 #define JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_HYSTERESISRUN_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_qualification_controllers 00019 { 00020 template <class ContainerAllocator> 00021 struct HysteresisRun_ { 00022 typedef HysteresisRun_<ContainerAllocator> Type; 00023 00024 HysteresisRun_() 00025 : time() 00026 , effort() 00027 , position() 00028 , velocity() 00029 , dir(0) 00030 { 00031 } 00032 00033 HysteresisRun_(const ContainerAllocator& _alloc) 00034 : time(_alloc) 00035 , effort(_alloc) 00036 , position(_alloc) 00037 , velocity(_alloc) 00038 , dir(0) 00039 { 00040 } 00041 00042 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _time_type; 00043 std::vector<float, typename ContainerAllocator::template rebind<float>::other > time; 00044 00045 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _effort_type; 00046 std::vector<float, typename ContainerAllocator::template rebind<float>::other > effort; 00047 00048 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _position_type; 00049 std::vector<float, typename ContainerAllocator::template rebind<float>::other > position; 00050 00051 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _velocity_type; 00052 std::vector<float, typename ContainerAllocator::template rebind<float>::other > velocity; 00053 00054 typedef uint8_t _dir_type; 00055 uint8_t dir; 00056 00057 enum { UP = 0 }; 00058 enum { DOWN = 1 }; 00059 00060 ROS_DEPRECATED uint32_t get_time_size() const { return (uint32_t)time.size(); } 00061 ROS_DEPRECATED void set_time_size(uint32_t size) { time.resize((size_t)size); } 00062 ROS_DEPRECATED void get_time_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->time; } 00063 ROS_DEPRECATED void set_time_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->time = vec; } 00064 ROS_DEPRECATED uint32_t get_effort_size() const { return (uint32_t)effort.size(); } 00065 ROS_DEPRECATED void set_effort_size(uint32_t size) { effort.resize((size_t)size); } 00066 ROS_DEPRECATED void get_effort_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->effort; } 00067 ROS_DEPRECATED void set_effort_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->effort = vec; } 00068 ROS_DEPRECATED uint32_t get_position_size() const { return (uint32_t)position.size(); } 00069 ROS_DEPRECATED void set_position_size(uint32_t size) { position.resize((size_t)size); } 00070 ROS_DEPRECATED void get_position_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->position; } 00071 ROS_DEPRECATED void set_position_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->position = vec; } 00072 ROS_DEPRECATED uint32_t get_velocity_size() const { return (uint32_t)velocity.size(); } 00073 ROS_DEPRECATED void set_velocity_size(uint32_t size) { velocity.resize((size_t)size); } 00074 ROS_DEPRECATED void get_velocity_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->velocity; } 00075 ROS_DEPRECATED void set_velocity_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->velocity = vec; } 00076 private: 00077 static const char* __s_getDataType_() { return "joint_qualification_controllers/HysteresisRun"; } 00078 public: 00079 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00080 00081 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00082 00083 private: 00084 static const char* __s_getMD5Sum_() { return "53b5a9cc98e4aeb9e2e39c07ea2a59f5"; } 00085 public: 00086 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00087 00088 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00089 00090 private: 00091 static const char* __s_getMessageDefinition_() { return "float32[] time\n\ 00092 float32[] effort\n\ 00093 float32[] position\n\ 00094 float32[] velocity\n\ 00095 uint8 dir\n\ 00096 uint8 UP=0\n\ 00097 uint8 DOWN=1\n\ 00098 \n\ 00099 "; } 00100 public: 00101 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00102 00103 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00104 00105 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00106 { 00107 ros::serialization::OStream stream(write_ptr, 1000000000); 00108 ros::serialization::serialize(stream, time); 00109 ros::serialization::serialize(stream, effort); 00110 ros::serialization::serialize(stream, position); 00111 ros::serialization::serialize(stream, velocity); 00112 ros::serialization::serialize(stream, dir); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00117 { 00118 ros::serialization::IStream stream(read_ptr, 1000000000); 00119 ros::serialization::deserialize(stream, time); 00120 ros::serialization::deserialize(stream, effort); 00121 ros::serialization::deserialize(stream, position); 00122 ros::serialization::deserialize(stream, velocity); 00123 ros::serialization::deserialize(stream, dir); 00124 return stream.getData(); 00125 } 00126 00127 ROS_DEPRECATED virtual uint32_t serializationLength() const 00128 { 00129 uint32_t size = 0; 00130 size += ros::serialization::serializationLength(time); 00131 size += ros::serialization::serializationLength(effort); 00132 size += ros::serialization::serializationLength(position); 00133 size += ros::serialization::serializationLength(velocity); 00134 size += ros::serialization::serializationLength(dir); 00135 return size; 00136 } 00137 00138 typedef boost::shared_ptr< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> > Ptr; 00139 typedef boost::shared_ptr< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> const> ConstPtr; 00140 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00141 }; // struct HysteresisRun 00142 typedef ::joint_qualification_controllers::HysteresisRun_<std::allocator<void> > HysteresisRun; 00143 00144 typedef boost::shared_ptr< ::joint_qualification_controllers::HysteresisRun> HysteresisRunPtr; 00145 typedef boost::shared_ptr< ::joint_qualification_controllers::HysteresisRun const> HysteresisRunConstPtr; 00146 00147 00148 template<typename ContainerAllocator> 00149 std::ostream& operator<<(std::ostream& s, const ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> & v) 00150 { 00151 ros::message_operations::Printer< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> >::stream(s, "", v); 00152 return s;} 00153 00154 } // namespace joint_qualification_controllers 00155 00156 namespace ros 00157 { 00158 namespace message_traits 00159 { 00160 template<class ContainerAllocator> struct IsMessage< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> > : public TrueType {}; 00161 template<class ContainerAllocator> struct IsMessage< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> const> : public TrueType {}; 00162 template<class ContainerAllocator> 00163 struct MD5Sum< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> > { 00164 static const char* value() 00165 { 00166 return "53b5a9cc98e4aeb9e2e39c07ea2a59f5"; 00167 } 00168 00169 static const char* value(const ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> &) { return value(); } 00170 static const uint64_t static_value1 = 0x53b5a9cc98e4aeb9ULL; 00171 static const uint64_t static_value2 = 0xe2e39c07ea2a59f5ULL; 00172 }; 00173 00174 template<class ContainerAllocator> 00175 struct DataType< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> > { 00176 static const char* value() 00177 { 00178 return "joint_qualification_controllers/HysteresisRun"; 00179 } 00180 00181 static const char* value(const ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> &) { return value(); } 00182 }; 00183 00184 template<class ContainerAllocator> 00185 struct Definition< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> > { 00186 static const char* value() 00187 { 00188 return "float32[] time\n\ 00189 float32[] effort\n\ 00190 float32[] position\n\ 00191 float32[] velocity\n\ 00192 uint8 dir\n\ 00193 uint8 UP=0\n\ 00194 uint8 DOWN=1\n\ 00195 \n\ 00196 "; 00197 } 00198 00199 static const char* value(const ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> &) { return value(); } 00200 }; 00201 00202 } // namespace message_traits 00203 } // namespace ros 00204 00205 namespace ros 00206 { 00207 namespace serialization 00208 { 00209 00210 template<class ContainerAllocator> struct Serializer< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> > 00211 { 00212 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00213 { 00214 stream.next(m.time); 00215 stream.next(m.effort); 00216 stream.next(m.position); 00217 stream.next(m.velocity); 00218 stream.next(m.dir); 00219 } 00220 00221 ROS_DECLARE_ALLINONE_SERIALIZER; 00222 }; // struct HysteresisRun_ 00223 } // namespace serialization 00224 } // namespace ros 00225 00226 namespace ros 00227 { 00228 namespace message_operations 00229 { 00230 00231 template<class ContainerAllocator> 00232 struct Printer< ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> > 00233 { 00234 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::joint_qualification_controllers::HysteresisRun_<ContainerAllocator> & v) 00235 { 00236 s << indent << "time[]" << std::endl; 00237 for (size_t i = 0; i < v.time.size(); ++i) 00238 { 00239 s << indent << " time[" << i << "]: "; 00240 Printer<float>::stream(s, indent + " ", v.time[i]); 00241 } 00242 s << indent << "effort[]" << std::endl; 00243 for (size_t i = 0; i < v.effort.size(); ++i) 00244 { 00245 s << indent << " effort[" << i << "]: "; 00246 Printer<float>::stream(s, indent + " ", v.effort[i]); 00247 } 00248 s << indent << "position[]" << std::endl; 00249 for (size_t i = 0; i < v.position.size(); ++i) 00250 { 00251 s << indent << " position[" << i << "]: "; 00252 Printer<float>::stream(s, indent + " ", v.position[i]); 00253 } 00254 s << indent << "velocity[]" << std::endl; 00255 for (size_t i = 0; i < v.velocity.size(); ++i) 00256 { 00257 s << indent << " velocity[" << i << "]: "; 00258 Printer<float>::stream(s, indent + " ", v.velocity[i]); 00259 } 00260 s << indent << "dir: "; 00261 Printer<uint8_t>::stream(s, indent + " ", v.dir); 00262 } 00263 }; 00264 00265 00266 } // namespace message_operations 00267 } // namespace ros 00268 00269 #endif // JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_HYSTERESISRUN_H 00270