Go to the documentation of this file.00001
00002 #ifndef BRICS_ACTUATOR_MESSAGE_CARTESIANWRENCH_H
00003 #define BRICS_ACTUATOR_MESSAGE_CARTESIANWRENCH_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/CartesianVector.h"
00019 #include "brics_actuator/CartesianVector.h"
00020
00021 namespace brics_actuator
00022 {
00023 template <class ContainerAllocator>
00024 struct CartesianWrench_ {
00025 typedef CartesianWrench_<ContainerAllocator> Type;
00026
00027 CartesianWrench_()
00028 : timeStamp()
00029 , poisonStamp()
00030 , base_frame_uri()
00031 , target_frame_uri()
00032 , force()
00033 , torque()
00034 {
00035 }
00036
00037 CartesianWrench_(const ContainerAllocator& _alloc)
00038 : timeStamp()
00039 , poisonStamp(_alloc)
00040 , base_frame_uri(_alloc)
00041 , target_frame_uri(_alloc)
00042 , force(_alloc)
00043 , torque(_alloc)
00044 {
00045 }
00046
00047 typedef ros::Time _timeStamp_type;
00048 ros::Time timeStamp;
00049
00050 typedef ::brics_actuator::Poison_<ContainerAllocator> _poisonStamp_type;
00051 ::brics_actuator::Poison_<ContainerAllocator> poisonStamp;
00052
00053 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _base_frame_uri_type;
00054 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > base_frame_uri;
00055
00056 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _target_frame_uri_type;
00057 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > target_frame_uri;
00058
00059 typedef ::brics_actuator::CartesianVector_<ContainerAllocator> _force_type;
00060 ::brics_actuator::CartesianVector_<ContainerAllocator> force;
00061
00062 typedef ::brics_actuator::CartesianVector_<ContainerAllocator> _torque_type;
00063 ::brics_actuator::CartesianVector_<ContainerAllocator> torque;
00064
00065
00066 typedef boost::shared_ptr< ::brics_actuator::CartesianWrench_<ContainerAllocator> > Ptr;
00067 typedef boost::shared_ptr< ::brics_actuator::CartesianWrench_<ContainerAllocator> const> ConstPtr;
00068 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00069 };
00070 typedef ::brics_actuator::CartesianWrench_<std::allocator<void> > CartesianWrench;
00071
00072 typedef boost::shared_ptr< ::brics_actuator::CartesianWrench> CartesianWrenchPtr;
00073 typedef boost::shared_ptr< ::brics_actuator::CartesianWrench const> CartesianWrenchConstPtr;
00074
00075
00076 template<typename ContainerAllocator>
00077 std::ostream& operator<<(std::ostream& s, const ::brics_actuator::CartesianWrench_<ContainerAllocator> & v)
00078 {
00079 ros::message_operations::Printer< ::brics_actuator::CartesianWrench_<ContainerAllocator> >::stream(s, "", v);
00080 return s;}
00081
00082 }
00083
00084 namespace ros
00085 {
00086 namespace message_traits
00087 {
00088 template<class ContainerAllocator> struct IsMessage< ::brics_actuator::CartesianWrench_<ContainerAllocator> > : public TrueType {};
00089 template<class ContainerAllocator> struct IsMessage< ::brics_actuator::CartesianWrench_<ContainerAllocator> const> : public TrueType {};
00090 template<class ContainerAllocator>
00091 struct MD5Sum< ::brics_actuator::CartesianWrench_<ContainerAllocator> > {
00092 static const char* value()
00093 {
00094 return "9db8d24ea10e69de8feff86a9b0fa93d";
00095 }
00096
00097 static const char* value(const ::brics_actuator::CartesianWrench_<ContainerAllocator> &) { return value(); }
00098 static const uint64_t static_value1 = 0x9db8d24ea10e69deULL;
00099 static const uint64_t static_value2 = 0x8feff86a9b0fa93dULL;
00100 };
00101
00102 template<class ContainerAllocator>
00103 struct DataType< ::brics_actuator::CartesianWrench_<ContainerAllocator> > {
00104 static const char* value()
00105 {
00106 return "brics_actuator/CartesianWrench";
00107 }
00108
00109 static const char* value(const ::brics_actuator::CartesianWrench_<ContainerAllocator> &) { return value(); }
00110 };
00111
00112 template<class ContainerAllocator>
00113 struct Definition< ::brics_actuator::CartesianWrench_<ContainerAllocator> > {
00114 static const char* value()
00115 {
00116 return "time timeStamp\n\
00117 Poison poisonStamp\n\
00118 string base_frame_uri\n\
00119 string target_frame_uri\n\
00120 # need some more frames? \n\
00121 CartesianVector force\n\
00122 CartesianVector torque \n\
00123 \n\
00124 ================================================================================\n\
00125 MSG: brics_actuator/Poison\n\
00126 string originator # node id\n\
00127 string description # encoding still an issue\n\
00128 float32 qos # reliability of the channel\n\
00129 # 0..1 where 1 means healthy\n\
00130 \n\
00131 ================================================================================\n\
00132 MSG: brics_actuator/CartesianVector\n\
00133 string unit\n\
00134 float64 x\n\
00135 float64 y\n\
00136 float64 z\n\
00137 \n\
00138 ";
00139 }
00140
00141 static const char* value(const ::brics_actuator::CartesianWrench_<ContainerAllocator> &) { return value(); }
00142 };
00143
00144 }
00145 }
00146
00147 namespace ros
00148 {
00149 namespace serialization
00150 {
00151
00152 template<class ContainerAllocator> struct Serializer< ::brics_actuator::CartesianWrench_<ContainerAllocator> >
00153 {
00154 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00155 {
00156 stream.next(m.timeStamp);
00157 stream.next(m.poisonStamp);
00158 stream.next(m.base_frame_uri);
00159 stream.next(m.target_frame_uri);
00160 stream.next(m.force);
00161 stream.next(m.torque);
00162 }
00163
00164 ROS_DECLARE_ALLINONE_SERIALIZER;
00165 };
00166 }
00167 }
00168
00169 namespace ros
00170 {
00171 namespace message_operations
00172 {
00173
00174 template<class ContainerAllocator>
00175 struct Printer< ::brics_actuator::CartesianWrench_<ContainerAllocator> >
00176 {
00177 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::brics_actuator::CartesianWrench_<ContainerAllocator> & v)
00178 {
00179 s << indent << "timeStamp: ";
00180 Printer<ros::Time>::stream(s, indent + " ", v.timeStamp);
00181 s << indent << "poisonStamp: ";
00182 s << std::endl;
00183 Printer< ::brics_actuator::Poison_<ContainerAllocator> >::stream(s, indent + " ", v.poisonStamp);
00184 s << indent << "base_frame_uri: ";
00185 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.base_frame_uri);
00186 s << indent << "target_frame_uri: ";
00187 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.target_frame_uri);
00188 s << indent << "force: ";
00189 s << std::endl;
00190 Printer< ::brics_actuator::CartesianVector_<ContainerAllocator> >::stream(s, indent + " ", v.force);
00191 s << indent << "torque: ";
00192 s << std::endl;
00193 Printer< ::brics_actuator::CartesianVector_<ContainerAllocator> >::stream(s, indent + " ", v.torque);
00194 }
00195 };
00196
00197
00198 }
00199 }
00200
00201 #endif // BRICS_ACTUATOR_MESSAGE_CARTESIANWRENCH_H
00202