Go to the documentation of this file.00001
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 typedef boost::shared_ptr< ::brics_actuator::JointImpedances_<ContainerAllocator> > Ptr;
00052 typedef boost::shared_ptr< ::brics_actuator::JointImpedances_<ContainerAllocator> const> ConstPtr;
00053 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00054 };
00055 typedef ::brics_actuator::JointImpedances_<std::allocator<void> > JointImpedances;
00056
00057 typedef boost::shared_ptr< ::brics_actuator::JointImpedances> JointImpedancesPtr;
00058 typedef boost::shared_ptr< ::brics_actuator::JointImpedances const> JointImpedancesConstPtr;
00059
00060
00061 template<typename ContainerAllocator>
00062 std::ostream& operator<<(std::ostream& s, const ::brics_actuator::JointImpedances_<ContainerAllocator> & v)
00063 {
00064 ros::message_operations::Printer< ::brics_actuator::JointImpedances_<ContainerAllocator> >::stream(s, "", v);
00065 return s;}
00066
00067 }
00068
00069 namespace ros
00070 {
00071 namespace message_traits
00072 {
00073 template<class ContainerAllocator> struct IsMessage< ::brics_actuator::JointImpedances_<ContainerAllocator> > : public TrueType {};
00074 template<class ContainerAllocator> struct IsMessage< ::brics_actuator::JointImpedances_<ContainerAllocator> const> : public TrueType {};
00075 template<class ContainerAllocator>
00076 struct MD5Sum< ::brics_actuator::JointImpedances_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "14fdbb76121290f17525acd99e7242c6";
00080 }
00081
00082 static const char* value(const ::brics_actuator::JointImpedances_<ContainerAllocator> &) { return value(); }
00083 static const uint64_t static_value1 = 0x14fdbb76121290f1ULL;
00084 static const uint64_t static_value2 = 0x7525acd99e7242c6ULL;
00085 };
00086
00087 template<class ContainerAllocator>
00088 struct DataType< ::brics_actuator::JointImpedances_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "brics_actuator/JointImpedances";
00092 }
00093
00094 static const char* value(const ::brics_actuator::JointImpedances_<ContainerAllocator> &) { return value(); }
00095 };
00096
00097 template<class ContainerAllocator>
00098 struct Definition< ::brics_actuator::JointImpedances_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "Poison poisonStamp\n\
00102 JointValue[] dampings\n\
00103 JointValue[] stiffnesses\n\
00104 \n\
00105 ================================================================================\n\
00106 MSG: brics_actuator/Poison\n\
00107 string originator # node id\n\
00108 string description # encoding still an issue\n\
00109 float32 qos # reliability of the channel\n\
00110 # 0..1 where 1 means healthy\n\
00111 \n\
00112 ================================================================================\n\
00113 MSG: brics_actuator/JointValue\n\
00114 time timeStamp #time of the data \n\
00115 string joint_uri\n\
00116 string unit #if empy expects si units, you can use boost::unit\n\
00117 float64 value\n\
00118 \n\
00119 ";
00120 }
00121
00122 static const char* value(const ::brics_actuator::JointImpedances_<ContainerAllocator> &) { return value(); }
00123 };
00124
00125 }
00126 }
00127
00128 namespace ros
00129 {
00130 namespace serialization
00131 {
00132
00133 template<class ContainerAllocator> struct Serializer< ::brics_actuator::JointImpedances_<ContainerAllocator> >
00134 {
00135 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00136 {
00137 stream.next(m.poisonStamp);
00138 stream.next(m.dampings);
00139 stream.next(m.stiffnesses);
00140 }
00141
00142 ROS_DECLARE_ALLINONE_SERIALIZER;
00143 };
00144 }
00145 }
00146
00147 namespace ros
00148 {
00149 namespace message_operations
00150 {
00151
00152 template<class ContainerAllocator>
00153 struct Printer< ::brics_actuator::JointImpedances_<ContainerAllocator> >
00154 {
00155 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::brics_actuator::JointImpedances_<ContainerAllocator> & v)
00156 {
00157 s << indent << "poisonStamp: ";
00158 s << std::endl;
00159 Printer< ::brics_actuator::Poison_<ContainerAllocator> >::stream(s, indent + " ", v.poisonStamp);
00160 s << indent << "dampings[]" << std::endl;
00161 for (size_t i = 0; i < v.dampings.size(); ++i)
00162 {
00163 s << indent << " dampings[" << i << "]: ";
00164 s << std::endl;
00165 s << indent;
00166 Printer< ::brics_actuator::JointValue_<ContainerAllocator> >::stream(s, indent + " ", v.dampings[i]);
00167 }
00168 s << indent << "stiffnesses[]" << std::endl;
00169 for (size_t i = 0; i < v.stiffnesses.size(); ++i)
00170 {
00171 s << indent << " stiffnesses[" << i << "]: ";
00172 s << std::endl;
00173 s << indent;
00174 Printer< ::brics_actuator::JointValue_<ContainerAllocator> >::stream(s, indent + " ", v.stiffnesses[i]);
00175 }
00176 }
00177 };
00178
00179
00180 }
00181 }
00182
00183 #endif // BRICS_ACTUATOR_MESSAGE_JOINTIMPEDANCES_H
00184