Go to the documentation of this file.00001
00002 #ifndef BRICS_ACTUATOR_MESSAGE_JOINTACCELERATIONS_H
00003 #define BRICS_ACTUATOR_MESSAGE_JOINTACCELERATIONS_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 JointAccelerations_ {
00024 typedef JointAccelerations_<ContainerAllocator> Type;
00025
00026 JointAccelerations_()
00027 : poisonStamp()
00028 , accelerations()
00029 {
00030 }
00031
00032 JointAccelerations_(const ContainerAllocator& _alloc)
00033 : poisonStamp(_alloc)
00034 , accelerations(_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 > _accelerations_type;
00042 std::vector< ::brics_actuator::JointValue_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::brics_actuator::JointValue_<ContainerAllocator> >::other > accelerations;
00043
00044
00045 typedef boost::shared_ptr< ::brics_actuator::JointAccelerations_<ContainerAllocator> > Ptr;
00046 typedef boost::shared_ptr< ::brics_actuator::JointAccelerations_<ContainerAllocator> const> ConstPtr;
00047 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00048 };
00049 typedef ::brics_actuator::JointAccelerations_<std::allocator<void> > JointAccelerations;
00050
00051 typedef boost::shared_ptr< ::brics_actuator::JointAccelerations> JointAccelerationsPtr;
00052 typedef boost::shared_ptr< ::brics_actuator::JointAccelerations const> JointAccelerationsConstPtr;
00053
00054
00055 template<typename ContainerAllocator>
00056 std::ostream& operator<<(std::ostream& s, const ::brics_actuator::JointAccelerations_<ContainerAllocator> & v)
00057 {
00058 ros::message_operations::Printer< ::brics_actuator::JointAccelerations_<ContainerAllocator> >::stream(s, "", v);
00059 return s;}
00060
00061 }
00062
00063 namespace ros
00064 {
00065 namespace message_traits
00066 {
00067 template<class ContainerAllocator> struct IsMessage< ::brics_actuator::JointAccelerations_<ContainerAllocator> > : public TrueType {};
00068 template<class ContainerAllocator> struct IsMessage< ::brics_actuator::JointAccelerations_<ContainerAllocator> const> : public TrueType {};
00069 template<class ContainerAllocator>
00070 struct MD5Sum< ::brics_actuator::JointAccelerations_<ContainerAllocator> > {
00071 static const char* value()
00072 {
00073 return "f904d45aa2c1d97ea9e99a3ba4e3610e";
00074 }
00075
00076 static const char* value(const ::brics_actuator::JointAccelerations_<ContainerAllocator> &) { return value(); }
00077 static const uint64_t static_value1 = 0xf904d45aa2c1d97eULL;
00078 static const uint64_t static_value2 = 0xa9e99a3ba4e3610eULL;
00079 };
00080
00081 template<class ContainerAllocator>
00082 struct DataType< ::brics_actuator::JointAccelerations_<ContainerAllocator> > {
00083 static const char* value()
00084 {
00085 return "brics_actuator/JointAccelerations";
00086 }
00087
00088 static const char* value(const ::brics_actuator::JointAccelerations_<ContainerAllocator> &) { return value(); }
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct Definition< ::brics_actuator::JointAccelerations_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "Poison poisonStamp\n\
00096 JointValue[] accelerations\n\
00097 \n\
00098 ================================================================================\n\
00099 MSG: brics_actuator/Poison\n\
00100 string originator # node id\n\
00101 string description # encoding still an issue\n\
00102 float32 qos # reliability of the channel\n\
00103 # 0..1 where 1 means healthy\n\
00104 \n\
00105 ================================================================================\n\
00106 MSG: brics_actuator/JointValue\n\
00107 time timeStamp #time of the data \n\
00108 string joint_uri\n\
00109 string unit #if empy expects si units, you can use boost::unit\n\
00110 float64 value\n\
00111 \n\
00112 ";
00113 }
00114
00115 static const char* value(const ::brics_actuator::JointAccelerations_<ContainerAllocator> &) { return value(); }
00116 };
00117
00118 }
00119 }
00120
00121 namespace ros
00122 {
00123 namespace serialization
00124 {
00125
00126 template<class ContainerAllocator> struct Serializer< ::brics_actuator::JointAccelerations_<ContainerAllocator> >
00127 {
00128 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00129 {
00130 stream.next(m.poisonStamp);
00131 stream.next(m.accelerations);
00132 }
00133
00134 ROS_DECLARE_ALLINONE_SERIALIZER;
00135 };
00136 }
00137 }
00138
00139 namespace ros
00140 {
00141 namespace message_operations
00142 {
00143
00144 template<class ContainerAllocator>
00145 struct Printer< ::brics_actuator::JointAccelerations_<ContainerAllocator> >
00146 {
00147 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::brics_actuator::JointAccelerations_<ContainerAllocator> & v)
00148 {
00149 s << indent << "poisonStamp: ";
00150 s << std::endl;
00151 Printer< ::brics_actuator::Poison_<ContainerAllocator> >::stream(s, indent + " ", v.poisonStamp);
00152 s << indent << "accelerations[]" << std::endl;
00153 for (size_t i = 0; i < v.accelerations.size(); ++i)
00154 {
00155 s << indent << " accelerations[" << i << "]: ";
00156 s << std::endl;
00157 s << indent;
00158 Printer< ::brics_actuator::JointValue_<ContainerAllocator> >::stream(s, indent + " ", v.accelerations[i]);
00159 }
00160 }
00161 };
00162
00163
00164 }
00165 }
00166
00167 #endif // BRICS_ACTUATOR_MESSAGE_JOINTACCELERATIONS_H
00168