$search
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-electric-cob_common/doc_stacks/2013-03-01_14-38-37.978792/cob_common/brics_actuator/msg/JointVelocities.msg */ 00002 #ifndef BRICS_ACTUATOR_MESSAGE_JOINTVELOCITIES_H 00003 #define BRICS_ACTUATOR_MESSAGE_JOINTVELOCITIES_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 #include "brics_actuator/Poison.h" 00018 #include "brics_actuator/JointValue.h" 00019 00020 namespace brics_actuator 00021 { 00022 template <class ContainerAllocator> 00023 struct JointVelocities_ { 00024 typedef JointVelocities_<ContainerAllocator> Type; 00025 00026 JointVelocities_() 00027 : poisonStamp() 00028 , velocities() 00029 { 00030 } 00031 00032 JointVelocities_(const ContainerAllocator& _alloc) 00033 : poisonStamp(_alloc) 00034 , velocities(_alloc) 00035 { 00036 } 00037 00038 typedef ::brics_actuator::Poison_<ContainerAllocator> _poisonStamp_type; 00039 ::brics_actuator::Poison_<ContainerAllocator> poisonStamp; 00040 00041 typedef std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > _velocities_type; 00042 std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > velocities; 00043 00044 00045 ROS_DEPRECATED uint32_t get_velocities_size() const { return (uint32_t)velocities.size(); } 00046 ROS_DEPRECATED void set_velocities_size(uint32_t size) { velocities.resize((size_t)size); } 00047 ROS_DEPRECATED void get_velocities_vec(std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > & vec) const { vec = this->velocities; } 00048 ROS_DEPRECATED void set_velocities_vec(const std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > & vec) { this->velocities = vec; } 00049 private: 00050 static const char* __s_getDataType_() { return "brics_actuator/JointVelocities"; } 00051 public: 00052 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00053 00054 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00055 00056 private: 00057 static const char* __s_getMD5Sum_() { return "9786afc900be50b3ba4113fcb65c9363"; } 00058 public: 00059 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00060 00061 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00062 00063 private: 00064 static const char* __s_getMessageDefinition_() { return "Poison poisonStamp\n\ 00065 JointValue[] velocities\n\ 00066 \n\ 00067 ================================================================================\n\ 00068 MSG: brics_actuator/Poison\n\ 00069 string originator # node id\n\ 00070 string description # encoding still an issue\n\ 00071 float32 qos # reliability of the channel\n\ 00072 # 0..1 where 1 means healthy\n\ 00073 \n\ 00074 ================================================================================\n\ 00075 MSG: brics_actuator/JointValue\n\ 00076 time timeStamp #time of the data \n\ 00077 string joint_uri\n\ 00078 string unit #if empy expects si units, you can use boost::unit\n\ 00079 float64 value\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, poisonStamp); 00091 ros::serialization::serialize(stream, velocities); 00092 return stream.getData(); 00093 } 00094 00095 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00096 { 00097 ros::serialization::IStream stream(read_ptr, 1000000000); 00098 ros::serialization::deserialize(stream, poisonStamp); 00099 ros::serialization::deserialize(stream, velocities); 00100 return stream.getData(); 00101 } 00102 00103 ROS_DEPRECATED virtual uint32_t serializationLength() const 00104 { 00105 uint32_t size = 0; 00106 size += ros::serialization::serializationLength(poisonStamp); 00107 size += ros::serialization::serializationLength(velocities); 00108 return size; 00109 } 00110 00111 typedef boost::shared_ptr< ::brics_actuator::JointVelocities_<ContainerAllocator> > Ptr; 00112 typedef boost::shared_ptr< ::brics_actuator::JointVelocities_<ContainerAllocator> const> ConstPtr; 00113 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00114 }; // struct JointVelocities 00115 typedef ::brics_actuator::JointVelocities_<std::allocator<void> > JointVelocities; 00116 00117 typedef boost::shared_ptr< ::brics_actuator::JointVelocities> JointVelocitiesPtr; 00118 typedef boost::shared_ptr< ::brics_actuator::JointVelocities const> JointVelocitiesConstPtr; 00119 00120 00121 template<typename ContainerAllocator> 00122 std::ostream& operator<<(std::ostream& s, const ::brics_actuator::JointVelocities_<ContainerAllocator> & v) 00123 { 00124 ros::message_operations::Printer< ::brics_actuator::JointVelocities_<ContainerAllocator> >::stream(s, "", v); 00125 return s;} 00126 00127 } // namespace brics_actuator 00128 00129 namespace ros 00130 { 00131 namespace message_traits 00132 { 00133 template<class ContainerAllocator> struct IsMessage< ::brics_actuator::JointVelocities_<ContainerAllocator> > : public TrueType {}; 00134 template<class ContainerAllocator> struct IsMessage< ::brics_actuator::JointVelocities_<ContainerAllocator> const> : public TrueType {}; 00135 template<class ContainerAllocator> 00136 struct MD5Sum< ::brics_actuator::JointVelocities_<ContainerAllocator> > { 00137 static const char* value() 00138 { 00139 return "9786afc900be50b3ba4113fcb65c9363"; 00140 } 00141 00142 static const char* value(const ::brics_actuator::JointVelocities_<ContainerAllocator> &) { return value(); } 00143 static const uint64_t static_value1 = 0x9786afc900be50b3ULL; 00144 static const uint64_t static_value2 = 0xba4113fcb65c9363ULL; 00145 }; 00146 00147 template<class ContainerAllocator> 00148 struct DataType< ::brics_actuator::JointVelocities_<ContainerAllocator> > { 00149 static const char* value() 00150 { 00151 return "brics_actuator/JointVelocities"; 00152 } 00153 00154 static const char* value(const ::brics_actuator::JointVelocities_<ContainerAllocator> &) { return value(); } 00155 }; 00156 00157 template<class ContainerAllocator> 00158 struct Definition< ::brics_actuator::JointVelocities_<ContainerAllocator> > { 00159 static const char* value() 00160 { 00161 return "Poison poisonStamp\n\ 00162 JointValue[] velocities\n\ 00163 \n\ 00164 ================================================================================\n\ 00165 MSG: brics_actuator/Poison\n\ 00166 string originator # node id\n\ 00167 string description # encoding still an issue\n\ 00168 float32 qos # reliability of the channel\n\ 00169 # 0..1 where 1 means healthy\n\ 00170 \n\ 00171 ================================================================================\n\ 00172 MSG: brics_actuator/JointValue\n\ 00173 time timeStamp #time of the data \n\ 00174 string joint_uri\n\ 00175 string unit #if empy expects si units, you can use boost::unit\n\ 00176 float64 value\n\ 00177 \n\ 00178 "; 00179 } 00180 00181 static const char* value(const ::brics_actuator::JointVelocities_<ContainerAllocator> &) { return value(); } 00182 }; 00183 00184 } // namespace message_traits 00185 } // namespace ros 00186 00187 namespace ros 00188 { 00189 namespace serialization 00190 { 00191 00192 template<class ContainerAllocator> struct Serializer< ::brics_actuator::JointVelocities_<ContainerAllocator> > 00193 { 00194 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00195 { 00196 stream.next(m.poisonStamp); 00197 stream.next(m.velocities); 00198 } 00199 00200 ROS_DECLARE_ALLINONE_SERIALIZER; 00201 }; // struct JointVelocities_ 00202 } // namespace serialization 00203 } // namespace ros 00204 00205 namespace ros 00206 { 00207 namespace message_operations 00208 { 00209 00210 template<class ContainerAllocator> 00211 struct Printer< ::brics_actuator::JointVelocities_<ContainerAllocator> > 00212 { 00213 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::brics_actuator::JointVelocities_<ContainerAllocator> & v) 00214 { 00215 s << indent << "poisonStamp: "; 00216 s << std::endl; 00217 Printer< ::brics_actuator::Poison_<ContainerAllocator> >::stream(s, indent + " ", v.poisonStamp); 00218 s << indent << "velocities[]" << std::endl; 00219 for (size_t i = 0; i < v.velocities.size(); ++i) 00220 { 00221 s << indent << " velocities[" << i << "]: "; 00222 s << std::endl; 00223 s << indent; 00224 Printer< ::brics_actuator::JointValue_<ContainerAllocator> >::stream(s, indent + " ", v.velocities[i]); 00225 } 00226 } 00227 }; 00228 00229 00230 } // namespace message_operations 00231 } // namespace ros 00232 00233 #endif // BRICS_ACTUATOR_MESSAGE_JOINTVELOCITIES_H 00234