00001
00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_ROBOTSTATE_H
00003 #define ARM_NAVIGATION_MSGS_MESSAGE_ROBOTSTATE_H
00004 #include <string>
00005 #include <vector>
00006 #include <map>
00007 #include <ostream>
00008 #include "ros/serialization.h"
00009 #include "ros/builtin_message_traits.h"
00010 #include "ros/message_operations.h"
00011 #include "ros/time.h"
00012
00013 #include "ros/macros.h"
00014
00015 #include "ros/assert.h"
00016
00017 #include "sensor_msgs/JointState.h"
00018 #include "arm_navigation_msgs/MultiDOFJointState.h"
00019
00020 namespace arm_navigation_msgs
00021 {
00022 template <class ContainerAllocator>
00023 struct RobotState_ {
00024 typedef RobotState_<ContainerAllocator> Type;
00025
00026 RobotState_()
00027 : joint_state()
00028 , multi_dof_joint_state()
00029 {
00030 }
00031
00032 RobotState_(const ContainerAllocator& _alloc)
00033 : joint_state(_alloc)
00034 , multi_dof_joint_state(_alloc)
00035 {
00036 }
00037
00038 typedef ::sensor_msgs::JointState_<ContainerAllocator> _joint_state_type;
00039 ::sensor_msgs::JointState_<ContainerAllocator> joint_state;
00040
00041 typedef ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> _multi_dof_joint_state_type;
00042 ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> multi_dof_joint_state;
00043
00044
00045 private:
00046 static const char* __s_getDataType_() { return "arm_navigation_msgs/RobotState"; }
00047 public:
00048 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00049
00050 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00051
00052 private:
00053 static const char* __s_getMD5Sum_() { return "970d46b2ca41b9686adbdaeb592d97a7"; }
00054 public:
00055 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00056
00057 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00058
00059 private:
00060 static const char* __s_getMessageDefinition_() { return "# This message contains information about the robot state, i.e. the positions of its joints and links\n\
00061 sensor_msgs/JointState joint_state\n\
00062 arm_navigation_msgs/MultiDOFJointState multi_dof_joint_state\n\
00063 \n\
00064 ================================================================================\n\
00065 MSG: sensor_msgs/JointState\n\
00066 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\
00067 #\n\
00068 # The state of each joint (revolute or prismatic) is defined by:\n\
00069 # * the position of the joint (rad or m),\n\
00070 # * the velocity of the joint (rad/s or m/s) and \n\
00071 # * the effort that is applied in the joint (Nm or N).\n\
00072 #\n\
00073 # Each joint is uniquely identified by its name\n\
00074 # The header specifies the time at which the joint states were recorded. All the joint states\n\
00075 # in one message have to be recorded at the same time.\n\
00076 #\n\
00077 # This message consists of a multiple arrays, one for each part of the joint state. \n\
00078 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
00079 # effort associated with them, you can leave the effort array empty. \n\
00080 #\n\
00081 # All arrays in this message should have the same size, or be empty.\n\
00082 # This is the only way to uniquely associate the joint name with the correct\n\
00083 # states.\n\
00084 \n\
00085 \n\
00086 Header header\n\
00087 \n\
00088 string[] name\n\
00089 float64[] position\n\
00090 float64[] velocity\n\
00091 float64[] effort\n\
00092 \n\
00093 ================================================================================\n\
00094 MSG: std_msgs/Header\n\
00095 # Standard metadata for higher-level stamped data types.\n\
00096 # This is generally used to communicate timestamped data \n\
00097 # in a particular coordinate frame.\n\
00098 # \n\
00099 # sequence ID: consecutively increasing ID \n\
00100 uint32 seq\n\
00101 #Two-integer timestamp that is expressed as:\n\
00102 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00103 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00104 # time-handling sugar is provided by the client library\n\
00105 time stamp\n\
00106 #Frame this data is associated with\n\
00107 # 0: no frame\n\
00108 # 1: global frame\n\
00109 string frame_id\n\
00110 \n\
00111 ================================================================================\n\
00112 MSG: arm_navigation_msgs/MultiDOFJointState\n\
00113 #A representation of a multi-dof joint state\n\
00114 time stamp\n\
00115 string[] joint_names\n\
00116 string[] frame_ids\n\
00117 string[] child_frame_ids\n\
00118 geometry_msgs/Pose[] poses\n\
00119 \n\
00120 ================================================================================\n\
00121 MSG: geometry_msgs/Pose\n\
00122 # A representation of pose in free space, composed of postion and orientation. \n\
00123 Point position\n\
00124 Quaternion orientation\n\
00125 \n\
00126 ================================================================================\n\
00127 MSG: geometry_msgs/Point\n\
00128 # This contains the position of a point in free space\n\
00129 float64 x\n\
00130 float64 y\n\
00131 float64 z\n\
00132 \n\
00133 ================================================================================\n\
00134 MSG: geometry_msgs/Quaternion\n\
00135 # This represents an orientation in free space in quaternion form.\n\
00136 \n\
00137 float64 x\n\
00138 float64 y\n\
00139 float64 z\n\
00140 float64 w\n\
00141 \n\
00142 "; }
00143 public:
00144 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00145
00146 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00147
00148 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00149 {
00150 ros::serialization::OStream stream(write_ptr, 1000000000);
00151 ros::serialization::serialize(stream, joint_state);
00152 ros::serialization::serialize(stream, multi_dof_joint_state);
00153 return stream.getData();
00154 }
00155
00156 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00157 {
00158 ros::serialization::IStream stream(read_ptr, 1000000000);
00159 ros::serialization::deserialize(stream, joint_state);
00160 ros::serialization::deserialize(stream, multi_dof_joint_state);
00161 return stream.getData();
00162 }
00163
00164 ROS_DEPRECATED virtual uint32_t serializationLength() const
00165 {
00166 uint32_t size = 0;
00167 size += ros::serialization::serializationLength(joint_state);
00168 size += ros::serialization::serializationLength(multi_dof_joint_state);
00169 return size;
00170 }
00171
00172 typedef boost::shared_ptr< ::arm_navigation_msgs::RobotState_<ContainerAllocator> > Ptr;
00173 typedef boost::shared_ptr< ::arm_navigation_msgs::RobotState_<ContainerAllocator> const> ConstPtr;
00174 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00175 };
00176 typedef ::arm_navigation_msgs::RobotState_<std::allocator<void> > RobotState;
00177
00178 typedef boost::shared_ptr< ::arm_navigation_msgs::RobotState> RobotStatePtr;
00179 typedef boost::shared_ptr< ::arm_navigation_msgs::RobotState const> RobotStateConstPtr;
00180
00181
00182 template<typename ContainerAllocator>
00183 std::ostream& operator<<(std::ostream& s, const ::arm_navigation_msgs::RobotState_<ContainerAllocator> & v)
00184 {
00185 ros::message_operations::Printer< ::arm_navigation_msgs::RobotState_<ContainerAllocator> >::stream(s, "", v);
00186 return s;}
00187
00188 }
00189
00190 namespace ros
00191 {
00192 namespace message_traits
00193 {
00194 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::RobotState_<ContainerAllocator> > : public TrueType {};
00195 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::RobotState_<ContainerAllocator> const> : public TrueType {};
00196 template<class ContainerAllocator>
00197 struct MD5Sum< ::arm_navigation_msgs::RobotState_<ContainerAllocator> > {
00198 static const char* value()
00199 {
00200 return "970d46b2ca41b9686adbdaeb592d97a7";
00201 }
00202
00203 static const char* value(const ::arm_navigation_msgs::RobotState_<ContainerAllocator> &) { return value(); }
00204 static const uint64_t static_value1 = 0x970d46b2ca41b968ULL;
00205 static const uint64_t static_value2 = 0x6adbdaeb592d97a7ULL;
00206 };
00207
00208 template<class ContainerAllocator>
00209 struct DataType< ::arm_navigation_msgs::RobotState_<ContainerAllocator> > {
00210 static const char* value()
00211 {
00212 return "arm_navigation_msgs/RobotState";
00213 }
00214
00215 static const char* value(const ::arm_navigation_msgs::RobotState_<ContainerAllocator> &) { return value(); }
00216 };
00217
00218 template<class ContainerAllocator>
00219 struct Definition< ::arm_navigation_msgs::RobotState_<ContainerAllocator> > {
00220 static const char* value()
00221 {
00222 return "# This message contains information about the robot state, i.e. the positions of its joints and links\n\
00223 sensor_msgs/JointState joint_state\n\
00224 arm_navigation_msgs/MultiDOFJointState multi_dof_joint_state\n\
00225 \n\
00226 ================================================================================\n\
00227 MSG: sensor_msgs/JointState\n\
00228 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\
00229 #\n\
00230 # The state of each joint (revolute or prismatic) is defined by:\n\
00231 # * the position of the joint (rad or m),\n\
00232 # * the velocity of the joint (rad/s or m/s) and \n\
00233 # * the effort that is applied in the joint (Nm or N).\n\
00234 #\n\
00235 # Each joint is uniquely identified by its name\n\
00236 # The header specifies the time at which the joint states were recorded. All the joint states\n\
00237 # in one message have to be recorded at the same time.\n\
00238 #\n\
00239 # This message consists of a multiple arrays, one for each part of the joint state. \n\
00240 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
00241 # effort associated with them, you can leave the effort array empty. \n\
00242 #\n\
00243 # All arrays in this message should have the same size, or be empty.\n\
00244 # This is the only way to uniquely associate the joint name with the correct\n\
00245 # states.\n\
00246 \n\
00247 \n\
00248 Header header\n\
00249 \n\
00250 string[] name\n\
00251 float64[] position\n\
00252 float64[] velocity\n\
00253 float64[] effort\n\
00254 \n\
00255 ================================================================================\n\
00256 MSG: std_msgs/Header\n\
00257 # Standard metadata for higher-level stamped data types.\n\
00258 # This is generally used to communicate timestamped data \n\
00259 # in a particular coordinate frame.\n\
00260 # \n\
00261 # sequence ID: consecutively increasing ID \n\
00262 uint32 seq\n\
00263 #Two-integer timestamp that is expressed as:\n\
00264 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00265 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00266 # time-handling sugar is provided by the client library\n\
00267 time stamp\n\
00268 #Frame this data is associated with\n\
00269 # 0: no frame\n\
00270 # 1: global frame\n\
00271 string frame_id\n\
00272 \n\
00273 ================================================================================\n\
00274 MSG: arm_navigation_msgs/MultiDOFJointState\n\
00275 #A representation of a multi-dof joint state\n\
00276 time stamp\n\
00277 string[] joint_names\n\
00278 string[] frame_ids\n\
00279 string[] child_frame_ids\n\
00280 geometry_msgs/Pose[] poses\n\
00281 \n\
00282 ================================================================================\n\
00283 MSG: geometry_msgs/Pose\n\
00284 # A representation of pose in free space, composed of postion and orientation. \n\
00285 Point position\n\
00286 Quaternion orientation\n\
00287 \n\
00288 ================================================================================\n\
00289 MSG: geometry_msgs/Point\n\
00290 # This contains the position of a point in free space\n\
00291 float64 x\n\
00292 float64 y\n\
00293 float64 z\n\
00294 \n\
00295 ================================================================================\n\
00296 MSG: geometry_msgs/Quaternion\n\
00297 # This represents an orientation in free space in quaternion form.\n\
00298 \n\
00299 float64 x\n\
00300 float64 y\n\
00301 float64 z\n\
00302 float64 w\n\
00303 \n\
00304 ";
00305 }
00306
00307 static const char* value(const ::arm_navigation_msgs::RobotState_<ContainerAllocator> &) { return value(); }
00308 };
00309
00310 }
00311 }
00312
00313 namespace ros
00314 {
00315 namespace serialization
00316 {
00317
00318 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::RobotState_<ContainerAllocator> >
00319 {
00320 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00321 {
00322 stream.next(m.joint_state);
00323 stream.next(m.multi_dof_joint_state);
00324 }
00325
00326 ROS_DECLARE_ALLINONE_SERIALIZER;
00327 };
00328 }
00329 }
00330
00331 namespace ros
00332 {
00333 namespace message_operations
00334 {
00335
00336 template<class ContainerAllocator>
00337 struct Printer< ::arm_navigation_msgs::RobotState_<ContainerAllocator> >
00338 {
00339 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::arm_navigation_msgs::RobotState_<ContainerAllocator> & v)
00340 {
00341 s << indent << "joint_state: ";
00342 s << std::endl;
00343 Printer< ::sensor_msgs::JointState_<ContainerAllocator> >::stream(s, indent + " ", v.joint_state);
00344 s << indent << "multi_dof_joint_state: ";
00345 s << std::endl;
00346 Printer< ::arm_navigation_msgs::MultiDOFJointState_<ContainerAllocator> >::stream(s, indent + " ", v.multi_dof_joint_state);
00347 }
00348 };
00349
00350
00351 }
00352 }
00353
00354 #endif // ARM_NAVIGATION_MSGS_MESSAGE_ROBOTSTATE_H
00355