JointState.h
Go to the documentation of this file.
1 // Generated by gencpp from file sensor_msgs/JointState.msg
2 // DO NOT EDIT!
3 
4 
5 #ifndef SENSOR_MSGS_MESSAGE_JOINTSTATE_H
6 #define SENSOR_MSGS_MESSAGE_JOINTSTATE_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>
19 
20 namespace sensor_msgs
21 {
22 template <class ContainerAllocator>
24 {
26 
28  : header()
29  , name()
30  , position()
31  , velocity()
32  , effort() {
33  }
34  JointState_(const ContainerAllocator& _alloc)
35  : header(_alloc)
36  , name(_alloc)
37  , position(_alloc)
38  , velocity(_alloc)
39  , effort(_alloc) {
40  (void)_alloc;
41  }
42 
43 
44 
45  typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
46  _header_type header;
47 
48  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 > _name_type;
49  _name_type name;
50 
51  typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _position_type;
52  _position_type position;
53 
54  typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _velocity_type;
55  _velocity_type velocity;
56 
57  typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other > _effort_type;
58  _effort_type effort;
59 
60 
61 
62 
65 
66 }; // struct JointState_
67 
68 typedef ::sensor_msgs::JointState_<std::allocator<void> > JointState;
69 
72 
73 // constants requiring out of line definition
74 
75 
76 
77 template<typename ContainerAllocator>
78 std::ostream& operator<<(std::ostream& s, const ::sensor_msgs::JointState_<ContainerAllocator> & v)
79 {
81 return s;
82 }
83 
84 } // namespace sensor_msgs
85 
86 namespace rs2rosinternal
87 {
88 namespace message_traits
89 {
90 
91 
92 
93 // BOOLTRAITS {'IsFixedSize': False, 'IsMessage': True, 'HasHeader': True}
94 // {'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']}
95 
96 // !!!!!!!!!!! ['__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']
97 
98 
99 
100 
101 template <class ContainerAllocator>
102 struct IsFixedSize< ::sensor_msgs::JointState_<ContainerAllocator> >
103  : FalseType
104  { };
105 
106 template <class ContainerAllocator>
107 struct IsFixedSize< ::sensor_msgs::JointState_<ContainerAllocator> const>
108  : FalseType
109  { };
110 
111 template <class ContainerAllocator>
112 struct IsMessage< ::sensor_msgs::JointState_<ContainerAllocator> >
113  : TrueType
114  { };
115 
116 template <class ContainerAllocator>
117 struct IsMessage< ::sensor_msgs::JointState_<ContainerAllocator> const>
118  : TrueType
119  { };
120 
121 template <class ContainerAllocator>
122 struct HasHeader< ::sensor_msgs::JointState_<ContainerAllocator> >
123  : TrueType
124  { };
125 
126 template <class ContainerAllocator>
127 struct HasHeader< ::sensor_msgs::JointState_<ContainerAllocator> const>
128  : TrueType
129  { };
130 
131 
132 template<class ContainerAllocator>
133 struct MD5Sum< ::sensor_msgs::JointState_<ContainerAllocator> >
134 {
135  static const char* value()
136  {
137  return "3066dcd76a6cfaef579bd0f34173e9fd";
138  }
139 
140  static const char* value(const ::sensor_msgs::JointState_<ContainerAllocator>&) { return value(); }
141  static const uint64_t static_value1 = 0x3066dcd76a6cfaefULL;
142  static const uint64_t static_value2 = 0x579bd0f34173e9fdULL;
143 };
144 
145 template<class ContainerAllocator>
146 struct DataType< ::sensor_msgs::JointState_<ContainerAllocator> >
147 {
148  static const char* value()
149  {
150  return "sensor_msgs/JointState";
151  }
152 
153  static const char* value(const ::sensor_msgs::JointState_<ContainerAllocator>&) { return value(); }
154 };
155 
156 template<class ContainerAllocator>
157 struct Definition< ::sensor_msgs::JointState_<ContainerAllocator> >
158 {
159  static const char* value()
160  {
161  return "# This is a message that holds data to describe the state of a set of torque controlled joints. \n\
162 #\n\
163 # The state of each joint (revolute or prismatic) is defined by:\n\
164 # * the position of the joint (rad or m),\n\
165 # * the velocity of the joint (rad/s or m/s) and \n\
166 # * the effort that is applied in the joint (Nm or N).\n\
167 #\n\
168 # Each joint is uniquely identified by its name\n\
169 # The header specifies the time at which the joint states were recorded. All the joint states\n\
170 # in one message have to be recorded at the same time.\n\
171 #\n\
172 # This message consists of a multiple arrays, one for each part of the joint state. \n\
173 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
174 # effort associated with them, you can leave the effort array empty. \n\
175 #\n\
176 # All arrays in this message should have the same size, or be empty.\n\
177 # This is the only way to uniquely associate the joint name with the correct\n\
178 # states.\n\
179 \n\
180 \n\
181 Header header\n\
182 \n\
183 string[] name\n\
184 float64[] position\n\
185 float64[] velocity\n\
186 float64[] effort\n\
187 \n\
188 ================================================================================\n\
189 MSG: std_msgs/Header\n\
190 # Standard metadata for higher-level stamped data types.\n\
191 # This is generally used to communicate timestamped data \n\
192 # in a particular coordinate frame.\n\
193 # \n\
194 # sequence ID: consecutively increasing ID \n\
195 uint32 seq\n\
196 #Two-integer timestamp that is expressed as:\n\
197 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
198 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
199 # time-handling sugar is provided by the client library\n\
200 time stamp\n\
201 #Frame this data is associated with\n\
202 # 0: no frame\n\
203 # 1: global frame\n\
204 string frame_id\n\
205 ";
206  }
207 
208  static const char* value(const ::sensor_msgs::JointState_<ContainerAllocator>&) { return value(); }
209 };
210 
211 } // namespace message_traits
212 } // namespace rs2rosinternal
213 
214 namespace rs2rosinternal
215 {
216 namespace serialization
217 {
218 
219  template<class ContainerAllocator> struct Serializer< ::sensor_msgs::JointState_<ContainerAllocator> >
220  {
221  template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
222  {
223  stream.next(m.header);
224  stream.next(m.name);
225  stream.next(m.position);
226  stream.next(m.velocity);
227  stream.next(m.effort);
228  }
229 
231  }; // struct JointState_
232 
233 } // namespace serialization
234 } // namespace rs2rosinternal
235 
236 namespace rs2rosinternal
237 {
238 namespace message_operations
239 {
240 
241 template<class ContainerAllocator>
242 struct Printer< ::sensor_msgs::JointState_<ContainerAllocator> >
243 {
244  template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sensor_msgs::JointState_<ContainerAllocator>& v)
245  {
246  s << indent << "header: ";
247  s << std::endl;
249  s << indent << "name[]" << std::endl;
250  for (size_t i = 0; i < v.name.size(); ++i)
251  {
252  s << indent << " name[" << i << "]: ";
253  Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name[i]);
254  }
255  s << indent << "position[]" << std::endl;
256  for (size_t i = 0; i < v.position.size(); ++i)
257  {
258  s << indent << " position[" << i << "]: ";
259  Printer<double>::stream(s, indent + " ", v.position[i]);
260  }
261  s << indent << "velocity[]" << std::endl;
262  for (size_t i = 0; i < v.velocity.size(); ++i)
263  {
264  s << indent << " velocity[" << i << "]: ";
265  Printer<double>::stream(s, indent + " ", v.velocity[i]);
266  }
267  s << indent << "effort[]" << std::endl;
268  for (size_t i = 0; i < v.effort.size(); ++i)
269  {
270  s << indent << " effort[" << i << "]: ";
271  Printer<double>::stream(s, indent + " ", v.effort[i]);
272  }
273  }
274 };
275 
276 } // namespace message_operations
277 } // namespace rs2rosinternal
278 
279 #endif // SENSOR_MSGS_MESSAGE_JOINTSTATE_H
typedef void(APIENTRY *GLDEBUGPROC)(GLenum source
boost::shared_ptr< ::sensor_msgs::JointState_< ContainerAllocator > > Ptr
Definition: JointState.h:63
GLuint const GLchar * name
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
std::vector< double, typename ContainerAllocator::template rebind< double >::other > _effort_type
Definition: JointState.h:57
JointState_< ContainerAllocator > Type
Definition: JointState.h:25
GLdouble s
::sensor_msgs::JointState_< std::allocator< void > > JointState
Definition: JointState.h:68
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 > _name_type
Definition: JointState.h:48
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
GLsizei const GLchar *const * string
boost::shared_ptr< ::sensor_msgs::JointState > JointStatePtr
Definition: JointState.h:70
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
_position_type position
Definition: JointState.h:52
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::JointState_< ContainerAllocator > &)
Definition: JointState.h:153
::std_msgs::Header_< ContainerAllocator > _header_type
Definition: JointState.h:45
Stream base-class, provides common functionality for IStream and OStream.
Tools for manipulating sensor_msgs.
Definition: BatteryState.h:20
boost::shared_ptr< ::sensor_msgs::JointState_< ContainerAllocator > const > ConstPtr
Definition: JointState.h:64
#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::vector< double, typename ContainerAllocator::template rebind< double >::other > _position_type
Definition: JointState.h:51
JointState_(const ContainerAllocator &_alloc)
Definition: JointState.h:34
static const char * value(const ::sensor_msgs::JointState_< ContainerAllocator > &)
Definition: JointState.h:208
boost::shared_ptr< ::sensor_msgs::JointState const > JointStateConstPtr
Definition: JointState.h:71
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::JointState_< ContainerAllocator > &v)
Definition: JointState.h:244
int i
Templated serialization class. Default implementation provides backwards compatibility with old messa...
std::vector< double, typename ContainerAllocator::template rebind< double >::other > _velocity_type
Definition: JointState.h:54
_velocity_type velocity
Definition: JointState.h:55
GLdouble v
static const char * value(const ::sensor_msgs::JointState_< ContainerAllocator > &)
Definition: JointState.h:140


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