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