00001
00002 #ifndef IRI_DOOR_DETECTOR_MESSAGE_FINDADOORRESULT_H
00003 #define IRI_DOOR_DETECTOR_MESSAGE_FINDADOORRESULT_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 "geometry_msgs/PoseStamped.h"
00018 #include "arm_navigation_msgs/MotionPlanRequest.h"
00019
00020 namespace iri_door_detector
00021 {
00022 template <class ContainerAllocator>
00023 struct FindADoorResult_ {
00024 typedef FindADoorResult_<ContainerAllocator> Type;
00025
00026 FindADoorResult_()
00027 : base_poses()
00028 , arm_poses()
00029 , planner_service_name()
00030 , state()
00031 {
00032 }
00033
00034 FindADoorResult_(const ContainerAllocator& _alloc)
00035 : base_poses(_alloc)
00036 , arm_poses(_alloc)
00037 , planner_service_name(_alloc)
00038 , state(_alloc)
00039 {
00040 }
00041
00042 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _base_poses_type;
00043 ::geometry_msgs::PoseStamped_<ContainerAllocator> base_poses;
00044
00045 typedef ::arm_navigation_msgs::MotionPlanRequest_<ContainerAllocator> _arm_poses_type;
00046 ::arm_navigation_msgs::MotionPlanRequest_<ContainerAllocator> arm_poses;
00047
00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _planner_service_name_type;
00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > planner_service_name;
00050
00051 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _state_type;
00052 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > state;
00053
00054
00055 typedef boost::shared_ptr< ::iri_door_detector::FindADoorResult_<ContainerAllocator> > Ptr;
00056 typedef boost::shared_ptr< ::iri_door_detector::FindADoorResult_<ContainerAllocator> const> ConstPtr;
00057 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00058 };
00059 typedef ::iri_door_detector::FindADoorResult_<std::allocator<void> > FindADoorResult;
00060
00061 typedef boost::shared_ptr< ::iri_door_detector::FindADoorResult> FindADoorResultPtr;
00062 typedef boost::shared_ptr< ::iri_door_detector::FindADoorResult const> FindADoorResultConstPtr;
00063
00064
00065 template<typename ContainerAllocator>
00066 std::ostream& operator<<(std::ostream& s, const ::iri_door_detector::FindADoorResult_<ContainerAllocator> & v)
00067 {
00068 ros::message_operations::Printer< ::iri_door_detector::FindADoorResult_<ContainerAllocator> >::stream(s, "", v);
00069 return s;}
00070
00071 }
00072
00073 namespace ros
00074 {
00075 namespace message_traits
00076 {
00077 template<class ContainerAllocator> struct IsMessage< ::iri_door_detector::FindADoorResult_<ContainerAllocator> > : public TrueType {};
00078 template<class ContainerAllocator> struct IsMessage< ::iri_door_detector::FindADoorResult_<ContainerAllocator> const> : public TrueType {};
00079 template<class ContainerAllocator>
00080 struct MD5Sum< ::iri_door_detector::FindADoorResult_<ContainerAllocator> > {
00081 static const char* value()
00082 {
00083 return "5fa7b6c2022d0d722bc2489bda0bb208";
00084 }
00085
00086 static const char* value(const ::iri_door_detector::FindADoorResult_<ContainerAllocator> &) { return value(); }
00087 static const uint64_t static_value1 = 0x5fa7b6c2022d0d72ULL;
00088 static const uint64_t static_value2 = 0x2bc2489bda0bb208ULL;
00089 };
00090
00091 template<class ContainerAllocator>
00092 struct DataType< ::iri_door_detector::FindADoorResult_<ContainerAllocator> > {
00093 static const char* value()
00094 {
00095 return "iri_door_detector/FindADoorResult";
00096 }
00097
00098 static const char* value(const ::iri_door_detector::FindADoorResult_<ContainerAllocator> &) { return value(); }
00099 };
00100
00101 template<class ContainerAllocator>
00102 struct Definition< ::iri_door_detector::FindADoorResult_<ContainerAllocator> > {
00103 static const char* value()
00104 {
00105 return "# ====== DO NOT MODIFY! AUTOGENERATED FROM AN ACTION DEFINITION ======\n\
00106 # Define the result\n\
00107 geometry_msgs/PoseStamped base_poses\n\
00108 arm_navigation_msgs/MotionPlanRequest arm_poses\n\
00109 string planner_service_name\n\
00110 string state\n\
00111 \n\
00112 ================================================================================\n\
00113 MSG: geometry_msgs/PoseStamped\n\
00114 # A Pose with reference coordinate frame and timestamp\n\
00115 Header header\n\
00116 Pose pose\n\
00117 \n\
00118 ================================================================================\n\
00119 MSG: std_msgs/Header\n\
00120 # Standard metadata for higher-level stamped data types.\n\
00121 # This is generally used to communicate timestamped data \n\
00122 # in a particular coordinate frame.\n\
00123 # \n\
00124 # sequence ID: consecutively increasing ID \n\
00125 uint32 seq\n\
00126 #Two-integer timestamp that is expressed as:\n\
00127 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00128 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00129 # time-handling sugar is provided by the client library\n\
00130 time stamp\n\
00131 #Frame this data is associated with\n\
00132 # 0: no frame\n\
00133 # 1: global frame\n\
00134 string frame_id\n\
00135 \n\
00136 ================================================================================\n\
00137 MSG: geometry_msgs/Pose\n\
00138 # A representation of pose in free space, composed of postion and orientation. \n\
00139 Point position\n\
00140 Quaternion orientation\n\
00141 \n\
00142 ================================================================================\n\
00143 MSG: geometry_msgs/Point\n\
00144 # This contains the position of a point in free space\n\
00145 float64 x\n\
00146 float64 y\n\
00147 float64 z\n\
00148 \n\
00149 ================================================================================\n\
00150 MSG: geometry_msgs/Quaternion\n\
00151 # This represents an orientation in free space in quaternion form.\n\
00152 \n\
00153 float64 x\n\
00154 float64 y\n\
00155 float64 z\n\
00156 float64 w\n\
00157 \n\
00158 ================================================================================\n\
00159 MSG: arm_navigation_msgs/MotionPlanRequest\n\
00160 # This service contains the definition for a request to the motion\n\
00161 # planner and the output it provides\n\
00162 \n\
00163 # Parameters for the workspace that the planner should work inside\n\
00164 arm_navigation_msgs/WorkspaceParameters workspace_parameters\n\
00165 \n\
00166 # Starting state updates. If certain joints should be considered\n\
00167 # at positions other than the current ones, these positions should\n\
00168 # be set here\n\
00169 arm_navigation_msgs/RobotState start_state\n\
00170 \n\
00171 # The goal state for the model to plan for. The goal is achieved\n\
00172 # if all constraints are satisfied\n\
00173 arm_navigation_msgs/Constraints goal_constraints\n\
00174 \n\
00175 # No state at any point along the path in the produced motion plan will violate these constraints\n\
00176 arm_navigation_msgs/Constraints path_constraints\n\
00177 \n\
00178 # The name of the motion planner to use. If no name is specified,\n\
00179 # a default motion planner will be used\n\
00180 string planner_id\n\
00181 \n\
00182 # The name of the group of joints on which this planner is operating\n\
00183 string group_name\n\
00184 \n\
00185 # The number of times this plan is to be computed. Shortest solution\n\
00186 # will be reported.\n\
00187 int32 num_planning_attempts\n\
00188 \n\
00189 # The maximum amount of time the motion planner is allowed to plan for\n\
00190 duration allowed_planning_time\n\
00191 \n\
00192 # An expected path duration (in seconds) along with an expected discretization of the path allows the planner to determine the discretization of the trajectory that it returns\n\
00193 duration expected_path_duration\n\
00194 duration expected_path_dt\n\
00195 \n\
00196 ================================================================================\n\
00197 MSG: arm_navigation_msgs/WorkspaceParameters\n\
00198 # This message contains a set of parameters useful in\n\
00199 # setting up the workspace for planning\n\
00200 arm_navigation_msgs/Shape workspace_region_shape\n\
00201 geometry_msgs/PoseStamped workspace_region_pose\n\
00202 \n\
00203 \n\
00204 ================================================================================\n\
00205 MSG: arm_navigation_msgs/Shape\n\
00206 byte SPHERE=0\n\
00207 byte BOX=1\n\
00208 byte CYLINDER=2\n\
00209 byte MESH=3\n\
00210 \n\
00211 byte type\n\
00212 \n\
00213 \n\
00214 #### define sphere, box, cylinder ####\n\
00215 # the origin of each shape is considered at the shape's center\n\
00216 \n\
00217 # for sphere\n\
00218 # radius := dimensions[0]\n\
00219 \n\
00220 # for cylinder\n\
00221 # radius := dimensions[0]\n\
00222 # length := dimensions[1]\n\
00223 # the length is along the Z axis\n\
00224 \n\
00225 # for box\n\
00226 # size_x := dimensions[0]\n\
00227 # size_y := dimensions[1]\n\
00228 # size_z := dimensions[2]\n\
00229 float64[] dimensions\n\
00230 \n\
00231 \n\
00232 #### define mesh ####\n\
00233 \n\
00234 # list of triangles; triangle k is defined by tre vertices located\n\
00235 # at indices triangles[3k], triangles[3k+1], triangles[3k+2]\n\
00236 int32[] triangles\n\
00237 geometry_msgs/Point[] vertices\n\
00238 \n\
00239 ================================================================================\n\
00240 MSG: arm_navigation_msgs/RobotState\n\
00241 # This message contains information about the robot state, i.e. the positions of its joints and links\n\
00242 sensor_msgs/JointState joint_state\n\
00243 arm_navigation_msgs/MultiDOFJointState multi_dof_joint_state\n\
00244 \n\
00245 ================================================================================\n\
00246 MSG: sensor_msgs/JointState\n\
00247 # This is a message that holds data to describe the state of a set of torque controlled joints. \n\
00248 #\n\
00249 # The state of each joint (revolute or prismatic) is defined by:\n\
00250 # * the position of the joint (rad or m),\n\
00251 # * the velocity of the joint (rad/s or m/s) and \n\
00252 # * the effort that is applied in the joint (Nm or N).\n\
00253 #\n\
00254 # Each joint is uniquely identified by its name\n\
00255 # The header specifies the time at which the joint states were recorded. All the joint states\n\
00256 # in one message have to be recorded at the same time.\n\
00257 #\n\
00258 # This message consists of a multiple arrays, one for each part of the joint state. \n\
00259 # The goal is to make each of the fields optional. When e.g. your joints have no\n\
00260 # effort associated with them, you can leave the effort array empty. \n\
00261 #\n\
00262 # All arrays in this message should have the same size, or be empty.\n\
00263 # This is the only way to uniquely associate the joint name with the correct\n\
00264 # states.\n\
00265 \n\
00266 \n\
00267 Header header\n\
00268 \n\
00269 string[] name\n\
00270 float64[] position\n\
00271 float64[] velocity\n\
00272 float64[] effort\n\
00273 \n\
00274 ================================================================================\n\
00275 MSG: arm_navigation_msgs/MultiDOFJointState\n\
00276 #A representation of a multi-dof joint state\n\
00277 time stamp\n\
00278 string[] joint_names\n\
00279 string[] frame_ids\n\
00280 string[] child_frame_ids\n\
00281 geometry_msgs/Pose[] poses\n\
00282 \n\
00283 ================================================================================\n\
00284 MSG: arm_navigation_msgs/Constraints\n\
00285 # This message contains a list of motion planning constraints.\n\
00286 \n\
00287 arm_navigation_msgs/JointConstraint[] joint_constraints\n\
00288 arm_navigation_msgs/PositionConstraint[] position_constraints\n\
00289 arm_navigation_msgs/OrientationConstraint[] orientation_constraints\n\
00290 arm_navigation_msgs/VisibilityConstraint[] visibility_constraints\n\
00291 \n\
00292 ================================================================================\n\
00293 MSG: arm_navigation_msgs/JointConstraint\n\
00294 # Constrain the position of a joint to be within a certain bound\n\
00295 string joint_name\n\
00296 \n\
00297 # the bound to be achieved is [position - tolerance_below, position + tolerance_above]\n\
00298 float64 position\n\
00299 float64 tolerance_above\n\
00300 float64 tolerance_below\n\
00301 \n\
00302 # A weighting factor for this constraint\n\
00303 float64 weight\n\
00304 ================================================================================\n\
00305 MSG: arm_navigation_msgs/PositionConstraint\n\
00306 # This message contains the definition of a position constraint.\n\
00307 Header header\n\
00308 \n\
00309 # The robot link this constraint refers to\n\
00310 string link_name\n\
00311 \n\
00312 # The offset (in the link frame) for the target point on the link we are planning for\n\
00313 geometry_msgs/Point target_point_offset\n\
00314 \n\
00315 # The nominal/target position for the point we are planning for\n\
00316 geometry_msgs/Point position\n\
00317 \n\
00318 # The shape of the bounded region that constrains the position of the end-effector\n\
00319 # This region is always centered at the position defined above\n\
00320 arm_navigation_msgs/Shape constraint_region_shape\n\
00321 \n\
00322 # The orientation of the bounded region that constrains the position of the end-effector. \n\
00323 # This allows the specification of non-axis aligned constraints\n\
00324 geometry_msgs/Quaternion constraint_region_orientation\n\
00325 \n\
00326 # Constraint weighting factor - a weight for this constraint\n\
00327 float64 weight\n\
00328 \n\
00329 ================================================================================\n\
00330 MSG: arm_navigation_msgs/OrientationConstraint\n\
00331 # This message contains the definition of an orientation constraint.\n\
00332 Header header\n\
00333 \n\
00334 # The robot link this constraint refers to\n\
00335 string link_name\n\
00336 \n\
00337 # The type of the constraint\n\
00338 int32 type\n\
00339 int32 LINK_FRAME=0\n\
00340 int32 HEADER_FRAME=1\n\
00341 \n\
00342 # The desired orientation of the robot link specified as a quaternion\n\
00343 geometry_msgs/Quaternion orientation\n\
00344 \n\
00345 # optional RPY error tolerances specified if \n\
00346 float64 absolute_roll_tolerance\n\
00347 float64 absolute_pitch_tolerance\n\
00348 float64 absolute_yaw_tolerance\n\
00349 \n\
00350 # Constraint weighting factor - a weight for this constraint\n\
00351 float64 weight\n\
00352 \n\
00353 ================================================================================\n\
00354 MSG: arm_navigation_msgs/VisibilityConstraint\n\
00355 # This message contains the definition of a visibility constraint.\n\
00356 Header header\n\
00357 \n\
00358 # The point stamped target that needs to be kept within view of the sensor\n\
00359 geometry_msgs/PointStamped target\n\
00360 \n\
00361 # The local pose of the frame in which visibility is to be maintained\n\
00362 # The frame id should represent the robot link to which the sensor is attached\n\
00363 # The visual axis of the sensor is assumed to be along the X axis of this frame\n\
00364 geometry_msgs/PoseStamped sensor_pose\n\
00365 \n\
00366 # The deviation (in radians) that will be tolerated\n\
00367 # Constraint error will be measured as the solid angle between the \n\
00368 # X axis of the frame defined above and the vector between the origin \n\
00369 # of the frame defined above and the target location\n\
00370 float64 absolute_tolerance\n\
00371 \n\
00372 \n\
00373 ================================================================================\n\
00374 MSG: geometry_msgs/PointStamped\n\
00375 # This represents a Point with reference coordinate frame and timestamp\n\
00376 Header header\n\
00377 Point point\n\
00378 \n\
00379 ";
00380 }
00381
00382 static const char* value(const ::iri_door_detector::FindADoorResult_<ContainerAllocator> &) { return value(); }
00383 };
00384
00385 }
00386 }
00387
00388 namespace ros
00389 {
00390 namespace serialization
00391 {
00392
00393 template<class ContainerAllocator> struct Serializer< ::iri_door_detector::FindADoorResult_<ContainerAllocator> >
00394 {
00395 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00396 {
00397 stream.next(m.base_poses);
00398 stream.next(m.arm_poses);
00399 stream.next(m.planner_service_name);
00400 stream.next(m.state);
00401 }
00402
00403 ROS_DECLARE_ALLINONE_SERIALIZER;
00404 };
00405 }
00406 }
00407
00408 namespace ros
00409 {
00410 namespace message_operations
00411 {
00412
00413 template<class ContainerAllocator>
00414 struct Printer< ::iri_door_detector::FindADoorResult_<ContainerAllocator> >
00415 {
00416 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::iri_door_detector::FindADoorResult_<ContainerAllocator> & v)
00417 {
00418 s << indent << "base_poses: ";
00419 s << std::endl;
00420 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.base_poses);
00421 s << indent << "arm_poses: ";
00422 s << std::endl;
00423 Printer< ::arm_navigation_msgs::MotionPlanRequest_<ContainerAllocator> >::stream(s, indent + " ", v.arm_poses);
00424 s << indent << "planner_service_name: ";
00425 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.planner_service_name);
00426 s << indent << "state: ";
00427 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.state);
00428 }
00429 };
00430
00431
00432 }
00433 }
00434
00435 #endif // IRI_DOOR_DETECTOR_MESSAGE_FINDADOORRESULT_H
00436