Go to the documentation of this file.00001
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_POSETRAJECTORYREPLAN_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_POSETRAJECTORYREPLAN_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 "std_msgs/Header.h"
00018 #include "nasa_r2_common_msgs/ReplanType.h"
00019 #include "nasa_r2_common_msgs/PoseTrajectory.h"
00020
00021 namespace nasa_r2_common_msgs
00022 {
00023 template <class ContainerAllocator>
00024 struct PoseTrajectoryReplan_ {
00025 typedef PoseTrajectoryReplan_<ContainerAllocator> Type;
00026
00027 PoseTrajectoryReplan_()
00028 : header()
00029 , replan()
00030 , trajectory()
00031 {
00032 }
00033
00034 PoseTrajectoryReplan_(const ContainerAllocator& _alloc)
00035 : header(_alloc)
00036 , replan(_alloc)
00037 , trajectory(_alloc)
00038 {
00039 }
00040
00041 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00042 ::std_msgs::Header_<ContainerAllocator> header;
00043
00044 typedef ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> _replan_type;
00045 ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> replan;
00046
00047 typedef ::nasa_r2_common_msgs::PoseTrajectory_<ContainerAllocator> _trajectory_type;
00048 ::nasa_r2_common_msgs::PoseTrajectory_<ContainerAllocator> trajectory;
00049
00050
00051 typedef boost::shared_ptr< ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> > Ptr;
00052 typedef boost::shared_ptr< ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> const> ConstPtr;
00053 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00054 };
00055 typedef ::nasa_r2_common_msgs::PoseTrajectoryReplan_<std::allocator<void> > PoseTrajectoryReplan;
00056
00057 typedef boost::shared_ptr< ::nasa_r2_common_msgs::PoseTrajectoryReplan> PoseTrajectoryReplanPtr;
00058 typedef boost::shared_ptr< ::nasa_r2_common_msgs::PoseTrajectoryReplan const> PoseTrajectoryReplanConstPtr;
00059
00060
00061 template<typename ContainerAllocator>
00062 std::ostream& operator<<(std::ostream& s, const ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> & v)
00063 {
00064 ros::message_operations::Printer< ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> >::stream(s, "", v);
00065 return s;}
00066
00067 }
00068
00069 namespace ros
00070 {
00071 namespace message_traits
00072 {
00073 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> > : public TrueType {};
00074 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> const> : public TrueType {};
00075 template<class ContainerAllocator>
00076 struct MD5Sum< ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> > {
00077 static const char* value()
00078 {
00079 return "2c451df74f58d0f7ac206299290fa0f9";
00080 }
00081
00082 static const char* value(const ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> &) { return value(); }
00083 static const uint64_t static_value1 = 0x2c451df74f58d0f7ULL;
00084 static const uint64_t static_value2 = 0xac206299290fa0f9ULL;
00085 };
00086
00087 template<class ContainerAllocator>
00088 struct DataType< ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> > {
00089 static const char* value()
00090 {
00091 return "nasa_r2_common_msgs/PoseTrajectoryReplan";
00092 }
00093
00094 static const char* value(const ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> &) { return value(); }
00095 };
00096
00097 template<class ContainerAllocator>
00098 struct Definition< ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> > {
00099 static const char* value()
00100 {
00101 return "Header header\n\
00102 ReplanType replan\n\
00103 PoseTrajectory trajectory\n\
00104 \n\
00105 ================================================================================\n\
00106 MSG: std_msgs/Header\n\
00107 # Standard metadata for higher-level stamped data types.\n\
00108 # This is generally used to communicate timestamped data \n\
00109 # in a particular coordinate frame.\n\
00110 # \n\
00111 # sequence ID: consecutively increasing ID \n\
00112 uint32 seq\n\
00113 #Two-integer timestamp that is expressed as:\n\
00114 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00115 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00116 # time-handling sugar is provided by the client library\n\
00117 time stamp\n\
00118 #Frame this data is associated with\n\
00119 # 0: no frame\n\
00120 # 1: global frame\n\
00121 string frame_id\n\
00122 \n\
00123 ================================================================================\n\
00124 MSG: nasa_r2_common_msgs/ReplanType\n\
00125 uint8 type\n\
00126 \n\
00127 uint8 NONE = 0\n\
00128 uint8 SOFT = 1\n\
00129 uint8 HARD = 2\n\
00130 uint8 STOP = 3\n\
00131 uint8 PAUSE = 4\n\
00132 uint8 CONTINUE = 5\n\
00133 \n\
00134 ================================================================================\n\
00135 MSG: nasa_r2_common_msgs/PoseTrajectory\n\
00136 Header header\n\
00137 # length of nodes must match length of poses in each point\n\
00138 string[] nodes\n\
00139 # priorities must have nodes length or be omitted which defaults all to HIGH\n\
00140 PriorityArray[] node_priorities\n\
00141 # refFrames must either have one item or be nodes length\n\
00142 string[] refFrames\n\
00143 PoseTrajectoryPoint[] points\n\
00144 \n\
00145 \n\
00146 ================================================================================\n\
00147 MSG: nasa_r2_common_msgs/PriorityArray\n\
00148 # axis_priorities must be 0, 1, or 6 elements\n\
00149 # empty defaults to high, 1 sets all axes equal priority, 6 sets each axis (x, y, z, r, p, y)\n\
00150 uint8[] axis_priorities\n\
00151 \n\
00152 uint8 IGNORE = 0 # Exclude from trajectory\n\
00153 uint8 CRITICAL = 1 # Most important priority in trajectory\n\
00154 uint8 HIGH = 2 # Second most important priority in trajectory\n\
00155 uint8 MEDIUM = 3 # Medium prioirty in trajectory\n\
00156 uint8 LOW = 4 # Low priority in trajectory\n\
00157 uint8 OPT = 5 # Optimize trajectory (solve for, but do not iterate to achieve)\n\
00158 \n\
00159 #uint8 IGNORE = 0\n\
00160 #uint8 LOW = 1\n\
00161 #uint8 MEDIUM = 128\n\
00162 #uint8 HIGH = 254\n\
00163 #uint8 CRITICAL = 255\n\
00164 \n\
00165 ================================================================================\n\
00166 MSG: nasa_r2_common_msgs/PoseTrajectoryPoint\n\
00167 # currently, position only but could add velocity and acceleration later\n\
00168 geometry_msgs/Pose[] positions\n\
00169 geometry_msgs/Twist[] velocities\n\
00170 geometry_msgs/Twist[] accelerations\n\
00171 duration time_from_start\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: geometry_msgs/Pose\n\
00175 # A representation of pose in free space, composed of postion and orientation. \n\
00176 Point position\n\
00177 Quaternion orientation\n\
00178 \n\
00179 ================================================================================\n\
00180 MSG: geometry_msgs/Point\n\
00181 # This contains the position of a point in free space\n\
00182 float64 x\n\
00183 float64 y\n\
00184 float64 z\n\
00185 \n\
00186 ================================================================================\n\
00187 MSG: geometry_msgs/Quaternion\n\
00188 # This represents an orientation in free space in quaternion form.\n\
00189 \n\
00190 float64 x\n\
00191 float64 y\n\
00192 float64 z\n\
00193 float64 w\n\
00194 \n\
00195 ================================================================================\n\
00196 MSG: geometry_msgs/Twist\n\
00197 # This expresses velocity in free space broken into its linear and angular parts.\n\
00198 Vector3 linear\n\
00199 Vector3 angular\n\
00200 \n\
00201 ================================================================================\n\
00202 MSG: geometry_msgs/Vector3\n\
00203 # This represents a vector in free space. \n\
00204 \n\
00205 float64 x\n\
00206 float64 y\n\
00207 float64 z\n\
00208 ";
00209 }
00210
00211 static const char* value(const ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> &) { return value(); }
00212 };
00213
00214 template<class ContainerAllocator> struct HasHeader< ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> > : public TrueType {};
00215 template<class ContainerAllocator> struct HasHeader< const ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> > : public TrueType {};
00216 }
00217 }
00218
00219 namespace ros
00220 {
00221 namespace serialization
00222 {
00223
00224 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> >
00225 {
00226 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00227 {
00228 stream.next(m.header);
00229 stream.next(m.replan);
00230 stream.next(m.trajectory);
00231 }
00232
00233 ROS_DECLARE_ALLINONE_SERIALIZER;
00234 };
00235 }
00236 }
00237
00238 namespace ros
00239 {
00240 namespace message_operations
00241 {
00242
00243 template<class ContainerAllocator>
00244 struct Printer< ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> >
00245 {
00246 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nasa_r2_common_msgs::PoseTrajectoryReplan_<ContainerAllocator> & v)
00247 {
00248 s << indent << "header: ";
00249 s << std::endl;
00250 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00251 s << indent << "replan: ";
00252 s << std::endl;
00253 Printer< ::nasa_r2_common_msgs::ReplanType_<ContainerAllocator> >::stream(s, indent + " ", v.replan);
00254 s << indent << "trajectory: ";
00255 s << std::endl;
00256 Printer< ::nasa_r2_common_msgs::PoseTrajectory_<ContainerAllocator> >::stream(s, indent + " ", v.trajectory);
00257 }
00258 };
00259
00260
00261 }
00262 }
00263
00264 #endif // NASA_R2_COMMON_MSGS_MESSAGE_POSETRAJECTORYREPLAN_H
00265