extrinsics.h
Go to the documentation of this file.
1 // Generated by gencpp from file realsense_legacy_msgs/extrinsics.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef realsense_legacy_msgs_MESSAGE_EXTRINSICS_H
6 #define realsense_legacy_msgs_MESSAGE_EXTRINSICS_H
7 
8 
9 #include <string>
10 #include <vector>
11 #include <array>
12 #include <map>
13 
14 #include <ros/types.h>
15 #include <ros/serialization.h>
17 #include <ros/message_operations.h>
18 
19 
20 namespace realsense_legacy_msgs
21 {
22 template <class ContainerAllocator>
24 {
26 
28  : rotation()
29  , translation() {
30  rotation.fill(0.0);
31 
32  translation.fill(0.0);
33  }
34  extrinsics_(const ContainerAllocator& _alloc)
35  : rotation()
36  , translation() {
37  (void)_alloc;
38  rotation.fill(0.0);
39 
40  translation.fill(0.0);
41  }
42 
43 
44 
45  typedef std::array<float, 9> _rotation_type;
46  _rotation_type rotation;
47 
48  typedef std::array<float, 3> _translation_type;
49  _translation_type translation;
50 
51 
52 
53 
54  typedef std::shared_ptr< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> > Ptr;
55  typedef std::shared_ptr< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> const> ConstPtr;
56 
57 }; // struct extrinsics_
58 
59 typedef ::realsense_legacy_msgs::extrinsics_<std::allocator<void> > extrinsics;
60 
61 typedef std::shared_ptr< ::realsense_legacy_msgs::extrinsics > extrinsicsPtr;
62 typedef std::shared_ptr< ::realsense_legacy_msgs::extrinsics const> extrinsicsConstPtr;
63 
64 // constants requiring out of line definition
65 
66 
67 
68 template<typename ContainerAllocator>
69 std::ostream& operator<<(std::ostream& s, const ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> & v)
70 {
72 return s;
73 }
74 
75 } // namespace realsense_legacy_msgs
76 
77 namespace rs2rosinternal
78 {
79 namespace message_traits
80 {
81 
82 
83 
84 // BOOLTRAITS {'IsFixedSize': True, 'IsMessage': True, 'HasHeader': False}
85 // {'sensor_msgs': ['/opt/ros/kinetic/share/sensor_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg'], 'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'realsense_legacy_msgs': ['/home/administrator/realsense_ros_file/realsense_file/realsense_legacy_msgs/msg']}
86 
87 // !!!!!!!!!!! ['__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']
88 
89 
90 
91 
92 template <class ContainerAllocator>
93 struct IsFixedSize< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> >
94  : TrueType
95  { };
96 
97 template <class ContainerAllocator>
98 struct IsFixedSize< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> const>
99  : TrueType
100  { };
101 
102 template <class ContainerAllocator>
103 struct IsMessage< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> >
104  : TrueType
105  { };
106 
107 template <class ContainerAllocator>
108 struct IsMessage< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> const>
109  : TrueType
110  { };
111 
112 template <class ContainerAllocator>
113 struct HasHeader< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> >
114  : FalseType
115  { };
116 
117 template <class ContainerAllocator>
118 struct HasHeader< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> const>
119  : FalseType
120  { };
121 
122 
123 template<class ContainerAllocator>
124 struct MD5Sum< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> >
125 {
126  static const char* value()
127  {
128  return "21af2234bc223eca7ed86d7046906de5";
129  }
130 
131  static const char* value(const ::realsense_legacy_msgs::extrinsics_<ContainerAllocator>&) { return value(); }
132  static const uint64_t static_value1 = 0x21af2234bc223ecaULL;
133  static const uint64_t static_value2 = 0x7ed86d7046906de5ULL;
134 };
135 
136 template<class ContainerAllocator>
137 struct DataType< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> >
138 {
139  static const char* value()
140  {
141  return "realsense_legacy_msgs/extrinsics";
142  }
143 
144  static const char* value(const ::realsense_legacy_msgs::extrinsics_<ContainerAllocator>&) { return value(); }
145 };
146 
147 template<class ContainerAllocator>
148 struct Definition< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> >
149 {
150  static const char* value()
151  {
152  return "float32[9] rotation # column-major 3x3 rotation matrix \n\
153 float32[3] translation # 3 element translation vector, in meters \n\
154 ";
155  }
156 
157  static const char* value(const ::realsense_legacy_msgs::extrinsics_<ContainerAllocator>&) { return value(); }
158 };
159 
160 } // namespace message_traits
161 } // namespace rs2rosinternal
162 
163 namespace rs2rosinternal
164 {
165 namespace serialization
166 {
167 
168  template<class ContainerAllocator> struct Serializer< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> >
169  {
170  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
171  {
172  stream.next(m.rotation);
173  stream.next(m.translation);
174  }
175 
177  }; // struct extrinsics_
178 
179 } // namespace serialization
180 } // namespace rs2rosinternal
181 
182 namespace rs2rosinternal
183 {
184 namespace message_operations
185 {
186 
187 template<class ContainerAllocator>
188 struct Printer< ::realsense_legacy_msgs::extrinsics_<ContainerAllocator> >
189 {
190  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::realsense_legacy_msgs::extrinsics_<ContainerAllocator>& v)
191  {
192  s << indent << "rotation[]" << std::endl;
193  for (size_t i = 0; i < v.rotation.size(); ++i)
194  {
195  s << indent << " rotation[" << i << "]: ";
196  Printer<float>::stream(s, indent + " ", v.rotation[i]);
197  }
198  s << indent << "translation[]" << std::endl;
199  for (size_t i = 0; i < v.translation.size(); ++i)
200  {
201  s << indent << " translation[" << i << "]: ";
202  Printer<float>::stream(s, indent + " ", v.translation[i]);
203  }
204  }
205 };
206 
207 } // namespace message_operations
208 } // namespace rs2rosinternal
209 
210 #endif // realsense_legacy_msgs_MESSAGE_EXTRINSICS_H
::realsense_legacy_msgs::extrinsics_< std::allocator< void > > extrinsics
Definition: extrinsics.h:59
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLdouble s
const GLfloat * m
Definition: glext.h:6814
Specialize to provide the md5sum for a message.
std::array< float, 9 > _rotation_type
Definition: extrinsics.h:45
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
static const char * value(const ::realsense_legacy_msgs::extrinsics_< ContainerAllocator > &)
Definition: extrinsics.h:144
std::shared_ptr< ::realsense_legacy_msgs::extrinsics > extrinsicsPtr
Definition: extrinsics.h:61
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.
static const char * value(const ::realsense_legacy_msgs::extrinsics_< ContainerAllocator > &)
Definition: extrinsics.h:157
#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
std::shared_ptr< ::realsense_legacy_msgs::extrinsics_< ContainerAllocator > > Ptr
Definition: extrinsics.h:54
Specialize to provide the definition for a message.
extrinsics_< ContainerAllocator > Type
Definition: extrinsics.h:25
extrinsics_(const ContainerAllocator &_alloc)
Definition: extrinsics.h:34
std::shared_ptr< ::realsense_legacy_msgs::extrinsics_< ContainerAllocator > const > ConstPtr
Definition: extrinsics.h:55
std::shared_ptr< ::realsense_legacy_msgs::extrinsics const > extrinsicsConstPtr
Definition: extrinsics.h:62
std::array< float, 3 > _translation_type
Definition: extrinsics.h:48
int i
Templated serialization class. Default implementation provides backwards compatibility with old messa...
static void stream(Stream &s, const std::string &indent, const ::realsense_legacy_msgs::extrinsics_< ContainerAllocator > &v)
Definition: extrinsics.h:190
GLdouble v
static const char * value(const ::realsense_legacy_msgs::extrinsics_< ContainerAllocator > &)
Definition: extrinsics.h:131


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