MultiDOFJointState.h
Go to the documentation of this file.
1 // Generated by gencpp from file sensor_msgs/MultiDOFJointState.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef SENSOR_MSGS_MESSAGE_MULTIDOFJOINTSTATE_H
6 #define SENSOR_MSGS_MESSAGE_MULTIDOFJOINTSTATE_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 <std_msgs/Header.h>
20 #include <geometry_msgs/Twist.h>
21 #include <geometry_msgs/Wrench.h>
22 
23 namespace sensor_msgs
24 {
25 template <class ContainerAllocator>
27 {
29 
31  : header()
32  , joint_names()
33  , transforms()
34  , twist()
35  , wrench() {
36  }
37  MultiDOFJointState_(const ContainerAllocator& _alloc)
38  : header(_alloc)
39  , joint_names(_alloc)
40  , transforms(_alloc)
41  , twist(_alloc)
42  , wrench(_alloc) {
43  (void)_alloc;
44  }
45 
46 
47 
48  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
49  _header_type header;
50 
51  typedef std::vector<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > , typename ContainerAllocator::template rebind<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::other > _joint_names_type;
52  _joint_names_type joint_names;
53 
54  typedef std::vector< ::geometry_msgs::Transform_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Transform_<ContainerAllocator> >::other > _transforms_type;
55  _transforms_type transforms;
56 
57  typedef std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > _twist_type;
58  _twist_type twist;
59 
60  typedef std::vector< ::geometry_msgs::Wrench_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Wrench_<ContainerAllocator> >::other > _wrench_type;
61  _wrench_type wrench;
62 
63 
64 
65 
68 
69 }; // struct MultiDOFJointState_
70 
71 typedef ::sensor_msgs::MultiDOFJointState_<std::allocator<void> > MultiDOFJointState;
72 
75 
76 // constants requiring out of line definition
77 
78 
79 
80 template<typename ContainerAllocator>
81 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::MultiDOFJointState_<ContainerAllocator> & v)
82 {
84 return s;
85 }
86 
87 } // namespace sensor_msgs
88 
89 namespace rs2rosinternal
90 {
91 namespace message_traits
92 {
93 
94 
95 
96 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
97 // {'std_msgs': ['/opt/ros/kinetic/share/std_msgs/cmake/../msg'], 'geometry_msgs': ['/opt/ros/kinetic/share/geometry_msgs/cmake/../msg'], 'sensor_msgs': ['/tmp/binarydeb/ros-kinetic-sensor-msgs-1.12.5/msg']}
98 
99 // !!!!!!!!!!! ['__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']
100 
101 
102 
103 
104 template <class ContainerAllocator>
105 struct IsFixedSize< ::sensor_msgs::MultiDOFJointState_<ContainerAllocator> >
106  : FalseType
107  { };
108 
109 template <class ContainerAllocator>
110 struct IsFixedSize< ::sensor_msgs::MultiDOFJointState_<ContainerAllocator> const>
111  : FalseType
112  { };
113 
114 template <class ContainerAllocator>
115 struct IsMessage< ::sensor_msgs::MultiDOFJointState_<ContainerAllocator> >
116  : TrueType
117  { };
118 
119 template <class ContainerAllocator>
120 struct IsMessage< ::sensor_msgs::MultiDOFJointState_<ContainerAllocator> const>
121  : TrueType
122  { };
123 
124 template <class ContainerAllocator>
125 struct HasHeader< ::sensor_msgs::MultiDOFJointState_<ContainerAllocator> >
126  : TrueType
127  { };
128 
129 template <class ContainerAllocator>
130 struct HasHeader< ::sensor_msgs::MultiDOFJointState_<ContainerAllocator> const>
131  : TrueType
132  { };
133 
134 
135 template<class ContainerAllocator>
136 struct MD5Sum< ::sensor_msgs::MultiDOFJointState_<ContainerAllocator> >
137 {
138  static const char* value()
139  {
140  return "690f272f0640d2631c305eeb8301e59d";
141  }
142 
143  static const char* value(const ::sensor_msgs::MultiDOFJointState_<ContainerAllocator>&) { return value(); }
144  static const uint64_t static_value1 = 0x690f272f0640d263ULL;
145  static const uint64_t static_value2 = 0x1c305eeb8301e59dULL;
146 };
147 
148 template<class ContainerAllocator>
149 struct DataType< ::sensor_msgs::MultiDOFJointState_<ContainerAllocator> >
150 {
151  static const char* value()
152  {
153  return "sensor_msgs/MultiDOFJointState";
154  }
155 
156  static const char* value(const ::sensor_msgs::MultiDOFJointState_<ContainerAllocator>&) { return value(); }
157 };
158 
159 template<class ContainerAllocator>
160 struct Definition< ::sensor_msgs::MultiDOFJointState_<ContainerAllocator> >
161 {
162  static const char* value()
163  {
164  return "# Representation of state for joints with multiple degrees of freedom, \n\
165 # following the structure of JointState.\n\
166 #\n\
167 # It is assumed that a joint in a system corresponds to a transform that gets applied \n\
168 # along the kinematic chain. For example, a planar joint (as in URDF) is 3DOF (x, y, yaw)\n\
169 # and those 3DOF can be expressed as a transformation matrix, and that transformation\n\
170 # matrix can be converted back to (x, y, yaw)\n\
171 #\n\
172 # Each joint is uniquely identified by its name\n\
173 # The header specifies the time at which the joint states were recorded. All the joint states\n\
174 # in one message have to be recorded at the same time.\n\
175 #\n\
176 # This message consists of a multiple arrays, one for each part of the joint state. \n\
177 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
178 # wrench associated with them, you can leave the wrench array empty. \n\
179 #\n\
180 # All arrays in this message should have the same size, or be empty.\n\
181 # This is the only way to uniquely associate the joint name with the correct\n\
182 # states.\n\
183 \n\
184 Header header\n\
185 \n\
186 string[] joint_names\n\
187 geometry_msgs/Transform[] transforms\n\
188 geometry_msgs/Twist[] twist\n\
189 geometry_msgs/Wrench[] wrench\n\
190 \n\
191 ================================================================================\n\
192 MSG: std_msgs/Header\n\
193 # Standard metadata for higher-level stamped data types.\n\
194 # This is generally used to communicate timestamped data \n\
195 # in a particular coordinate frame.\n\
196 # \n\
197 # sequence ID: consecutively increasing ID \n\
198 uint32 seq\n\
199 #Two-integer timestamp that is expressed as:\n\
200 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
201 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
202 # time-handling sugar is provided by the client library\n\
203 time stamp\n\
204 #Frame this data is associated with\n\
205 # 0: no frame\n\
206 # 1: global frame\n\
207 string frame_id\n\
208 \n\
209 ================================================================================\n\
210 MSG: geometry_msgs/Transform\n\
211 # This represents the transform between two coordinate frames in free space.\n\
212 \n\
213 Vector3 translation\n\
214 Quaternion rotation\n\
215 \n\
216 ================================================================================\n\
217 MSG: geometry_msgs/Vector3\n\
218 # This represents a vector in free space. \n\
219 # It is only meant to represent a direction. Therefore, it does not\n\
220 # make sense to apply a translation to it (e.g., when applying a \n\
221 # generic rigid transformation to a Vector3, tf2 will only apply the\n\
222 # rotation). If you want your data to be translatable too, use the\n\
223 # geometry_msgs/Point message instead.\n\
224 \n\
225 float64 x\n\
226 float64 y\n\
227 float64 z\n\
228 ================================================================================\n\
229 MSG: geometry_msgs/Quaternion\n\
230 # This represents an orientation in free space in quaternion form.\n\
231 \n\
232 float64 x\n\
233 float64 y\n\
234 float64 z\n\
235 float64 w\n\
236 \n\
237 ================================================================================\n\
238 MSG: geometry_msgs/Twist\n\
239 # This expresses velocity in free space broken into its linear and angular parts.\n\
240 Vector3 linear\n\
241 Vector3 angular\n\
242 \n\
243 ================================================================================\n\
244 MSG: geometry_msgs/Wrench\n\
245 # This represents force in free space, separated into\n\
246 # its linear and angular parts.\n\
247 Vector3 force\n\
248 Vector3 torque\n\
249 ";
250  }
251 
252  static const char* value(const ::sensor_msgs::MultiDOFJointState_<ContainerAllocator>&) { return value(); }
253 };
254 
255 } // namespace message_traits
256 } // namespace rs2rosinternal
257 
258 namespace rs2rosinternal
259 {
260 namespace serialization
261 {
262 
263  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::MultiDOFJointState_<ContainerAllocator> >
264  {
265  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
266  {
267  stream.next(m.header);
268  stream.next(m.joint_names);
269  stream.next(m.transforms);
270  stream.next(m.twist);
271  stream.next(m.wrench);
272  }
273 
275  }; // struct MultiDOFJointState_
276 
277 } // namespace serialization
278 } // namespace rs2rosinternal
279 
280 namespace rs2rosinternal
281 {
282 namespace message_operations
283 {
284 
285 template<class ContainerAllocator>
286 struct Printer< ::sensor_msgs::MultiDOFJointState_<ContainerAllocator> >
287 {
288  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::MultiDOFJointState_<ContainerAllocator>& v)
289  {
290  s << indent << "header: ";
291  s << std::endl;
293  s << indent << "joint_names[]" << std::endl;
294  for (size_t i = 0; i < v.joint_names.size(); ++i)
295  {
296  s << indent << " joint_names[" << i << "]: ";
297  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.joint_names[i]);
298  }
299  s << indent << "transforms[]" << std::endl;
300  for (size_t i = 0; i < v.transforms.size(); ++i)
301  {
302  s << indent << " transforms[" << i << "]: ";
303  s << std::endl;
304  s << indent;
305  Printer< ::geometry_msgs::Transform_<ContainerAllocator> >::stream(s, indent + " ", v.transforms[i]);
306  }
307  s << indent << "twist[]" << std::endl;
308  for (size_t i = 0; i < v.twist.size(); ++i)
309  {
310  s << indent << " twist[" << i << "]: ";
311  s << std::endl;
312  s << indent;
314  }
315  s << indent << "wrench[]" << std::endl;
316  for (size_t i = 0; i < v.wrench.size(); ++i)
317  {
318  s << indent << " wrench[" << i << "]: ";
319  s << std::endl;
320  s << indent;
322  }
323  }
324 };
325 
326 } // namespace message_operations
327 } // namespace rs2rosinternal
328 
329 #endif // SENSOR_MSGS_MESSAGE_MULTIDOFJOINTSTATE_H
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::vector< std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other >, typename ContainerAllocator::template rebind< std::basic_string< char, std::char_traits< char >, typename ContainerAllocator::template rebind< char >::other > >::other > _joint_names_type
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLsizei const GLchar *const * string
::std_msgs::Header_< ContainerAllocator > _header_type
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
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
static const char * value(const ::sensor_msgs::MultiDOFJointState_< ContainerAllocator > &)
Stream base-class, provides common functionality for IStream and OStream.
boost::shared_ptr< ::sensor_msgs::MultiDOFJointState_< ContainerAllocator > > Ptr
MultiDOFJointState_< ContainerAllocator > Type
std::vector< ::geometry_msgs::Transform_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::geometry_msgs::Transform_< ContainerAllocator > >::other > _transforms_type
Tools for manipulating sensor_msgs.
Definition: BatteryState.h:20
#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.
boost::shared_ptr< ::sensor_msgs::MultiDOFJointState > MultiDOFJointStatePtr
boost::shared_ptr< ::sensor_msgs::MultiDOFJointState const > MultiDOFJointStateConstPtr
MultiDOFJointState_(const ContainerAllocator &_alloc)
std::vector< ::geometry_msgs::Twist_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_< ContainerAllocator > >::other > _twist_type
static const char * value(const ::sensor_msgs::MultiDOFJointState_< ContainerAllocator > &)
boost::shared_ptr< ::sensor_msgs::MultiDOFJointState_< ContainerAllocator > const > ConstPtr
std::vector< ::geometry_msgs::Wrench_< ContainerAllocator >, typename ContainerAllocator::template rebind< ::geometry_msgs::Wrench_< ContainerAllocator > >::other > _wrench_type
::sensor_msgs::MultiDOFJointState_< std::allocator< void > > MultiDOFJointState
static const char * value(const ::sensor_msgs::MultiDOFJointState_< ContainerAllocator > &)
int i
Templated serialization class. Default implementation provides backwards compatibility with old messa...
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::MultiDOFJointState_< ContainerAllocator > &v)
GLdouble v


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