GetPositionFK.h
Go to the documentation of this file.
00001 /* Auto-generated by genmsg_cpp for file /home/rosbuild/hudson/workspace/doc-groovy-arm_navigation/doc_stacks/2013-12-02_12-23-34.850326/arm_navigation/kinematics_msgs/srv/GetPositionFK.srv */
00002 #ifndef KINEMATICS_MSGS_SERVICE_GETPOSITIONFK_H
00003 #define KINEMATICS_MSGS_SERVICE_GETPOSITIONFK_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 "ros/service_traits.h"
00018 
00019 #include "std_msgs/Header.h"
00020 #include "arm_navigation_msgs/RobotState.h"
00021 
00022 
00023 #include "geometry_msgs/PoseStamped.h"
00024 #include "arm_navigation_msgs/ArmNavigationErrorCodes.h"
00025 
00026 namespace kinematics_msgs
00027 {
00028 template <class ContainerAllocator>
00029 struct GetPositionFKRequest_ {
00030   typedef GetPositionFKRequest_<ContainerAllocator> Type;
00031 
00032   GetPositionFKRequest_()
00033   : header()
00034   , fk_link_names()
00035   , robot_state()
00036   {
00037   }
00038 
00039   GetPositionFKRequest_(const ContainerAllocator& _alloc)
00040   : header(_alloc)
00041   , fk_link_names(_alloc)
00042   , robot_state(_alloc)
00043   {
00044   }
00045 
00046   typedef  ::std_msgs::Header_<ContainerAllocator>  _header_type;
00047    ::std_msgs::Header_<ContainerAllocator>  header;
00048 
00049   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 >  _fk_link_names_type;
00050   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 >  fk_link_names;
00051 
00052   typedef  ::arm_navigation_msgs::RobotState_<ContainerAllocator>  _robot_state_type;
00053    ::arm_navigation_msgs::RobotState_<ContainerAllocator>  robot_state;
00054 
00055 
00056   typedef boost::shared_ptr< ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> > Ptr;
00057   typedef boost::shared_ptr< ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator>  const> ConstPtr;
00058   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00059 }; // struct GetPositionFKRequest
00060 typedef  ::kinematics_msgs::GetPositionFKRequest_<std::allocator<void> > GetPositionFKRequest;
00061 
00062 typedef boost::shared_ptr< ::kinematics_msgs::GetPositionFKRequest> GetPositionFKRequestPtr;
00063 typedef boost::shared_ptr< ::kinematics_msgs::GetPositionFKRequest const> GetPositionFKRequestConstPtr;
00064 
00065 
00066 
00067 template <class ContainerAllocator>
00068 struct GetPositionFKResponse_ {
00069   typedef GetPositionFKResponse_<ContainerAllocator> Type;
00070 
00071   GetPositionFKResponse_()
00072   : pose_stamped()
00073   , fk_link_names()
00074   , error_code()
00075   {
00076   }
00077 
00078   GetPositionFKResponse_(const ContainerAllocator& _alloc)
00079   : pose_stamped(_alloc)
00080   , fk_link_names(_alloc)
00081   , error_code(_alloc)
00082   {
00083   }
00084 
00085   typedef std::vector< ::geometry_msgs::PoseStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::other >  _pose_stamped_type;
00086   std::vector< ::geometry_msgs::PoseStamped_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::other >  pose_stamped;
00087 
00088   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 >  _fk_link_names_type;
00089   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 >  fk_link_names;
00090 
00091   typedef  ::arm_navigation_msgs::ArmNavigationErrorCodes_<ContainerAllocator>  _error_code_type;
00092    ::arm_navigation_msgs::ArmNavigationErrorCodes_<ContainerAllocator>  error_code;
00093 
00094 
00095   typedef boost::shared_ptr< ::kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> > Ptr;
00096   typedef boost::shared_ptr< ::kinematics_msgs::GetPositionFKResponse_<ContainerAllocator>  const> ConstPtr;
00097   boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00098 }; // struct GetPositionFKResponse
00099 typedef  ::kinematics_msgs::GetPositionFKResponse_<std::allocator<void> > GetPositionFKResponse;
00100 
00101 typedef boost::shared_ptr< ::kinematics_msgs::GetPositionFKResponse> GetPositionFKResponsePtr;
00102 typedef boost::shared_ptr< ::kinematics_msgs::GetPositionFKResponse const> GetPositionFKResponseConstPtr;
00103 
00104 
00105 struct GetPositionFK
00106 {
00107 
00108 typedef GetPositionFKRequest Request;
00109 typedef GetPositionFKResponse Response;
00110 Request request;
00111 Response response;
00112 
00113 typedef Request RequestType;
00114 typedef Response ResponseType;
00115 }; // struct GetPositionFK
00116 } // namespace kinematics_msgs
00117 
00118 namespace ros
00119 {
00120 namespace message_traits
00121 {
00122 template<class ContainerAllocator> struct IsMessage< ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> > : public TrueType {};
00123 template<class ContainerAllocator> struct IsMessage< ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator>  const> : public TrueType {};
00124 template<class ContainerAllocator>
00125 struct MD5Sum< ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> > {
00126   static const char* value() 
00127   {
00128     return "ddaa8b9932e60599795bcb983e28cf57";
00129   }
00130 
00131   static const char* value(const  ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> &) { return value(); } 
00132   static const uint64_t static_value1 = 0xddaa8b9932e60599ULL;
00133   static const uint64_t static_value2 = 0x795bcb983e28cf57ULL;
00134 };
00135 
00136 template<class ContainerAllocator>
00137 struct DataType< ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> > {
00138   static const char* value() 
00139   {
00140     return "kinematics_msgs/GetPositionFKRequest";
00141   }
00142 
00143   static const char* value(const  ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> &) { return value(); } 
00144 };
00145 
00146 template<class ContainerAllocator>
00147 struct Definition< ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> > {
00148   static const char* value() 
00149   {
00150     return "\n\
00151 \n\
00152 \n\
00153 Header header\n\
00154 \n\
00155 \n\
00156 string[] fk_link_names\n\
00157 \n\
00158 \n\
00159 arm_navigation_msgs/RobotState robot_state\n\
00160 \n\
00161 ================================================================================\n\
00162 MSG: std_msgs/Header\n\
00163 # Standard metadata for higher-level stamped data types.\n\
00164 # This is generally used to communicate timestamped data \n\
00165 # in a particular coordinate frame.\n\
00166 # \n\
00167 # sequence ID: consecutively increasing ID \n\
00168 uint32 seq\n\
00169 #Two-integer timestamp that is expressed as:\n\
00170 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00171 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00172 # time-handling sugar is provided by the client library\n\
00173 time stamp\n\
00174 #Frame this data is associated with\n\
00175 # 0: no frame\n\
00176 # 1: global frame\n\
00177 string frame_id\n\
00178 \n\
00179 ================================================================================\n\
00180 MSG: arm_navigation_msgs/RobotState\n\
00181 # This message contains information about the robot state, i.e. the positions of its joints and links\n\
00182 sensor_msgs/JointState joint_state\n\
00183 arm_navigation_msgs/MultiDOFJointState multi_dof_joint_state\n\
00184 \n\
00185 ================================================================================\n\
00186 MSG: sensor_msgs/JointState\n\
00187 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\
00188 #\n\
00189 # The state of each joint (revolute or prismatic) is defined by:\n\
00190 #  * the position of the joint (rad or m),\n\
00191 #  * the velocity of the joint (rad/s or m/s) and \n\
00192 #  * the effort that is applied in the joint (Nm or N).\n\
00193 #\n\
00194 # Each joint is uniquely identified by its name\n\
00195 # The header specifies the time at which the joint states were recorded. All the joint states\n\
00196 # in one message have to be recorded at the same time.\n\
00197 #\n\
00198 # This message consists of a multiple arrays, one for each part of the joint state. \n\
00199 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
00200 # effort associated with them, you can leave the effort array empty. \n\
00201 #\n\
00202 # All arrays in this message should have the same size, or be empty.\n\
00203 # This is the only way to uniquely associate the joint name with the correct\n\
00204 # states.\n\
00205 \n\
00206 \n\
00207 Header header\n\
00208 \n\
00209 string[] name\n\
00210 float64[] position\n\
00211 float64[] velocity\n\
00212 float64[] effort\n\
00213 \n\
00214 ================================================================================\n\
00215 MSG: arm_navigation_msgs/MultiDOFJointState\n\
00216 #A representation of a multi-dof joint state\n\
00217 time stamp\n\
00218 string[] joint_names\n\
00219 string[] frame_ids\n\
00220 string[] child_frame_ids\n\
00221 geometry_msgs/Pose[] poses\n\
00222 \n\
00223 ================================================================================\n\
00224 MSG: geometry_msgs/Pose\n\
00225 # A representation of pose in free space, composed of postion and orientation. \n\
00226 Point position\n\
00227 Quaternion orientation\n\
00228 \n\
00229 ================================================================================\n\
00230 MSG: geometry_msgs/Point\n\
00231 # This contains the position of a point in free space\n\
00232 float64 x\n\
00233 float64 y\n\
00234 float64 z\n\
00235 \n\
00236 ================================================================================\n\
00237 MSG: geometry_msgs/Quaternion\n\
00238 # This represents an orientation in free space in quaternion form.\n\
00239 \n\
00240 float64 x\n\
00241 float64 y\n\
00242 float64 z\n\
00243 float64 w\n\
00244 \n\
00245 ";
00246   }
00247 
00248   static const char* value(const  ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> &) { return value(); } 
00249 };
00250 
00251 template<class ContainerAllocator> struct HasHeader< ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> > : public TrueType {};
00252 template<class ContainerAllocator> struct HasHeader< const ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> > : public TrueType {};
00253 } // namespace message_traits
00254 } // namespace ros
00255 
00256 
00257 namespace ros
00258 {
00259 namespace message_traits
00260 {
00261 template<class ContainerAllocator> struct IsMessage< ::kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> > : public TrueType {};
00262 template<class ContainerAllocator> struct IsMessage< ::kinematics_msgs::GetPositionFKResponse_<ContainerAllocator>  const> : public TrueType {};
00263 template<class ContainerAllocator>
00264 struct MD5Sum< ::kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> > {
00265   static const char* value() 
00266   {
00267     return "4a3efc190f6ac6f248069cfa3cd94286";
00268   }
00269 
00270   static const char* value(const  ::kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> &) { return value(); } 
00271   static const uint64_t static_value1 = 0x4a3efc190f6ac6f2ULL;
00272   static const uint64_t static_value2 = 0x48069cfa3cd94286ULL;
00273 };
00274 
00275 template<class ContainerAllocator>
00276 struct DataType< ::kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> > {
00277   static const char* value() 
00278   {
00279     return "kinematics_msgs/GetPositionFKResponse";
00280   }
00281 
00282   static const char* value(const  ::kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> &) { return value(); } 
00283 };
00284 
00285 template<class ContainerAllocator>
00286 struct Definition< ::kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> > {
00287   static const char* value() 
00288   {
00289     return "\n\
00290 geometry_msgs/PoseStamped[] pose_stamped\n\
00291 \n\
00292 \n\
00293 string[] fk_link_names\n\
00294 \n\
00295 arm_navigation_msgs/ArmNavigationErrorCodes error_code\n\
00296 \n\
00297 \n\
00298 ================================================================================\n\
00299 MSG: geometry_msgs/PoseStamped\n\
00300 # A Pose with reference coordinate frame and timestamp\n\
00301 Header header\n\
00302 Pose pose\n\
00303 \n\
00304 ================================================================================\n\
00305 MSG: std_msgs/Header\n\
00306 # Standard metadata for higher-level stamped data types.\n\
00307 # This is generally used to communicate timestamped data \n\
00308 # in a particular coordinate frame.\n\
00309 # \n\
00310 # sequence ID: consecutively increasing ID \n\
00311 uint32 seq\n\
00312 #Two-integer timestamp that is expressed as:\n\
00313 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00314 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00315 # time-handling sugar is provided by the client library\n\
00316 time stamp\n\
00317 #Frame this data is associated with\n\
00318 # 0: no frame\n\
00319 # 1: global frame\n\
00320 string frame_id\n\
00321 \n\
00322 ================================================================================\n\
00323 MSG: geometry_msgs/Pose\n\
00324 # A representation of pose in free space, composed of postion and orientation. \n\
00325 Point position\n\
00326 Quaternion orientation\n\
00327 \n\
00328 ================================================================================\n\
00329 MSG: geometry_msgs/Point\n\
00330 # This contains the position of a point in free space\n\
00331 float64 x\n\
00332 float64 y\n\
00333 float64 z\n\
00334 \n\
00335 ================================================================================\n\
00336 MSG: geometry_msgs/Quaternion\n\
00337 # This represents an orientation in free space in quaternion form.\n\
00338 \n\
00339 float64 x\n\
00340 float64 y\n\
00341 float64 z\n\
00342 float64 w\n\
00343 \n\
00344 ================================================================================\n\
00345 MSG: arm_navigation_msgs/ArmNavigationErrorCodes\n\
00346 int32 val\n\
00347 \n\
00348 # overall behavior\n\
00349 int32 PLANNING_FAILED=-1\n\
00350 int32 SUCCESS=1\n\
00351 int32 TIMED_OUT=-2\n\
00352 \n\
00353 # start state errors\n\
00354 int32 START_STATE_IN_COLLISION=-3\n\
00355 int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-4\n\
00356 \n\
00357 # goal errors\n\
00358 int32 GOAL_IN_COLLISION=-5\n\
00359 int32 GOAL_VIOLATES_PATH_CONSTRAINTS=-6\n\
00360 \n\
00361 # robot state\n\
00362 int32 INVALID_ROBOT_STATE=-7\n\
00363 int32 INCOMPLETE_ROBOT_STATE=-8\n\
00364 \n\
00365 # planning request errors\n\
00366 int32 INVALID_PLANNER_ID=-9\n\
00367 int32 INVALID_NUM_PLANNING_ATTEMPTS=-10\n\
00368 int32 INVALID_ALLOWED_PLANNING_TIME=-11\n\
00369 int32 INVALID_GROUP_NAME=-12\n\
00370 int32 INVALID_GOAL_JOINT_CONSTRAINTS=-13\n\
00371 int32 INVALID_GOAL_POSITION_CONSTRAINTS=-14\n\
00372 int32 INVALID_GOAL_ORIENTATION_CONSTRAINTS=-15\n\
00373 int32 INVALID_PATH_JOINT_CONSTRAINTS=-16\n\
00374 int32 INVALID_PATH_POSITION_CONSTRAINTS=-17\n\
00375 int32 INVALID_PATH_ORIENTATION_CONSTRAINTS=-18\n\
00376 \n\
00377 # state/trajectory monitor errors\n\
00378 int32 INVALID_TRAJECTORY=-19\n\
00379 int32 INVALID_INDEX=-20\n\
00380 int32 JOINT_LIMITS_VIOLATED=-21\n\
00381 int32 PATH_CONSTRAINTS_VIOLATED=-22\n\
00382 int32 COLLISION_CONSTRAINTS_VIOLATED=-23\n\
00383 int32 GOAL_CONSTRAINTS_VIOLATED=-24\n\
00384 int32 JOINTS_NOT_MOVING=-25\n\
00385 int32 TRAJECTORY_CONTROLLER_FAILED=-26\n\
00386 \n\
00387 # system errors\n\
00388 int32 FRAME_TRANSFORM_FAILURE=-27\n\
00389 int32 COLLISION_CHECKING_UNAVAILABLE=-28\n\
00390 int32 ROBOT_STATE_STALE=-29\n\
00391 int32 SENSOR_INFO_STALE=-30\n\
00392 \n\
00393 # kinematics errors\n\
00394 int32 NO_IK_SOLUTION=-31\n\
00395 int32 INVALID_LINK_NAME=-32\n\
00396 int32 IK_LINK_IN_COLLISION=-33\n\
00397 int32 NO_FK_SOLUTION=-34\n\
00398 int32 KINEMATICS_STATE_IN_COLLISION=-35\n\
00399 \n\
00400 # general errors\n\
00401 int32 INVALID_TIMEOUT=-36\n\
00402 \n\
00403 \n\
00404 ";
00405   }
00406 
00407   static const char* value(const  ::kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> &) { return value(); } 
00408 };
00409 
00410 } // namespace message_traits
00411 } // namespace ros
00412 
00413 namespace ros
00414 {
00415 namespace serialization
00416 {
00417 
00418 template<class ContainerAllocator> struct Serializer< ::kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> >
00419 {
00420   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00421   {
00422     stream.next(m.header);
00423     stream.next(m.fk_link_names);
00424     stream.next(m.robot_state);
00425   }
00426 
00427   ROS_DECLARE_ALLINONE_SERIALIZER;
00428 }; // struct GetPositionFKRequest_
00429 } // namespace serialization
00430 } // namespace ros
00431 
00432 
00433 namespace ros
00434 {
00435 namespace serialization
00436 {
00437 
00438 template<class ContainerAllocator> struct Serializer< ::kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> >
00439 {
00440   template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00441   {
00442     stream.next(m.pose_stamped);
00443     stream.next(m.fk_link_names);
00444     stream.next(m.error_code);
00445   }
00446 
00447   ROS_DECLARE_ALLINONE_SERIALIZER;
00448 }; // struct GetPositionFKResponse_
00449 } // namespace serialization
00450 } // namespace ros
00451 
00452 namespace ros
00453 {
00454 namespace service_traits
00455 {
00456 template<>
00457 struct MD5Sum<kinematics_msgs::GetPositionFK> {
00458   static const char* value() 
00459   {
00460     return "2088007c8963e2252a67c872affa0985";
00461   }
00462 
00463   static const char* value(const kinematics_msgs::GetPositionFK&) { return value(); } 
00464 };
00465 
00466 template<>
00467 struct DataType<kinematics_msgs::GetPositionFK> {
00468   static const char* value() 
00469   {
00470     return "kinematics_msgs/GetPositionFK";
00471   }
00472 
00473   static const char* value(const kinematics_msgs::GetPositionFK&) { return value(); } 
00474 };
00475 
00476 template<class ContainerAllocator>
00477 struct MD5Sum<kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> > {
00478   static const char* value() 
00479   {
00480     return "2088007c8963e2252a67c872affa0985";
00481   }
00482 
00483   static const char* value(const kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> &) { return value(); } 
00484 };
00485 
00486 template<class ContainerAllocator>
00487 struct DataType<kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> > {
00488   static const char* value() 
00489   {
00490     return "kinematics_msgs/GetPositionFK";
00491   }
00492 
00493   static const char* value(const kinematics_msgs::GetPositionFKRequest_<ContainerAllocator> &) { return value(); } 
00494 };
00495 
00496 template<class ContainerAllocator>
00497 struct MD5Sum<kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> > {
00498   static const char* value() 
00499   {
00500     return "2088007c8963e2252a67c872affa0985";
00501   }
00502 
00503   static const char* value(const kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> &) { return value(); } 
00504 };
00505 
00506 template<class ContainerAllocator>
00507 struct DataType<kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> > {
00508   static const char* value() 
00509   {
00510     return "kinematics_msgs/GetPositionFK";
00511   }
00512 
00513   static const char* value(const kinematics_msgs::GetPositionFKResponse_<ContainerAllocator> &) { return value(); } 
00514 };
00515 
00516 } // namespace service_traits
00517 } // namespace ros
00518 
00519 #endif // KINEMATICS_MSGS_SERVICE_GETPOSITIONFK_H
00520 


kinematics_msgs
Author(s): Sachin Chitta
autogenerated on Mon Dec 2 2013 12:32:53