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