TwistWithCovariance.h
Go to the documentation of this file.
1 // Generated by gencpp from file geometry_msgs/TwistWithCovariance.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef GEOMETRY_MSGS_MESSAGE_TWISTWITHCOVARIANCE_H
6 #define GEOMETRY_MSGS_MESSAGE_TWISTWITHCOVARIANCE_H
7 
8 
9 #include <string>
10 #include <vector>
11 #include <map>
12 
13 #include <ros/types.h>
14 #include <ros/serialization.h>
16 #include <ros/message_operations.h>
17 
18 #include <geometry_msgs/Twist.h>
19 
20 namespace geometry_msgs
21 {
22 template <class ContainerAllocator>
24 {
26 
28  : twist()
29  , covariance() {
30  covariance.fill(0.0);
31  }
32  TwistWithCovariance_(const ContainerAllocator& _alloc)
33  : twist(_alloc)
34  , covariance() {
35  (void)_alloc;
36  covariance.fill(0.0);
37  }
38 
39 
40 
41  typedef ::geometry_msgs::Twist_<ContainerAllocator> _twist_type;
42  _twist_type twist;
43 
44  typedef std::array<double, 36> _covariance_type;
45  _covariance_type covariance;
46 
47 
48 
49 
50  typedef std::shared_ptr< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> > Ptr;
51  typedef std::shared_ptr< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> const> ConstPtr;
52 
53 }; // struct TwistWithCovariance_
54 
55 typedef ::geometry_msgs::TwistWithCovariance_<std::allocator<void> > TwistWithCovariance;
56 
57 typedef std::shared_ptr< ::geometry_msgs::TwistWithCovariance > TwistWithCovariancePtr;
58 typedef std::shared_ptr< ::geometry_msgs::TwistWithCovariance const> TwistWithCovarianceConstPtr;
59 
60 // constants requiring out of line definition
61 
62 
63 
64 template<typename ContainerAllocator>
65 std::ostream& operator<<(std::ostream& s, const ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> & v)
66 {
68 return s;
69 }
70 
71 } // namespace geometry_msgs
72 
73 namespace rs2rosinternal
74 {
75 namespace message_traits
76 {
77 
78 
79 
80 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
81 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/tmp/binarydeb/ros-kinetic-geometry-msgs-1.12.5/msg']}
82 
83 // !!!!!!!!!!! ['__class__', '__delattr__', '__dict__', '__doc__', '__eq__', '__format__', '__getattribute__', '__hash__', '__init__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_parsed_fields', 'constants', 'fields', 'full_name', 'has_header', 'header_present', 'names', 'package', 'parsed_fields', 'short_name', 'text', 'types']
84 
85 
86 
87 
88 template <class ContainerAllocator>
89 struct IsFixedSize< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >
90  : TrueType
91  { };
92 
93 template <class ContainerAllocator>
94 struct IsFixedSize< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> const>
95  : TrueType
96  { };
97 
98 template <class ContainerAllocator>
99 struct IsMessage< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >
100  : TrueType
101  { };
102 
103 template <class ContainerAllocator>
104 struct IsMessage< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> const>
105  : TrueType
106  { };
107 
108 template <class ContainerAllocator>
109 struct HasHeader< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >
110  : FalseType
111  { };
112 
113 template <class ContainerAllocator>
114 struct HasHeader< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> const>
115  : FalseType
116  { };
117 
118 
119 template<class ContainerAllocator>
120 struct MD5Sum< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >
121 {
122  static const char* value()
123  {
124  return "1fe8a28e6890a4cc3ae4c3ca5c7d82e6";
125  }
126 
127  static const char* value(const ::geometry_msgs::TwistWithCovariance_<ContainerAllocator>&) { return value(); }
128  static const uint64_t static_value1 = 0x1fe8a28e6890a4ccULL;
129  static const uint64_t static_value2 = 0x3ae4c3ca5c7d82e6ULL;
130 };
131 
132 template<class ContainerAllocator>
133 struct DataType< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >
134 {
135  static const char* value()
136  {
137  return "geometry_msgs/TwistWithCovariance";
138  }
139 
140  static const char* value(const ::geometry_msgs::TwistWithCovariance_<ContainerAllocator>&) { return value(); }
141 };
142 
143 template<class ContainerAllocator>
144 struct Definition< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >
145 {
146  static const char* value()
147  {
148  return "# This expresses velocity in free space with uncertainty.\n\
149 \n\
150 Twist twist\n\
151 \n\
152 # Row-major representation of the 6x6 covariance matrix\n\
153 # The orientation parameters use a fixed-axis representation.\n\
154 # In order, the parameters are:\n\
155 # (x, y, z, rotation about X axis, rotation about Y axis, rotation about Z axis)\n\
156 float64[36] covariance\n\
157 \n\
158 ================================================================================\n\
159 MSG: geometry_msgs/Twist\n\
160 # This expresses velocity in free space broken into its linear and angular parts.\n\
161 Vector3 linear\n\
162 Vector3 angular\n\
163 \n\
164 ================================================================================\n\
165 MSG: geometry_msgs/Vector3\n\
166 # This represents a vector in free space. \n\
167 # It is only meant to represent a direction. Therefore, it does not\n\
168 # make sense to apply a translation to it (e.g., when applying a \n\
169 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
170 # rotation). If you want your data to be translatable too, use the\n\
171 # geometry_msgs/Point message instead.\n\
172 \n\
173 float64 x\n\
174 float64 y\n\
175 float64 z\n\
176 ";
177  }
178 
179  static const char* value(const ::geometry_msgs::TwistWithCovariance_<ContainerAllocator>&) { return value(); }
180 };
181 
182 } // namespace message_traits
183 } // namespace rs2rosinternal
184 
185 namespace rs2rosinternal
186 {
187 namespace serialization
188 {
189 
190  template<class ContainerAllocator> struct Serializer< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >
191  {
192  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
193  {
194  stream.next(m.twist);
195  stream.next(m.covariance);
196  }
197 
199  }; // struct TwistWithCovariance_
200 
201 } // namespace serialization
202 } // namespace rs2rosinternal
203 
204 namespace rs2rosinternal
205 {
206 namespace message_operations
207 {
208 
209 template<class ContainerAllocator>
210 struct Printer< ::geometry_msgs::TwistWithCovariance_<ContainerAllocator> >
211 {
212  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::geometry_msgs::TwistWithCovariance_<ContainerAllocator>& v)
213  {
214  s << indent << "twist: ";
215  s << std::endl;
217  s << indent << "covariance[]" << std::endl;
218  for (size_t i = 0; i < v.covariance.size(); ++i)
219  {
220  s << indent << " covariance[" << i << "]: ";
221  Printer<double>::stream(s, indent + " ", v.covariance[i]);
222  }
223  }
224 };
225 
226 } // namespace message_operations
227 } // namespace rs2rosinternal
228 
229 #endif // GEOMETRY_MSGS_MESSAGE_TWISTWITHCOVARIANCE_H
std::shared_ptr< ::geometry_msgs::TwistWithCovariance > TwistWithCovariancePtr
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
std::shared_ptr< ::geometry_msgs::TwistWithCovariance_< ContainerAllocator > const > ConstPtr
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLdouble s
static const char * value(const ::geometry_msgs::TwistWithCovariance_< ContainerAllocator > &)
const GLfloat * m
Definition: glext.h:6814
Specialize to provide the md5sum for a message.
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLsizei const GLchar *const * string
Specialize to provide the datatype for a message.
HasHeader informs whether or not there is a header that gets serialized as the first thing in the mes...
GLuint GLuint stream
Definition: glext.h:1790
TwistWithCovariance_< ContainerAllocator > Type
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
Stream base-class, provides common functionality for IStream and OStream.
::geometry_msgs::Twist_< ContainerAllocator > _twist_type
static void stream(Stream &s, const std::string &indent, const ::geometry_msgs::TwistWithCovariance_< ContainerAllocator > &v)
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
unsigned __int64 uint64_t
Definition: stdint.h:90
Specialize to provide the definition for a message.
std::shared_ptr< ::geometry_msgs::TwistWithCovariance const > TwistWithCovarianceConstPtr
static const char * value(const ::geometry_msgs::TwistWithCovariance_< ContainerAllocator > &)
std::shared_ptr< ::geometry_msgs::TwistWithCovariance_< ContainerAllocator > > Ptr
static const char * value(const ::geometry_msgs::TwistWithCovariance_< ContainerAllocator > &)
TwistWithCovariance_(const ContainerAllocator &_alloc)
std::array< double, 36 > _covariance_type
int i
Templated serialization class. Default implementation provides backwards compatibility with old messa...
::geometry_msgs::TwistWithCovariance_< std::allocator< void > > TwistWithCovariance
GLdouble v


librealsense2
Author(s): Sergey Dorodnicov , Doron Hirshberg , Mark Horn , Reagan Lopez , Itay Carpis
autogenerated on Mon May 3 2021 02:50:12