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