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