Go to the documentation of this file.00001
00002 #ifndef NASA_R2_COMMON_MSGS_MESSAGE_POSETRAJECTORYPOINT_H
00003 #define NASA_R2_COMMON_MSGS_MESSAGE_POSETRAJECTORYPOINT_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/Pose.h"
00018 #include "geometry_msgs/Twist.h"
00019 #include "geometry_msgs/Twist.h"
00020
00021 namespace nasa_r2_common_msgs
00022 {
00023 template <class ContainerAllocator>
00024 struct PoseTrajectoryPoint_ {
00025 typedef PoseTrajectoryPoint_<ContainerAllocator> Type;
00026
00027 PoseTrajectoryPoint_()
00028 : positions()
00029 , velocities()
00030 , accelerations()
00031 , time_from_start()
00032 {
00033 }
00034
00035 PoseTrajectoryPoint_(const ContainerAllocator& _alloc)
00036 : positions(_alloc)
00037 , velocities(_alloc)
00038 , accelerations(_alloc)
00039 , time_from_start()
00040 {
00041 }
00042
00043 typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > _positions_type;
00044 std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > positions;
00045
00046 typedef std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > _velocities_type;
00047 std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > velocities;
00048
00049 typedef std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > _accelerations_type;
00050 std::vector< ::geometry_msgs::Twist_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Twist_<ContainerAllocator> >::other > accelerations;
00051
00052 typedef ros::Duration _time_from_start_type;
00053 ros::Duration time_from_start;
00054
00055
00056 typedef boost::shared_ptr< ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> > Ptr;
00057 typedef boost::shared_ptr< ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> const> ConstPtr;
00058 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00059 };
00060 typedef ::nasa_r2_common_msgs::PoseTrajectoryPoint_<std::allocator<void> > PoseTrajectoryPoint;
00061
00062 typedef boost::shared_ptr< ::nasa_r2_common_msgs::PoseTrajectoryPoint> PoseTrajectoryPointPtr;
00063 typedef boost::shared_ptr< ::nasa_r2_common_msgs::PoseTrajectoryPoint const> PoseTrajectoryPointConstPtr;
00064
00065
00066 template<typename ContainerAllocator>
00067 std::ostream& operator<<(std::ostream& s, const ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> & v)
00068 {
00069 ros::message_operations::Printer< ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> >::stream(s, "", v);
00070 return s;}
00071
00072 }
00073
00074 namespace ros
00075 {
00076 namespace message_traits
00077 {
00078 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> > : public TrueType {};
00079 template<class ContainerAllocator> struct IsMessage< ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> const> : public TrueType {};
00080 template<class ContainerAllocator>
00081 struct MD5Sum< ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> > {
00082 static const char* value()
00083 {
00084 return "29009f42fa3cbc3a6154994f31b2db03";
00085 }
00086
00087 static const char* value(const ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> &) { return value(); }
00088 static const uint64_t static_value1 = 0x29009f42fa3cbc3aULL;
00089 static const uint64_t static_value2 = 0x6154994f31b2db03ULL;
00090 };
00091
00092 template<class ContainerAllocator>
00093 struct DataType< ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> > {
00094 static const char* value()
00095 {
00096 return "nasa_r2_common_msgs/PoseTrajectoryPoint";
00097 }
00098
00099 static const char* value(const ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> &) { return value(); }
00100 };
00101
00102 template<class ContainerAllocator>
00103 struct Definition< ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> > {
00104 static const char* value()
00105 {
00106 return "# currently, position only but could add velocity and acceleration later\n\
00107 geometry_msgs/Pose[] positions\n\
00108 geometry_msgs/Twist[] velocities\n\
00109 geometry_msgs/Twist[] accelerations\n\
00110 duration time_from_start\n\
00111 \n\
00112 ================================================================================\n\
00113 MSG: geometry_msgs/Pose\n\
00114 # A representation of pose in free space, composed of postion and orientation. \n\
00115 Point position\n\
00116 Quaternion orientation\n\
00117 \n\
00118 ================================================================================\n\
00119 MSG: geometry_msgs/Point\n\
00120 # This contains the position of a point in free space\n\
00121 float64 x\n\
00122 float64 y\n\
00123 float64 z\n\
00124 \n\
00125 ================================================================================\n\
00126 MSG: geometry_msgs/Quaternion\n\
00127 # This represents an orientation in free space in quaternion form.\n\
00128 \n\
00129 float64 x\n\
00130 float64 y\n\
00131 float64 z\n\
00132 float64 w\n\
00133 \n\
00134 ================================================================================\n\
00135 MSG: geometry_msgs/Twist\n\
00136 # This expresses velocity in free space broken into its linear and angular parts.\n\
00137 Vector3 linear\n\
00138 Vector3 angular\n\
00139 \n\
00140 ================================================================================\n\
00141 MSG: geometry_msgs/Vector3\n\
00142 # This represents a vector in free space. \n\
00143 \n\
00144 float64 x\n\
00145 float64 y\n\
00146 float64 z\n\
00147 ";
00148 }
00149
00150 static const char* value(const ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> &) { return value(); }
00151 };
00152
00153 }
00154 }
00155
00156 namespace ros
00157 {
00158 namespace serialization
00159 {
00160
00161 template<class ContainerAllocator> struct Serializer< ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> >
00162 {
00163 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00164 {
00165 stream.next(m.positions);
00166 stream.next(m.velocities);
00167 stream.next(m.accelerations);
00168 stream.next(m.time_from_start);
00169 }
00170
00171 ROS_DECLARE_ALLINONE_SERIALIZER;
00172 };
00173 }
00174 }
00175
00176 namespace ros
00177 {
00178 namespace message_operations
00179 {
00180
00181 template<class ContainerAllocator>
00182 struct Printer< ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> >
00183 {
00184 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::nasa_r2_common_msgs::PoseTrajectoryPoint_<ContainerAllocator> & v)
00185 {
00186 s << indent << "positions[]" << std::endl;
00187 for (size_t i = 0; i < v.positions.size(); ++i)
00188 {
00189 s << indent << " positions[" << i << "]: ";
00190 s << std::endl;
00191 s << indent;
00192 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.positions[i]);
00193 }
00194 s << indent << "velocities[]" << std::endl;
00195 for (size_t i = 0; i < v.velocities.size(); ++i)
00196 {
00197 s << indent << " velocities[" << i << "]: ";
00198 s << std::endl;
00199 s << indent;
00200 Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + " ", v.velocities[i]);
00201 }
00202 s << indent << "accelerations[]" << std::endl;
00203 for (size_t i = 0; i < v.accelerations.size(); ++i)
00204 {
00205 s << indent << " accelerations[" << i << "]: ";
00206 s << std::endl;
00207 s << indent;
00208 Printer< ::geometry_msgs::Twist_<ContainerAllocator> >::stream(s, indent + " ", v.accelerations[i]);
00209 }
00210 s << indent << "time_from_start: ";
00211 Printer<ros::Duration>::stream(s, indent + " ", v.time_from_start);
00212 }
00213 };
00214
00215
00216 }
00217 }
00218
00219 #endif // NASA_R2_COMMON_MSGS_MESSAGE_POSETRAJECTORYPOINT_H
00220