00001
00002 #ifndef ARTICULATION_MSGS_MESSAGE_TRACKMSG_H
00003 #define ARTICULATION_MSGS_MESSAGE_TRACKMSG_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 "geometry_msgs/Pose.h"
00019 #include "std_msgs/Header.h"
00020 #include "geometry_msgs/Pose.h"
00021 #include "geometry_msgs/Pose.h"
00022 #include "sensor_msgs/ChannelFloat32.h"
00023
00024 namespace articulation_msgs
00025 {
00026 template <class ContainerAllocator>
00027 struct TrackMsg_ {
00028 typedef TrackMsg_<ContainerAllocator> Type;
00029
00030 TrackMsg_()
00031 : header()
00032 , id(0)
00033 , pose()
00034 , pose_headers()
00035 , pose_projected()
00036 , pose_resampled()
00037 , pose_flags()
00038 , channels()
00039 {
00040 }
00041
00042 TrackMsg_(const ContainerAllocator& _alloc)
00043 : header(_alloc)
00044 , id(0)
00045 , pose(_alloc)
00046 , pose_headers(_alloc)
00047 , pose_projected(_alloc)
00048 , pose_resampled(_alloc)
00049 , pose_flags(_alloc)
00050 , channels(_alloc)
00051 {
00052 }
00053
00054 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00055 ::std_msgs::Header_<ContainerAllocator> header;
00056
00057 typedef int32_t _id_type;
00058 int32_t id;
00059
00060 typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > _pose_type;
00061 std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > pose;
00062
00063 typedef std::vector< ::std_msgs::Header_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Header_<ContainerAllocator> >::other > _pose_headers_type;
00064 std::vector< ::std_msgs::Header_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::std_msgs::Header_<ContainerAllocator> >::other > pose_headers;
00065
00066 typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > _pose_projected_type;
00067 std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > pose_projected;
00068
00069 typedef std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > _pose_resampled_type;
00070 std::vector< ::geometry_msgs::Pose_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::geometry_msgs::Pose_<ContainerAllocator> >::other > pose_resampled;
00071
00072 typedef std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > _pose_flags_type;
00073 std::vector<uint32_t, typename ContainerAllocator::template rebind<uint32_t>::other > pose_flags;
00074
00075 typedef std::vector< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >::other > _channels_type;
00076 std::vector< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >::other > channels;
00077
00078 enum { POSE_VISIBLE = 1 };
00079 enum { POSE_END_OF_SEGMENT = 2 };
00080
00081 typedef boost::shared_ptr< ::articulation_msgs::TrackMsg_<ContainerAllocator> > Ptr;
00082 typedef boost::shared_ptr< ::articulation_msgs::TrackMsg_<ContainerAllocator> const> ConstPtr;
00083 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00084 };
00085 typedef ::articulation_msgs::TrackMsg_<std::allocator<void> > TrackMsg;
00086
00087 typedef boost::shared_ptr< ::articulation_msgs::TrackMsg> TrackMsgPtr;
00088 typedef boost::shared_ptr< ::articulation_msgs::TrackMsg const> TrackMsgConstPtr;
00089
00090
00091 template<typename ContainerAllocator>
00092 std::ostream& operator<<(std::ostream& s, const ::articulation_msgs::TrackMsg_<ContainerAllocator> & v)
00093 {
00094 ros::message_operations::Printer< ::articulation_msgs::TrackMsg_<ContainerAllocator> >::stream(s, "", v);
00095 return s;}
00096
00097 }
00098
00099 namespace ros
00100 {
00101 namespace message_traits
00102 {
00103 template<class ContainerAllocator> struct IsMessage< ::articulation_msgs::TrackMsg_<ContainerAllocator> > : public TrueType {};
00104 template<class ContainerAllocator> struct IsMessage< ::articulation_msgs::TrackMsg_<ContainerAllocator> const> : public TrueType {};
00105 template<class ContainerAllocator>
00106 struct MD5Sum< ::articulation_msgs::TrackMsg_<ContainerAllocator> > {
00107 static const char* value()
00108 {
00109 return "f74375fd0f97f92e2767ab0a80c15590";
00110 }
00111
00112 static const char* value(const ::articulation_msgs::TrackMsg_<ContainerAllocator> &) { return value(); }
00113 static const uint64_t static_value1 = 0xf74375fd0f97f92eULL;
00114 static const uint64_t static_value2 = 0x2767ab0a80c15590ULL;
00115 };
00116
00117 template<class ContainerAllocator>
00118 struct DataType< ::articulation_msgs::TrackMsg_<ContainerAllocator> > {
00119 static const char* value()
00120 {
00121 return "articulation_msgs/TrackMsg";
00122 }
00123
00124 static const char* value(const ::articulation_msgs::TrackMsg_<ContainerAllocator> &) { return value(); }
00125 };
00126
00127 template<class ContainerAllocator>
00128 struct Definition< ::articulation_msgs::TrackMsg_<ContainerAllocator> > {
00129 static const char* value()
00130 {
00131 return "# Single kinematic trajectory\n\
00132 #\n\
00133 # This message contains a kinematic trajectory. The trajectory is specified\n\
00134 # as a vector of 6D poses. An additional flag, track_type, indicates whether\n\
00135 # the track is valid, and whether it includes orientation. The track id\n\
00136 # can be used for automatic coloring in the RVIZ track plugin, and can be \n\
00137 # freely chosen by the client. \n\
00138 #\n\
00139 # A model is fitting only from the trajectory stored in the pose[]-vector. \n\
00140 # Additional information may be associated to each pose using the channels\n\
00141 # vector, with arbitrary # fields (e.g., to include applied/measured forces). \n\
00142 #\n\
00143 # After model evaluation,\n\
00144 # also the associated configurations of the object are stored in the channels,\n\
00145 # named \"q[0]\"..\"q[DOF-1]\", where DOF is the number of degrees of freedom.\n\
00146 # Model evaluation also projects the poses in the pose vector onto the model,\n\
00147 # and stores these ideal poses in the vector pose_projected. Further, during model\n\
00148 # evaluation, a new set of (uniform) configurations over the valid configuration\n\
00149 # range is sampled, and the result is stored in pose_resampled.\n\
00150 # The vector pose_flags contains additional display flags for the poses in the\n\
00151 # pose vector, for example, whether a pose is visible and/or\n\
00152 # the end of a trajectory segment. At the moment, this is only used by the\n\
00153 # prior_model_learner.\n\
00154 #\n\
00155 \n\
00156 std_msgs/Header header # frame and timestamp\n\
00157 int32 id # used-specified track id\n\
00158 \n\
00159 geometry_msgs/Pose[] pose # sequence of poses, defining the observed trajectory\n\
00160 std_msgs/Header[] pose_headers # Timestamp and frame for each pose (and pose_projected)\n\
00161 geometry_msgs/Pose[] pose_projected # sequence of poses, projected to the model \n\
00162 # (after model evaluation)\n\
00163 geometry_msgs/Pose[] pose_resampled # sequence of poses, re-sampled from the model in\n\
00164 # the valid configuration range\n\
00165 uint32[] pose_flags # bit-wise combination of POSE_VISIBLE and POSE_END_OF_SEGMENT\n\
00166 \n\
00167 uint32 POSE_VISIBLE=1\n\
00168 uint32 POSE_END_OF_SEGMENT=2\n\
00169 \n\
00170 # Each channel should have the same number of elements as pose array, \n\
00171 # and the data in each channel should correspond 1:1 with each pose\n\
00172 # possible channels: \"width\", \"height\", \"rgb\", ...\n\
00173 sensor_msgs/ChannelFloat32[] channels \n\
00174 \n\
00175 \n\
00176 \n\
00177 ================================================================================\n\
00178 MSG: std_msgs/Header\n\
00179 # Standard metadata for higher-level stamped data types.\n\
00180 # This is generally used to communicate timestamped data \n\
00181 # in a particular coordinate frame.\n\
00182 # \n\
00183 # sequence ID: consecutively increasing ID \n\
00184 uint32 seq\n\
00185 #Two-integer timestamp that is expressed as:\n\
00186 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00187 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00188 # time-handling sugar is provided by the client library\n\
00189 time stamp\n\
00190 #Frame this data is associated with\n\
00191 # 0: no frame\n\
00192 # 1: global frame\n\
00193 string frame_id\n\
00194 \n\
00195 ================================================================================\n\
00196 MSG: geometry_msgs/Pose\n\
00197 # A representation of pose in free space, composed of postion and orientation. \n\
00198 Point position\n\
00199 Quaternion orientation\n\
00200 \n\
00201 ================================================================================\n\
00202 MSG: geometry_msgs/Point\n\
00203 # This contains the position of a point in free space\n\
00204 float64 x\n\
00205 float64 y\n\
00206 float64 z\n\
00207 \n\
00208 ================================================================================\n\
00209 MSG: geometry_msgs/Quaternion\n\
00210 # This represents an orientation in free space in quaternion form.\n\
00211 \n\
00212 float64 x\n\
00213 float64 y\n\
00214 float64 z\n\
00215 float64 w\n\
00216 \n\
00217 ================================================================================\n\
00218 MSG: sensor_msgs/ChannelFloat32\n\
00219 # This message is used by the PointCloud message to hold optional data\n\
00220 # associated with each point in the cloud. The length of the values\n\
00221 # array should be the same as the length of the points array in the\n\
00222 # PointCloud, and each value should be associated with the corresponding\n\
00223 # point.\n\
00224 \n\
00225 # Channel names in existing practice include:\n\
00226 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00227 # This is opposite to usual conventions but remains for\n\
00228 # historical reasons. The newer PointCloud2 message has no\n\
00229 # such problem.\n\
00230 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00231 # (R,G,B) values packed into the least significant 24 bits,\n\
00232 # in order.\n\
00233 # \"intensity\" - laser or pixel intensity.\n\
00234 # \"distance\"\n\
00235 \n\
00236 # The channel name should give semantics of the channel (e.g.\n\
00237 # \"intensity\" instead of \"value\").\n\
00238 string name\n\
00239 \n\
00240 # The values array should be 1-1 with the elements of the associated\n\
00241 # PointCloud.\n\
00242 float32[] values\n\
00243 \n\
00244 ";
00245 }
00246
00247 static const char* value(const ::articulation_msgs::TrackMsg_<ContainerAllocator> &) { return value(); }
00248 };
00249
00250 }
00251 }
00252
00253 namespace ros
00254 {
00255 namespace serialization
00256 {
00257
00258 template<class ContainerAllocator> struct Serializer< ::articulation_msgs::TrackMsg_<ContainerAllocator> >
00259 {
00260 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00261 {
00262 stream.next(m.header);
00263 stream.next(m.id);
00264 stream.next(m.pose);
00265 stream.next(m.pose_headers);
00266 stream.next(m.pose_projected);
00267 stream.next(m.pose_resampled);
00268 stream.next(m.pose_flags);
00269 stream.next(m.channels);
00270 }
00271
00272 ROS_DECLARE_ALLINONE_SERIALIZER;
00273 };
00274 }
00275 }
00276
00277 namespace ros
00278 {
00279 namespace message_operations
00280 {
00281
00282 template<class ContainerAllocator>
00283 struct Printer< ::articulation_msgs::TrackMsg_<ContainerAllocator> >
00284 {
00285 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::articulation_msgs::TrackMsg_<ContainerAllocator> & v)
00286 {
00287 s << indent << "header: ";
00288 s << std::endl;
00289 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00290 s << indent << "id: ";
00291 Printer<int32_t>::stream(s, indent + " ", v.id);
00292 s << indent << "pose[]" << std::endl;
00293 for (size_t i = 0; i < v.pose.size(); ++i)
00294 {
00295 s << indent << " pose[" << i << "]: ";
00296 s << std::endl;
00297 s << indent;
00298 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose[i]);
00299 }
00300 s << indent << "pose_headers[]" << std::endl;
00301 for (size_t i = 0; i < v.pose_headers.size(); ++i)
00302 {
00303 s << indent << " pose_headers[" << i << "]: ";
00304 s << std::endl;
00305 s << indent;
00306 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.pose_headers[i]);
00307 }
00308 s << indent << "pose_projected[]" << std::endl;
00309 for (size_t i = 0; i < v.pose_projected.size(); ++i)
00310 {
00311 s << indent << " pose_projected[" << i << "]: ";
00312 s << std::endl;
00313 s << indent;
00314 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose_projected[i]);
00315 }
00316 s << indent << "pose_resampled[]" << std::endl;
00317 for (size_t i = 0; i < v.pose_resampled.size(); ++i)
00318 {
00319 s << indent << " pose_resampled[" << i << "]: ";
00320 s << std::endl;
00321 s << indent;
00322 Printer< ::geometry_msgs::Pose_<ContainerAllocator> >::stream(s, indent + " ", v.pose_resampled[i]);
00323 }
00324 s << indent << "pose_flags[]" << std::endl;
00325 for (size_t i = 0; i < v.pose_flags.size(); ++i)
00326 {
00327 s << indent << " pose_flags[" << i << "]: ";
00328 Printer<uint32_t>::stream(s, indent + " ", v.pose_flags[i]);
00329 }
00330 s << indent << "channels[]" << std::endl;
00331 for (size_t i = 0; i < v.channels.size(); ++i)
00332 {
00333 s << indent << " channels[" << i << "]: ";
00334 s << std::endl;
00335 s << indent;
00336 Printer< ::sensor_msgs::ChannelFloat32_<ContainerAllocator> >::stream(s, indent + " ", v.channels[i]);
00337 }
00338 }
00339 };
00340
00341
00342 }
00343 }
00344
00345 #endif // ARTICULATION_MSGS_MESSAGE_TRACKMSG_H
00346