$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/WristRollTurn.msg */ 00002 #ifndef JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_WRISTROLLTURN_H 00003 #define JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_WRISTROLLTURN_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 WristRollTurn_ { 00022 typedef WristRollTurn_<ContainerAllocator> Type; 00023 00024 WristRollTurn_() 00025 : time() 00026 , flex_position() 00027 , flex_effort() 00028 , flex_cmd() 00029 , roll_position() 00030 , roll_effort() 00031 , roll_cmd() 00032 , roll_velocity() 00033 { 00034 } 00035 00036 WristRollTurn_(const ContainerAllocator& _alloc) 00037 : time(_alloc) 00038 , flex_position(_alloc) 00039 , flex_effort(_alloc) 00040 , flex_cmd(_alloc) 00041 , roll_position(_alloc) 00042 , roll_effort(_alloc) 00043 , roll_cmd(_alloc) 00044 , roll_velocity(_alloc) 00045 { 00046 } 00047 00048 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _time_type; 00049 std::vector<float, typename ContainerAllocator::template rebind<float>::other > time; 00050 00051 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _flex_position_type; 00052 std::vector<float, typename ContainerAllocator::template rebind<float>::other > flex_position; 00053 00054 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _flex_effort_type; 00055 std::vector<float, typename ContainerAllocator::template rebind<float>::other > flex_effort; 00056 00057 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _flex_cmd_type; 00058 std::vector<float, typename ContainerAllocator::template rebind<float>::other > flex_cmd; 00059 00060 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _roll_position_type; 00061 std::vector<float, typename ContainerAllocator::template rebind<float>::other > roll_position; 00062 00063 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _roll_effort_type; 00064 std::vector<float, typename ContainerAllocator::template rebind<float>::other > roll_effort; 00065 00066 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _roll_cmd_type; 00067 std::vector<float, typename ContainerAllocator::template rebind<float>::other > roll_cmd; 00068 00069 typedef std::vector<float, typename ContainerAllocator::template rebind<float>::other > _roll_velocity_type; 00070 std::vector<float, typename ContainerAllocator::template rebind<float>::other > roll_velocity; 00071 00072 00073 ROS_DEPRECATED uint32_t get_time_size() const { return (uint32_t)time.size(); } 00074 ROS_DEPRECATED void set_time_size(uint32_t size) { time.resize((size_t)size); } 00075 ROS_DEPRECATED void get_time_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->time; } 00076 ROS_DEPRECATED void set_time_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->time = vec; } 00077 ROS_DEPRECATED uint32_t get_flex_position_size() const { return (uint32_t)flex_position.size(); } 00078 ROS_DEPRECATED void set_flex_position_size(uint32_t size) { flex_position.resize((size_t)size); } 00079 ROS_DEPRECATED void get_flex_position_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->flex_position; } 00080 ROS_DEPRECATED void set_flex_position_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->flex_position = vec; } 00081 ROS_DEPRECATED uint32_t get_flex_effort_size() const { return (uint32_t)flex_effort.size(); } 00082 ROS_DEPRECATED void set_flex_effort_size(uint32_t size) { flex_effort.resize((size_t)size); } 00083 ROS_DEPRECATED void get_flex_effort_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->flex_effort; } 00084 ROS_DEPRECATED void set_flex_effort_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->flex_effort = vec; } 00085 ROS_DEPRECATED uint32_t get_flex_cmd_size() const { return (uint32_t)flex_cmd.size(); } 00086 ROS_DEPRECATED void set_flex_cmd_size(uint32_t size) { flex_cmd.resize((size_t)size); } 00087 ROS_DEPRECATED void get_flex_cmd_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->flex_cmd; } 00088 ROS_DEPRECATED void set_flex_cmd_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->flex_cmd = vec; } 00089 ROS_DEPRECATED uint32_t get_roll_position_size() const { return (uint32_t)roll_position.size(); } 00090 ROS_DEPRECATED void set_roll_position_size(uint32_t size) { roll_position.resize((size_t)size); } 00091 ROS_DEPRECATED void get_roll_position_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->roll_position; } 00092 ROS_DEPRECATED void set_roll_position_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->roll_position = vec; } 00093 ROS_DEPRECATED uint32_t get_roll_effort_size() const { return (uint32_t)roll_effort.size(); } 00094 ROS_DEPRECATED void set_roll_effort_size(uint32_t size) { roll_effort.resize((size_t)size); } 00095 ROS_DEPRECATED void get_roll_effort_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->roll_effort; } 00096 ROS_DEPRECATED void set_roll_effort_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->roll_effort = vec; } 00097 ROS_DEPRECATED uint32_t get_roll_cmd_size() const { return (uint32_t)roll_cmd.size(); } 00098 ROS_DEPRECATED void set_roll_cmd_size(uint32_t size) { roll_cmd.resize((size_t)size); } 00099 ROS_DEPRECATED void get_roll_cmd_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->roll_cmd; } 00100 ROS_DEPRECATED void set_roll_cmd_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->roll_cmd = vec; } 00101 ROS_DEPRECATED uint32_t get_roll_velocity_size() const { return (uint32_t)roll_velocity.size(); } 00102 ROS_DEPRECATED void set_roll_velocity_size(uint32_t size) { roll_velocity.resize((size_t)size); } 00103 ROS_DEPRECATED void get_roll_velocity_vec(std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) const { vec = this->roll_velocity; } 00104 ROS_DEPRECATED void set_roll_velocity_vec(const std::vector<float, typename ContainerAllocator::template rebind<float>::other > & vec) { this->roll_velocity = vec; } 00105 private: 00106 static const char* __s_getDataType_() { return "joint_qualification_controllers/WristRollTurn"; } 00107 public: 00108 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00109 00110 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00111 00112 private: 00113 static const char* __s_getMD5Sum_() { return "27db8c0ca950f1334a70a45b5bc8427f"; } 00114 public: 00115 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00116 00117 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00118 00119 private: 00120 static const char* __s_getMessageDefinition_() { return "float32[] time\n\ 00121 float32[] flex_position\n\ 00122 float32[] flex_effort\n\ 00123 float32[] flex_cmd\n\ 00124 float32[] roll_position\n\ 00125 float32[] roll_effort\n\ 00126 float32[] roll_cmd\n\ 00127 float32[] roll_velocity\n\ 00128 \n\ 00129 "; } 00130 public: 00131 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00132 00133 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00134 00135 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00136 { 00137 ros::serialization::OStream stream(write_ptr, 1000000000); 00138 ros::serialization::serialize(stream, time); 00139 ros::serialization::serialize(stream, flex_position); 00140 ros::serialization::serialize(stream, flex_effort); 00141 ros::serialization::serialize(stream, flex_cmd); 00142 ros::serialization::serialize(stream, roll_position); 00143 ros::serialization::serialize(stream, roll_effort); 00144 ros::serialization::serialize(stream, roll_cmd); 00145 ros::serialization::serialize(stream, roll_velocity); 00146 return stream.getData(); 00147 } 00148 00149 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00150 { 00151 ros::serialization::IStream stream(read_ptr, 1000000000); 00152 ros::serialization::deserialize(stream, time); 00153 ros::serialization::deserialize(stream, flex_position); 00154 ros::serialization::deserialize(stream, flex_effort); 00155 ros::serialization::deserialize(stream, flex_cmd); 00156 ros::serialization::deserialize(stream, roll_position); 00157 ros::serialization::deserialize(stream, roll_effort); 00158 ros::serialization::deserialize(stream, roll_cmd); 00159 ros::serialization::deserialize(stream, roll_velocity); 00160 return stream.getData(); 00161 } 00162 00163 ROS_DEPRECATED virtual uint32_t serializationLength() const 00164 { 00165 uint32_t size = 0; 00166 size += ros::serialization::serializationLength(time); 00167 size += ros::serialization::serializationLength(flex_position); 00168 size += ros::serialization::serializationLength(flex_effort); 00169 size += ros::serialization::serializationLength(flex_cmd); 00170 size += ros::serialization::serializationLength(roll_position); 00171 size += ros::serialization::serializationLength(roll_effort); 00172 size += ros::serialization::serializationLength(roll_cmd); 00173 size += ros::serialization::serializationLength(roll_velocity); 00174 return size; 00175 } 00176 00177 typedef boost::shared_ptr< ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> > Ptr; 00178 typedef boost::shared_ptr< ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> const> ConstPtr; 00179 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00180 }; // struct WristRollTurn 00181 typedef ::joint_qualification_controllers::WristRollTurn_<std::allocator<void> > WristRollTurn; 00182 00183 typedef boost::shared_ptr< ::joint_qualification_controllers::WristRollTurn> WristRollTurnPtr; 00184 typedef boost::shared_ptr< ::joint_qualification_controllers::WristRollTurn const> WristRollTurnConstPtr; 00185 00186 00187 template<typename ContainerAllocator> 00188 std::ostream& operator<<(std::ostream& s, const ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> & v) 00189 { 00190 ros::message_operations::Printer< ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> >::stream(s, "", v); 00191 return s;} 00192 00193 } // namespace joint_qualification_controllers 00194 00195 namespace ros 00196 { 00197 namespace message_traits 00198 { 00199 template<class ContainerAllocator> struct IsMessage< ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> > : public TrueType {}; 00200 template<class ContainerAllocator> struct IsMessage< ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> const> : public TrueType {}; 00201 template<class ContainerAllocator> 00202 struct MD5Sum< ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> > { 00203 static const char* value() 00204 { 00205 return "27db8c0ca950f1334a70a45b5bc8427f"; 00206 } 00207 00208 static const char* value(const ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> &) { return value(); } 00209 static const uint64_t static_value1 = 0x27db8c0ca950f133ULL; 00210 static const uint64_t static_value2 = 0x4a70a45b5bc8427fULL; 00211 }; 00212 00213 template<class ContainerAllocator> 00214 struct DataType< ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> > { 00215 static const char* value() 00216 { 00217 return "joint_qualification_controllers/WristRollTurn"; 00218 } 00219 00220 static const char* value(const ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> &) { return value(); } 00221 }; 00222 00223 template<class ContainerAllocator> 00224 struct Definition< ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> > { 00225 static const char* value() 00226 { 00227 return "float32[] time\n\ 00228 float32[] flex_position\n\ 00229 float32[] flex_effort\n\ 00230 float32[] flex_cmd\n\ 00231 float32[] roll_position\n\ 00232 float32[] roll_effort\n\ 00233 float32[] roll_cmd\n\ 00234 float32[] roll_velocity\n\ 00235 \n\ 00236 "; 00237 } 00238 00239 static const char* value(const ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> &) { return value(); } 00240 }; 00241 00242 } // namespace message_traits 00243 } // namespace ros 00244 00245 namespace ros 00246 { 00247 namespace serialization 00248 { 00249 00250 template<class ContainerAllocator> struct Serializer< ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> > 00251 { 00252 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00253 { 00254 stream.next(m.time); 00255 stream.next(m.flex_position); 00256 stream.next(m.flex_effort); 00257 stream.next(m.flex_cmd); 00258 stream.next(m.roll_position); 00259 stream.next(m.roll_effort); 00260 stream.next(m.roll_cmd); 00261 stream.next(m.roll_velocity); 00262 } 00263 00264 ROS_DECLARE_ALLINONE_SERIALIZER; 00265 }; // struct WristRollTurn_ 00266 } // namespace serialization 00267 } // namespace ros 00268 00269 namespace ros 00270 { 00271 namespace message_operations 00272 { 00273 00274 template<class ContainerAllocator> 00275 struct Printer< ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> > 00276 { 00277 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::joint_qualification_controllers::WristRollTurn_<ContainerAllocator> & v) 00278 { 00279 s << indent << "time[]" << std::endl; 00280 for (size_t i = 0; i < v.time.size(); ++i) 00281 { 00282 s << indent << " time[" << i << "]: "; 00283 Printer<float>::stream(s, indent + " ", v.time[i]); 00284 } 00285 s << indent << "flex_position[]" << std::endl; 00286 for (size_t i = 0; i < v.flex_position.size(); ++i) 00287 { 00288 s << indent << " flex_position[" << i << "]: "; 00289 Printer<float>::stream(s, indent + " ", v.flex_position[i]); 00290 } 00291 s << indent << "flex_effort[]" << std::endl; 00292 for (size_t i = 0; i < v.flex_effort.size(); ++i) 00293 { 00294 s << indent << " flex_effort[" << i << "]: "; 00295 Printer<float>::stream(s, indent + " ", v.flex_effort[i]); 00296 } 00297 s << indent << "flex_cmd[]" << std::endl; 00298 for (size_t i = 0; i < v.flex_cmd.size(); ++i) 00299 { 00300 s << indent << " flex_cmd[" << i << "]: "; 00301 Printer<float>::stream(s, indent + " ", v.flex_cmd[i]); 00302 } 00303 s << indent << "roll_position[]" << std::endl; 00304 for (size_t i = 0; i < v.roll_position.size(); ++i) 00305 { 00306 s << indent << " roll_position[" << i << "]: "; 00307 Printer<float>::stream(s, indent + " ", v.roll_position[i]); 00308 } 00309 s << indent << "roll_effort[]" << std::endl; 00310 for (size_t i = 0; i < v.roll_effort.size(); ++i) 00311 { 00312 s << indent << " roll_effort[" << i << "]: "; 00313 Printer<float>::stream(s, indent + " ", v.roll_effort[i]); 00314 } 00315 s << indent << "roll_cmd[]" << std::endl; 00316 for (size_t i = 0; i < v.roll_cmd.size(); ++i) 00317 { 00318 s << indent << " roll_cmd[" << i << "]: "; 00319 Printer<float>::stream(s, indent + " ", v.roll_cmd[i]); 00320 } 00321 s << indent << "roll_velocity[]" << std::endl; 00322 for (size_t i = 0; i < v.roll_velocity.size(); ++i) 00323 { 00324 s << indent << " roll_velocity[" << i << "]: "; 00325 Printer<float>::stream(s, indent + " ", v.roll_velocity[i]); 00326 } 00327 } 00328 }; 00329 00330 00331 } // namespace message_operations 00332 } // namespace ros 00333 00334 #endif // JOINT_QUALIFICATION_CONTROLLERS_MESSAGE_WRISTROLLTURN_H 00335