Go to the documentation of this file.
6 #ifndef SENSOR_MSGS_MESSAGE_JOINTSTATE_H
7 #define SENSOR_MSGS_MESSAGE_JOINTSTATE_H
14 #include <ros/types.h>
15 #include <ros/serialization.h>
16 #include <ros/builtin_message_traits.h>
17 #include <ros/message_operations.h>
23 template <
class ContainerAllocator>
49 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;
52 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >
_position_type;
55 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >
_velocity_type;
58 typedef std::vector<double, typename ContainerAllocator::template rebind<double>::other >
_effort_type;
64 typedef std::shared_ptr< ::sensor_msgs::JointState_<ContainerAllocator> >
Ptr;
65 typedef std::shared_ptr< ::sensor_msgs::JointState_<ContainerAllocator>
const>
ConstPtr;
69 typedef ::sensor_msgs::JointState_<std::allocator<void> >
JointState;
78 template<
typename ContainerAllocator>
79 std::ostream&
operator<<(std::ostream& s, const ::sensor_msgs::JointState_<ContainerAllocator> & v)
89 namespace message_traits
102 template <
class ContainerAllocator>
107 template <
class ContainerAllocator>
112 template <
class ContainerAllocator>
117 template <
class ContainerAllocator>
122 template <
class ContainerAllocator>
127 template <
class ContainerAllocator>
133 template<
class ContainerAllocator>
138 return "3066dcd76a6cfaef579bd0f34173e9fd";
141 static const char*
value(const ::sensor_msgs::JointState_<ContainerAllocator>&) {
return value(); }
142 static const uint64_t static_value1 = 0x3066dcd76a6cfaefULL;
143 static const uint64_t static_value2 = 0x579bd0f34173e9fdULL;
146 template<
class ContainerAllocator>
151 return "sensor_msgs/JointState";
154 static const char*
value(const ::sensor_msgs::JointState_<ContainerAllocator>&) {
return value(); }
157 template<
class ContainerAllocator>
162 return "# This is a message that holds data to describe the state of a set of torque controlled joints. \n\
164 # The state of each joint (revolute or prismatic) is defined by:\n\
165 # * the position of the joint (rad or m),\n\
166 # * the velocity of the joint (rad/s or m/s) and \n\
167 # * the effort that is applied in the joint (Nm or N).\n\
169 # Each joint is uniquely identified by its name\n\
170 # The header specifies the time at which the joint states were recorded. All the joint states\n\
171 # in one message have to be recorded at the same time.\n\
173 # This message consists of a multiple arrays, one for each part of the joint state. \n\
174 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
175 # effort associated with them, you can leave the effort array empty. \n\
177 # All arrays in this message should have the same size, or be empty.\n\
178 # This is the only way to uniquely associate the joint name with the correct\n\
185 float64[] position\n\
186 float64[] velocity\n\
189 ================================================================================\n\
190 MSG: std_msgs/Header\n\
191 # Standard metadata for higher-level stamped data types.\n\
192 # This is generally used to communicate timestamped data \n\
193 # in a particular coordinate frame.\n\
195 # sequence ID: consecutively increasing ID \n\
197 #Two-integer timestamp that is expressed as:\n\
198 # * stamp.sec: seconds (stamp_secs) since epoch (in Python the variable is called 'secs')\n\
199 # * stamp.nsec: nanoseconds since stamp_secs (in Python the variable is called 'nsecs')\n\
200 # time-handling sugar is provided by the client library\n\
202 #Frame this data is associated with\n\
209 static const char*
value(const ::sensor_msgs::JointState_<ContainerAllocator>&) {
return value(); }
217 namespace serialization
222 template<
typename Stream,
typename T>
inline static void allInOne(
Stream& stream, T m)
224 stream.next(m.header);
226 stream.next(m.position);
227 stream.next(m.velocity);
228 stream.next(m.effort);
239 namespace message_operations
242 template<
class ContainerAllocator>
245 template<
typename Stream>
static void stream(Stream& s,
const std::string&
indent, const ::sensor_msgs::JointState_<ContainerAllocator>& v)
250 s <<
indent <<
"name[]" << std::endl;
251 for (
size_t i = 0; i < v.name.size(); ++i)
253 s <<
indent <<
" name[" << i <<
"]: ";
256 s <<
indent <<
"position[]" << std::endl;
257 for (
size_t i = 0; i < v.position.size(); ++i)
259 s <<
indent <<
" position[" << i <<
"]: ";
262 s <<
indent <<
"velocity[]" << std::endl;
263 for (
size_t i = 0; i < v.velocity.size(); ++i)
265 s <<
indent <<
" velocity[" << i <<
"]: ";
268 s <<
indent <<
"effort[]" << std::endl;
269 for (
size_t i = 0; i < v.effort.size(); ++i)
271 s <<
indent <<
" effort[" << i <<
"]: ";
280 #endif // SENSOR_MSGS_MESSAGE_JOINTSTATE_H
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
JointState_< ContainerAllocator > Type
Templated serialization class. Default implementation provides backwards compatibility with old messa...
::sensor_msgs::JointState_< std::allocator< void > > JointState
static const char * value(const ::sensor_msgs::JointState_< ContainerAllocator > &)
std::vector< double, typename ContainerAllocator::template rebind< double >::other > _effort_type
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
static void stream(Stream &s, const std::string &indent, const M &value)
A fixed-size datatype is one whose size is constant, i.e. it has no variable-length arrays or strings...
static const char * value()
#define ROS_DECLARE_ALLINONE_SERIALIZER
Declare your serializer to use an allInOne member instead of requiring 3 different serialization func...
Specialize to provide the datatype for a message.
std::shared_ptr< ::sensor_msgs::JointState > JointStatePtr
Specialize to provide the definition for a message.
std::ostream & operator<<(std::ostream &s, const ::sensor_msgs::BatteryState_< ContainerAllocator > &v)
static const char * value(const ::sensor_msgs::JointState_< ContainerAllocator > &)
std::shared_ptr< ::sensor_msgs::JointState_< ContainerAllocator > const > ConstPtr
::std_msgs::Header_< ContainerAllocator > _header_type
static void stream(Stream &s, const std::string &indent, const ::sensor_msgs::JointState_< ContainerAllocator > &v)
std::shared_ptr< ::sensor_msgs::JointState_< ContainerAllocator > > Ptr
Base type for compile-type true/false tests. Compatible with Boost.MPL. classes inheriting from this ...
Specialize to provide the md5sum for a message.
JointState_(const ContainerAllocator &_alloc)
std::vector< double, typename ContainerAllocator::template rebind< double >::other > _position_type
static const char * value(const ::sensor_msgs::JointState_< ContainerAllocator > &)
std::shared_ptr< ::sensor_msgs::JointState const > JointStateConstPtr
static const char * value()
Stream base-class, provides common functionality for IStream and OStream.
static void allInOne(Stream &stream, T m)
std::vector< double, typename ContainerAllocator::template rebind< double >::other > _velocity_type
static const char * value()
Tools for manipulating sensor_msgs.
sick_scan_xd
Author(s): Michael Lehning
, Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:08