$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/JointImpedances.msg */ 00002 #ifndef BRICS_ACTUATOR_MESSAGE_JOINTIMPEDANCES_H 00003 #define BRICS_ACTUATOR_MESSAGE_JOINTIMPEDANCES_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 #include "brics_actuator/JointValue.h" 00020 00021 namespace brics_actuator 00022 { 00023 template <class ContainerAllocator> 00024 struct JointImpedances_ { 00025 typedef JointImpedances_<ContainerAllocator> Type; 00026 00027 JointImpedances_() 00028 : poisonStamp() 00029 , dampings() 00030 , stiffnesses() 00031 { 00032 } 00033 00034 JointImpedances_(const ContainerAllocator& _alloc) 00035 : poisonStamp(_alloc) 00036 , dampings(_alloc) 00037 , stiffnesses(_alloc) 00038 { 00039 } 00040 00041 typedef ::brics_actuator::Poison_<ContainerAllocator> _poisonStamp_type; 00042 ::brics_actuator::Poison_<ContainerAllocator> poisonStamp; 00043 00044 typedef std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > _dampings_type; 00045 std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > dampings; 00046 00047 typedef std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > _stiffnesses_type; 00048 std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > stiffnesses; 00049 00050 00051 ROS_DEPRECATED uint32_t get_dampings_size() const { return (uint32_t)dampings.size(); } 00052 ROS_DEPRECATED void set_dampings_size(uint32_t size) { dampings.resize((size_t)size); } 00053 ROS_DEPRECATED void get_dampings_vec(std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > & vec) const { vec = this->dampings; } 00054 ROS_DEPRECATED void set_dampings_vec(const std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > & vec) { this->dampings = vec; } 00055 ROS_DEPRECATED uint32_t get_stiffnesses_size() const { return (uint32_t)stiffnesses.size(); } 00056 ROS_DEPRECATED void set_stiffnesses_size(uint32_t size) { stiffnesses.resize((size_t)size); } 00057 ROS_DEPRECATED void get_stiffnesses_vec(std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > & vec) const { vec = this->stiffnesses; } 00058 ROS_DEPRECATED void set_stiffnesses_vec(const std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > & vec) { this->stiffnesses = vec; } 00059 private: 00060 static const char* __s_getDataType_() { return "brics_actuator/JointImpedances"; } 00061 public: 00062 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); } 00063 00064 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); } 00065 00066 private: 00067 static const char* __s_getMD5Sum_() { return "14fdbb76121290f17525acd99e7242c6"; } 00068 public: 00069 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); } 00070 00071 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); } 00072 00073 private: 00074 static const char* __s_getMessageDefinition_() { return "Poison poisonStamp\n\ 00075 JointValue[] dampings\n\ 00076 JointValue[] stiffnesses\n\ 00077 \n\ 00078 ================================================================================\n\ 00079 MSG: brics_actuator/Poison\n\ 00080 string originator # node id\n\ 00081 string description # encoding still an issue\n\ 00082 float32 qos # reliability of the channel\n\ 00083 # 0..1 where 1 means healthy\n\ 00084 \n\ 00085 ================================================================================\n\ 00086 MSG: brics_actuator/JointValue\n\ 00087 time timeStamp #time of the data \n\ 00088 string joint_uri\n\ 00089 string unit #if empy expects si units, you can use boost::unit\n\ 00090 float64 value\n\ 00091 \n\ 00092 "; } 00093 public: 00094 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); } 00095 00096 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); } 00097 00098 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const 00099 { 00100 ros::serialization::OStream stream(write_ptr, 1000000000); 00101 ros::serialization::serialize(stream, poisonStamp); 00102 ros::serialization::serialize(stream, dampings); 00103 ros::serialization::serialize(stream, stiffnesses); 00104 return stream.getData(); 00105 } 00106 00107 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr) 00108 { 00109 ros::serialization::IStream stream(read_ptr, 1000000000); 00110 ros::serialization::deserialize(stream, poisonStamp); 00111 ros::serialization::deserialize(stream, dampings); 00112 ros::serialization::deserialize(stream, stiffnesses); 00113 return stream.getData(); 00114 } 00115 00116 ROS_DEPRECATED virtual uint32_t serializationLength() const 00117 { 00118 uint32_t size = 0; 00119 size += ros::serialization::serializationLength(poisonStamp); 00120 size += ros::serialization::serializationLength(dampings); 00121 size += ros::serialization::serializationLength(stiffnesses); 00122 return size; 00123 } 00124 00125 typedef boost::shared_ptr< ::brics_actuator::JointImpedances_<ContainerAllocator> > Ptr; 00126 typedef boost::shared_ptr< ::brics_actuator::JointImpedances_<ContainerAllocator> const> ConstPtr; 00127 boost::shared_ptr<std::map<std::string, std::string> > __connection_header; 00128 }; // struct JointImpedances 00129 typedef ::brics_actuator::JointImpedances_<std::allocator<void> > JointImpedances; 00130 00131 typedef boost::shared_ptr< ::brics_actuator::JointImpedances> JointImpedancesPtr; 00132 typedef boost::shared_ptr< ::brics_actuator::JointImpedances const> JointImpedancesConstPtr; 00133 00134 00135 template<typename ContainerAllocator> 00136 std::ostream& operator<<(std::ostream& s, const ::brics_actuator::JointImpedances_<ContainerAllocator> & v) 00137 { 00138 ros::message_operations::Printer< ::brics_actuator::JointImpedances_<ContainerAllocator> >::stream(s, "", v); 00139 return s;} 00140 00141 } // namespace brics_actuator 00142 00143 namespace ros 00144 { 00145 namespace message_traits 00146 { 00147 template<class ContainerAllocator> struct IsMessage< ::brics_actuator::JointImpedances_<ContainerAllocator> > : public TrueType {}; 00148 template<class ContainerAllocator> struct IsMessage< ::brics_actuator::JointImpedances_<ContainerAllocator> const> : public TrueType {}; 00149 template<class ContainerAllocator> 00150 struct MD5Sum< ::brics_actuator::JointImpedances_<ContainerAllocator> > { 00151 static const char* value() 00152 { 00153 return "14fdbb76121290f17525acd99e7242c6"; 00154 } 00155 00156 static const char* value(const ::brics_actuator::JointImpedances_<ContainerAllocator> &) { return value(); } 00157 static const uint64_t static_value1 = 0x14fdbb76121290f1ULL; 00158 static const uint64_t static_value2 = 0x7525acd99e7242c6ULL; 00159 }; 00160 00161 template<class ContainerAllocator> 00162 struct DataType< ::brics_actuator::JointImpedances_<ContainerAllocator> > { 00163 static const char* value() 00164 { 00165 return "brics_actuator/JointImpedances"; 00166 } 00167 00168 static const char* value(const ::brics_actuator::JointImpedances_<ContainerAllocator> &) { return value(); } 00169 }; 00170 00171 template<class ContainerAllocator> 00172 struct Definition< ::brics_actuator::JointImpedances_<ContainerAllocator> > { 00173 static const char* value() 00174 { 00175 return "Poison poisonStamp\n\ 00176 JointValue[] dampings\n\ 00177 JointValue[] stiffnesses\n\ 00178 \n\ 00179 ================================================================================\n\ 00180 MSG: brics_actuator/Poison\n\ 00181 string originator # node id\n\ 00182 string description # encoding still an issue\n\ 00183 float32 qos # reliability of the channel\n\ 00184 # 0..1 where 1 means healthy\n\ 00185 \n\ 00186 ================================================================================\n\ 00187 MSG: brics_actuator/JointValue\n\ 00188 time timeStamp #time of the data \n\ 00189 string joint_uri\n\ 00190 string unit #if empy expects si units, you can use boost::unit\n\ 00191 float64 value\n\ 00192 \n\ 00193 "; 00194 } 00195 00196 static const char* value(const ::brics_actuator::JointImpedances_<ContainerAllocator> &) { return value(); } 00197 }; 00198 00199 } // namespace message_traits 00200 } // namespace ros 00201 00202 namespace ros 00203 { 00204 namespace serialization 00205 { 00206 00207 template<class ContainerAllocator> struct Serializer< ::brics_actuator::JointImpedances_<ContainerAllocator> > 00208 { 00209 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m) 00210 { 00211 stream.next(m.poisonStamp); 00212 stream.next(m.dampings); 00213 stream.next(m.stiffnesses); 00214 } 00215 00216 ROS_DECLARE_ALLINONE_SERIALIZER; 00217 }; // struct JointImpedances_ 00218 } // namespace serialization 00219 } // namespace ros 00220 00221 namespace ros 00222 { 00223 namespace message_operations 00224 { 00225 00226 template<class ContainerAllocator> 00227 struct Printer< ::brics_actuator::JointImpedances_<ContainerAllocator> > 00228 { 00229 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::brics_actuator::JointImpedances_<ContainerAllocator> & v) 00230 { 00231 s << indent << "poisonStamp: "; 00232 s << std::endl; 00233 Printer< ::brics_actuator::Poison_<ContainerAllocator> >::stream(s, indent + " ", v.poisonStamp); 00234 s << indent << "dampings[]" << std::endl; 00235 for (size_t i = 0; i < v.dampings.size(); ++i) 00236 { 00237 s << indent << " dampings[" << i << "]: "; 00238 s << std::endl; 00239 s << indent; 00240 Printer< ::brics_actuator::JointValue_<ContainerAllocator> >::stream(s, indent + " ", v.dampings[i]); 00241 } 00242 s << indent << "stiffnesses[]" << std::endl; 00243 for (size_t i = 0; i < v.stiffnesses.size(); ++i) 00244 { 00245 s << indent << " stiffnesses[" << i << "]: "; 00246 s << std::endl; 00247 s << indent; 00248 Printer< ::brics_actuator::JointValue_<ContainerAllocator> >::stream(s, indent + " ", v.stiffnesses[i]); 00249 } 00250 } 00251 }; 00252 00253 00254 } // namespace message_operations 00255 } // namespace ros 00256 00257 #endif // BRICS_ACTUATOR_MESSAGE_JOINTIMPEDANCES_H 00258