00001
00002 #ifndef ARTICULATION_MSGS_MESSAGE_ARTICULATEDOBJECTMSG_H
00003 #define ARTICULATION_MSGS_MESSAGE_ARTICULATEDOBJECTMSG_H
00004 #include <string>
00005 #include <vector>
00006 #include <ostream>
00007 #include "ros/serialization.h"
00008 #include "ros/builtin_message_traits.h"
00009 #include "ros/message_operations.h"
00010 #include "ros/message.h"
00011 #include "ros/time.h"
00012
00013 #include "std_msgs/Header.h"
00014 #include "articulation_msgs/TrackMsg.h"
00015 #include "articulation_msgs/ParamMsg.h"
00016 #include "articulation_msgs/ModelMsg.h"
00017 #include "visualization_msgs/MarkerArray.h"
00018
00019 namespace articulation_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct ArticulatedObjectMsg_ : public ros::Message
00023 {
00024 typedef ArticulatedObjectMsg_<ContainerAllocator> Type;
00025
00026 ArticulatedObjectMsg_()
00027 : header()
00028 , parts()
00029 , params()
00030 , models()
00031 , markers()
00032 {
00033 }
00034
00035 ArticulatedObjectMsg_(const ContainerAllocator& _alloc)
00036 : header(_alloc)
00037 , parts(_alloc)
00038 , params(_alloc)
00039 , models(_alloc)
00040 , markers(_alloc)
00041 {
00042 }
00043
00044 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00045 ::std_msgs::Header_<ContainerAllocator> header;
00046
00047 typedef std::vector< ::articulation_msgs::TrackMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::TrackMsg_<ContainerAllocator> >::other > _parts_type;
00048 std::vector< ::articulation_msgs::TrackMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::TrackMsg_<ContainerAllocator> >::other > parts;
00049
00050 typedef std::vector< ::articulation_msgs::ParamMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::ParamMsg_<ContainerAllocator> >::other > _params_type;
00051 std::vector< ::articulation_msgs::ParamMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::ParamMsg_<ContainerAllocator> >::other > params;
00052
00053 typedef std::vector< ::articulation_msgs::ModelMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::ModelMsg_<ContainerAllocator> >::other > _models_type;
00054 std::vector< ::articulation_msgs::ModelMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::ModelMsg_<ContainerAllocator> >::other > models;
00055
00056 typedef ::visualization_msgs::MarkerArray_<ContainerAllocator> _markers_type;
00057 ::visualization_msgs::MarkerArray_<ContainerAllocator> markers;
00058
00059
00060 ROS_DEPRECATED uint32_t get_parts_size() const { return (uint32_t)parts.size(); }
00061 ROS_DEPRECATED void set_parts_size(uint32_t size) { parts.resize((size_t)size); }
00062 ROS_DEPRECATED void get_parts_vec(std::vector< ::articulation_msgs::TrackMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::TrackMsg_<ContainerAllocator> >::other > & vec) const { vec = this->parts; }
00063 ROS_DEPRECATED void set_parts_vec(const std::vector< ::articulation_msgs::TrackMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::TrackMsg_<ContainerAllocator> >::other > & vec) { this->parts = vec; }
00064 ROS_DEPRECATED uint32_t get_params_size() const { return (uint32_t)params.size(); }
00065 ROS_DEPRECATED void set_params_size(uint32_t size) { params.resize((size_t)size); }
00066 ROS_DEPRECATED void get_params_vec(std::vector< ::articulation_msgs::ParamMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::ParamMsg_<ContainerAllocator> >::other > & vec) const { vec = this->params; }
00067 ROS_DEPRECATED void set_params_vec(const std::vector< ::articulation_msgs::ParamMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::ParamMsg_<ContainerAllocator> >::other > & vec) { this->params = vec; }
00068 ROS_DEPRECATED uint32_t get_models_size() const { return (uint32_t)models.size(); }
00069 ROS_DEPRECATED void set_models_size(uint32_t size) { models.resize((size_t)size); }
00070 ROS_DEPRECATED void get_models_vec(std::vector< ::articulation_msgs::ModelMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::ModelMsg_<ContainerAllocator> >::other > & vec) const { vec = this->models; }
00071 ROS_DEPRECATED void set_models_vec(const std::vector< ::articulation_msgs::ModelMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::ModelMsg_<ContainerAllocator> >::other > & vec) { this->models = vec; }
00072 private:
00073 static const char* __s_getDataType_() { return "articulation_msgs/ArticulatedObjectMsg"; }
00074 public:
00075 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00076
00077 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00078
00079 private:
00080 static const char* __s_getMD5Sum_() { return "37c3f54a6cb19e9fc6d71284d290d369"; }
00081 public:
00082 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00083
00084 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00085
00086 private:
00087 static const char* __s_getMessageDefinition_() { return "Header header\n\
00088 \n\
00089 articulation_msgs/TrackMsg[] parts # observed trajectories for each object part \n\
00090 articulation_msgs/ParamMsg[] params # global parameters\n\
00091 articulation_msgs/ModelMsg[] models # models, describing relationships between parts\n\
00092 visualization_msgs/MarkerArray markers # marker visualization of models/object \n\
00093 ================================================================================\n\
00094 MSG: std_msgs/Header\n\
00095 # Standard metadata for higher-level stamped data types.\n\
00096 # This is generally used to communicate timestamped data \n\
00097 # in a particular coordinate frame.\n\
00098 # \n\
00099 # sequence ID: consecutively increasing ID \n\
00100 uint32 seq\n\
00101 #Two-integer timestamp that is expressed as:\n\
00102 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00103 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00104 # time-handling sugar is provided by the client library\n\
00105 time stamp\n\
00106 #Frame this data is associated with\n\
00107 # 0: no frame\n\
00108 # 1: global frame\n\
00109 string frame_id\n\
00110 \n\
00111 ================================================================================\n\
00112 MSG: articulation_msgs/TrackMsg\n\
00113 # Single kinematic trajectory\n\
00114 #\n\
00115 # This message contains a kinematic trajectory. The trajectory is specified\n\
00116 # as a vector of 6D poses. An additional flag, track_type, indicates whether\n\
00117 # the track is valid, and whether it includes orientation. The track id\n\
00118 # can be used for automatic coloring in the RVIZ track plugin, and can be \n\
00119 # freely chosen by the client. \n\
00120 #\n\
00121 # A model is fitting only from the trajectory stored in the pose[]-vector. \n\
00122 # Additional information may be associated to each pose using the channels\n\
00123 # vector, with arbitrary # fields (e.g., to include applied/measured forces). \n\
00124 #\n\
00125 # After model evaluation,\n\
00126 # also the associated configurations of the object are stored in the channels,\n\
00127 # named \"q[0]\"..\"q[DOF-1]\", where DOF is the number of degrees of freedom.\n\
00128 # Model evaluation also projects the poses in the pose vector onto the model,\n\
00129 # and stores these ideal poses in the vector pose_projected. Further, during model\n\
00130 # evaluation, a new set of (uniform) configurations over the valid configuration\n\
00131 # range is sampled, and the result is stored in pose_resampled.\n\
00132 # The vector pose_flags contains additional display flags for the poses in the\n\
00133 # pose vector, for example, whether a pose is visible and/or\n\
00134 # the end of a trajectory segment. At the moment, this is only used by the\n\
00135 # prior_model_learner.\n\
00136 #\n\
00137 \n\
00138 Header header # Timestamp and frame\n\
00139 int32 id # used-specified track id\n\
00140 \n\
00141 geometry_msgs/Pose[] pose # sequence of poses, defining the observed trajectory\n\
00142 geometry_msgs/Pose[] pose_projected # sequence of poses, projected to the model \n\
00143 # (after model evaluation)\n\
00144 geometry_msgs/Pose[] pose_resampled # sequence of poses, re-sampled from the model in\n\
00145 # the valid configuration range\n\
00146 uint32[] pose_flags # bit-wise combination of POSE_VISIBLE and POSE_END_OF_SEGMENT\n\
00147 \n\
00148 uint32 POSE_VISIBLE=1\n\
00149 uint32 POSE_END_OF_SEGMENT=2\n\
00150 \n\
00151 # Each channel should have the same number of elements as pose array, \n\
00152 # and the data in each channel should correspond 1:1 with each pose\n\
00153 # possible channels: \"width\", \"height\", \"rgb\", ...\n\
00154 sensor_msgs/ChannelFloat32[] channels \n\
00155 \n\
00156 \n\
00157 \n\
00158 ================================================================================\n\
00159 MSG: geometry_msgs/Pose\n\
00160 # A representation of pose in free space, composed of postion and orientation. \n\
00161 Point position\n\
00162 Quaternion orientation\n\
00163 \n\
00164 ================================================================================\n\
00165 MSG: geometry_msgs/Point\n\
00166 # This contains the position of a point in free space\n\
00167 float64 x\n\
00168 float64 y\n\
00169 float64 z\n\
00170 \n\
00171 ================================================================================\n\
00172 MSG: geometry_msgs/Quaternion\n\
00173 # This represents an orientation in free space in quaternion form.\n\
00174 \n\
00175 float64 x\n\
00176 float64 y\n\
00177 float64 z\n\
00178 float64 w\n\
00179 \n\
00180 ================================================================================\n\
00181 MSG: sensor_msgs/ChannelFloat32\n\
00182 # This message is used by the PointCloud message to hold optional data\n\
00183 # associated with each point in the cloud. The length of the values\n\
00184 # array should be the same as the length of the points array in the\n\
00185 # PointCloud, and each value should be associated with the corresponding\n\
00186 # point.\n\
00187 \n\
00188 # Channel names in existing practice include:\n\
00189 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00190 # This is opposite to usual conventions but remains for\n\
00191 # historical reasons. The newer PointCloud2 message has no\n\
00192 # such problem.\n\
00193 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00194 # (R,G,B) values packed into the least significant 24 bits,\n\
00195 # in order.\n\
00196 # \"intensity\" - laser or pixel intensity.\n\
00197 # \"distance\"\n\
00198 \n\
00199 # The channel name should give semantics of the channel (e.g.\n\
00200 # \"intensity\" instead of \"value\").\n\
00201 string name\n\
00202 \n\
00203 # The values array should be 1-1 with the elements of the associated\n\
00204 # PointCloud.\n\
00205 float32[] values\n\
00206 \n\
00207 ================================================================================\n\
00208 MSG: articulation_msgs/ParamMsg\n\
00209 # Single parameter passed to or from model fitting\n\
00210 #\n\
00211 # This mechanism allows to flexibly pass parameters to \n\
00212 # model fitting (and vice versa). Note that these parameters \n\
00213 # are model-specific: A client may supply additional\n\
00214 # parameters to the model estimator, and, similarly, a estimator\n\
00215 # may add the estimated model parameters to the model message.\n\
00216 # When the model is then evaluated, for example to make predictions\n\
00217 # or to compute the likelihood, the model class can then use\n\
00218 # these parameters.\n\
00219 #\n\
00220 # A parameter has a name, a value, and a type. The type globally\n\
00221 # indicates whether it is a prior parameter (prior to model fitting),\n\
00222 # or a model parameter (found during model fitting, using a maximum-\n\
00223 # likelihood estimator), or a cached evaluation (e.g., the likelihood\n\
00224 # or the BIC are a typical \"side\"-product of model estimation, and\n\
00225 # can therefore already be cached).\n\
00226 #\n\
00227 # For a list of currently used parameters, see the documentation at\n\
00228 # http://www.ros.org/wiki/articulation_models\n\
00229 #\n\
00230 \n\
00231 uint8 PRIOR=0 # indicates a prior model parameter \n\
00232 # (e.g., \"sigma_position\")\n\
00233 uint8 PARAM=1 # indicates a estimated model parameter \n\
00234 # (e.g., \"rot_radius\", the estimated radius)\n\
00235 uint8 EVAL=2 # indicates a cached evaluation of the model, given \n\
00236 # the current trajectory\n\
00237 # (e.g., \"loglikelihood\", the log likelihood of the\n\
00238 # data, given the model and its parameters)\n\
00239 \n\
00240 string name # name of the parameter\n\
00241 float64 value # value of the parameter\n\
00242 uint8 type # type of the parameter (PRIOR, PARAM, EVAL)\n\
00243 \n\
00244 \n\
00245 ================================================================================\n\
00246 MSG: articulation_msgs/ModelMsg\n\
00247 # Single kinematic model\n\
00248 #\n\
00249 # A kinematic model is defined by its model class name, and a set of parameters. \n\
00250 # The client may additionally specify a model id, that can be used to colorize the\n\
00251 # model when visualized using the RVIZ model display.\n\
00252 # \n\
00253 # For a list of currently implemented models, see the documetation at\n\
00254 # http://www.ros.org/wiki/articulation_models\n\
00255 #\n\
00256 #\n\
00257 \n\
00258 Header header # frame and timestamp\n\
00259 \n\
00260 int32 id # user specified model id\n\
00261 string name # name of the model family (e.g. \"rotational\",\n\
00262 # \"prismatic\", \"pca-gp\", \"rigid\")\n\
00263 articulation_msgs/ParamMsg[] params # model parameters\n\
00264 articulation_msgs/TrackMsg track # trajectory from which the model is estimated, or\n\
00265 # that is evaluated using the model\n\
00266 \n\
00267 ================================================================================\n\
00268 MSG: visualization_msgs/MarkerArray\n\
00269 Marker[] markers\n\
00270 \n\
00271 ================================================================================\n\
00272 MSG: visualization_msgs/Marker\n\
00273 # See http://www.ros.org/wiki/rviz/DisplayTypes/Marker and http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes for more information on using this message with rviz\n\
00274 \n\
00275 byte ARROW=0\n\
00276 byte CUBE=1\n\
00277 byte SPHERE=2\n\
00278 byte CYLINDER=3\n\
00279 byte LINE_STRIP=4\n\
00280 byte LINE_LIST=5\n\
00281 byte CUBE_LIST=6\n\
00282 byte SPHERE_LIST=7\n\
00283 byte POINTS=8\n\
00284 byte TEXT_VIEW_FACING=9\n\
00285 byte MESH_RESOURCE=10\n\
00286 byte TRIANGLE_LIST=11\n\
00287 \n\
00288 byte ADD=0\n\
00289 byte MODIFY=0\n\
00290 byte DELETE=2\n\
00291 \n\
00292 Header header # header for time/frame information\n\
00293 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
00294 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
00295 int32 type # Type of object\n\
00296 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object\n\
00297 geometry_msgs/Pose pose # Pose of the object\n\
00298 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
00299 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
00300 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
00301 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
00302 \n\
00303 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
00304 geometry_msgs/Point[] points\n\
00305 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
00306 #number of colors must either be 0 or equal to the number of points\n\
00307 #NOTE: alpha is not yet used\n\
00308 std_msgs/ColorRGBA[] colors\n\
00309 \n\
00310 # NOTE: only used for text markers\n\
00311 string text\n\
00312 \n\
00313 # NOTE: only used for MESH_RESOURCE markers\n\
00314 string mesh_resource\n\
00315 bool mesh_use_embedded_materials\n\
00316 \n\
00317 ================================================================================\n\
00318 MSG: geometry_msgs/Vector3\n\
00319 # This represents a vector in free space. \n\
00320 \n\
00321 float64 x\n\
00322 float64 y\n\
00323 float64 z\n\
00324 ================================================================================\n\
00325 MSG: std_msgs/ColorRGBA\n\
00326 float32 r\n\
00327 float32 g\n\
00328 float32 b\n\
00329 float32 a\n\
00330 \n\
00331 "; }
00332 public:
00333 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00334
00335 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00336
00337 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00338 {
00339 ros::serialization::OStream stream(write_ptr, 1000000000);
00340 ros::serialization::serialize(stream, header);
00341 ros::serialization::serialize(stream, parts);
00342 ros::serialization::serialize(stream, params);
00343 ros::serialization::serialize(stream, models);
00344 ros::serialization::serialize(stream, markers);
00345 return stream.getData();
00346 }
00347
00348 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00349 {
00350 ros::serialization::IStream stream(read_ptr, 1000000000);
00351 ros::serialization::deserialize(stream, header);
00352 ros::serialization::deserialize(stream, parts);
00353 ros::serialization::deserialize(stream, params);
00354 ros::serialization::deserialize(stream, models);
00355 ros::serialization::deserialize(stream, markers);
00356 return stream.getData();
00357 }
00358
00359 ROS_DEPRECATED virtual uint32_t serializationLength() const
00360 {
00361 uint32_t size = 0;
00362 size += ros::serialization::serializationLength(header);
00363 size += ros::serialization::serializationLength(parts);
00364 size += ros::serialization::serializationLength(params);
00365 size += ros::serialization::serializationLength(models);
00366 size += ros::serialization::serializationLength(markers);
00367 return size;
00368 }
00369
00370 typedef boost::shared_ptr< ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> > Ptr;
00371 typedef boost::shared_ptr< ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> const> ConstPtr;
00372 };
00373 typedef ::articulation_msgs::ArticulatedObjectMsg_<std::allocator<void> > ArticulatedObjectMsg;
00374
00375 typedef boost::shared_ptr< ::articulation_msgs::ArticulatedObjectMsg> ArticulatedObjectMsgPtr;
00376 typedef boost::shared_ptr< ::articulation_msgs::ArticulatedObjectMsg const> ArticulatedObjectMsgConstPtr;
00377
00378
00379 template<typename ContainerAllocator>
00380 std::ostream& operator<<(std::ostream& s, const ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> & v)
00381 {
00382 ros::message_operations::Printer< ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> >::stream(s, "", v);
00383 return s;}
00384
00385 }
00386
00387 namespace ros
00388 {
00389 namespace message_traits
00390 {
00391 template<class ContainerAllocator>
00392 struct MD5Sum< ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> > {
00393 static const char* value()
00394 {
00395 return "37c3f54a6cb19e9fc6d71284d290d369";
00396 }
00397
00398 static const char* value(const ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> &) { return value(); }
00399 static const uint64_t static_value1 = 0x37c3f54a6cb19e9fULL;
00400 static const uint64_t static_value2 = 0xc6d71284d290d369ULL;
00401 };
00402
00403 template<class ContainerAllocator>
00404 struct DataType< ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> > {
00405 static const char* value()
00406 {
00407 return "articulation_msgs/ArticulatedObjectMsg";
00408 }
00409
00410 static const char* value(const ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> &) { return value(); }
00411 };
00412
00413 template<class ContainerAllocator>
00414 struct Definition< ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> > {
00415 static const char* value()
00416 {
00417 return "Header header\n\
00418 \n\
00419 articulation_msgs/TrackMsg[] parts # observed trajectories for each object part \n\
00420 articulation_msgs/ParamMsg[] params # global parameters\n\
00421 articulation_msgs/ModelMsg[] models # models, describing relationships between parts\n\
00422 visualization_msgs/MarkerArray markers # marker visualization of models/object \n\
00423 ================================================================================\n\
00424 MSG: std_msgs/Header\n\
00425 # Standard metadata for higher-level stamped data types.\n\
00426 # This is generally used to communicate timestamped data \n\
00427 # in a particular coordinate frame.\n\
00428 # \n\
00429 # sequence ID: consecutively increasing ID \n\
00430 uint32 seq\n\
00431 #Two-integer timestamp that is expressed as:\n\
00432 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00433 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00434 # time-handling sugar is provided by the client library\n\
00435 time stamp\n\
00436 #Frame this data is associated with\n\
00437 # 0: no frame\n\
00438 # 1: global frame\n\
00439 string frame_id\n\
00440 \n\
00441 ================================================================================\n\
00442 MSG: articulation_msgs/TrackMsg\n\
00443 # Single kinematic trajectory\n\
00444 #\n\
00445 # This message contains a kinematic trajectory. The trajectory is specified\n\
00446 # as a vector of 6D poses. An additional flag, track_type, indicates whether\n\
00447 # the track is valid, and whether it includes orientation. The track id\n\
00448 # can be used for automatic coloring in the RVIZ track plugin, and can be \n\
00449 # freely chosen by the client. \n\
00450 #\n\
00451 # A model is fitting only from the trajectory stored in the pose[]-vector. \n\
00452 # Additional information may be associated to each pose using the channels\n\
00453 # vector, with arbitrary # fields (e.g., to include applied/measured forces). \n\
00454 #\n\
00455 # After model evaluation,\n\
00456 # also the associated configurations of the object are stored in the channels,\n\
00457 # named \"q[0]\"..\"q[DOF-1]\", where DOF is the number of degrees of freedom.\n\
00458 # Model evaluation also projects the poses in the pose vector onto the model,\n\
00459 # and stores these ideal poses in the vector pose_projected. Further, during model\n\
00460 # evaluation, a new set of (uniform) configurations over the valid configuration\n\
00461 # range is sampled, and the result is stored in pose_resampled.\n\
00462 # The vector pose_flags contains additional display flags for the poses in the\n\
00463 # pose vector, for example, whether a pose is visible and/or\n\
00464 # the end of a trajectory segment. At the moment, this is only used by the\n\
00465 # prior_model_learner.\n\
00466 #\n\
00467 \n\
00468 Header header # Timestamp and frame\n\
00469 int32 id # used-specified track id\n\
00470 \n\
00471 geometry_msgs/Pose[] pose # sequence of poses, defining the observed trajectory\n\
00472 geometry_msgs/Pose[] pose_projected # sequence of poses, projected to the model \n\
00473 # (after model evaluation)\n\
00474 geometry_msgs/Pose[] pose_resampled # sequence of poses, re-sampled from the model in\n\
00475 # the valid configuration range\n\
00476 uint32[] pose_flags # bit-wise combination of POSE_VISIBLE and POSE_END_OF_SEGMENT\n\
00477 \n\
00478 uint32 POSE_VISIBLE=1\n\
00479 uint32 POSE_END_OF_SEGMENT=2\n\
00480 \n\
00481 # Each channel should have the same number of elements as pose array, \n\
00482 # and the data in each channel should correspond 1:1 with each pose\n\
00483 # possible channels: \"width\", \"height\", \"rgb\", ...\n\
00484 sensor_msgs/ChannelFloat32[] channels \n\
00485 \n\
00486 \n\
00487 \n\
00488 ================================================================================\n\
00489 MSG: geometry_msgs/Pose\n\
00490 # A representation of pose in free space, composed of postion and orientation. \n\
00491 Point position\n\
00492 Quaternion orientation\n\
00493 \n\
00494 ================================================================================\n\
00495 MSG: geometry_msgs/Point\n\
00496 # This contains the position of a point in free space\n\
00497 float64 x\n\
00498 float64 y\n\
00499 float64 z\n\
00500 \n\
00501 ================================================================================\n\
00502 MSG: geometry_msgs/Quaternion\n\
00503 # This represents an orientation in free space in quaternion form.\n\
00504 \n\
00505 float64 x\n\
00506 float64 y\n\
00507 float64 z\n\
00508 float64 w\n\
00509 \n\
00510 ================================================================================\n\
00511 MSG: sensor_msgs/ChannelFloat32\n\
00512 # This message is used by the PointCloud message to hold optional data\n\
00513 # associated with each point in the cloud. The length of the values\n\
00514 # array should be the same as the length of the points array in the\n\
00515 # PointCloud, and each value should be associated with the corresponding\n\
00516 # point.\n\
00517 \n\
00518 # Channel names in existing practice include:\n\
00519 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00520 # This is opposite to usual conventions but remains for\n\
00521 # historical reasons. The newer PointCloud2 message has no\n\
00522 # such problem.\n\
00523 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00524 # (R,G,B) values packed into the least significant 24 bits,\n\
00525 # in order.\n\
00526 # \"intensity\" - laser or pixel intensity.\n\
00527 # \"distance\"\n\
00528 \n\
00529 # The channel name should give semantics of the channel (e.g.\n\
00530 # \"intensity\" instead of \"value\").\n\
00531 string name\n\
00532 \n\
00533 # The values array should be 1-1 with the elements of the associated\n\
00534 # PointCloud.\n\
00535 float32[] values\n\
00536 \n\
00537 ================================================================================\n\
00538 MSG: articulation_msgs/ParamMsg\n\
00539 # Single parameter passed to or from model fitting\n\
00540 #\n\
00541 # This mechanism allows to flexibly pass parameters to \n\
00542 # model fitting (and vice versa). Note that these parameters \n\
00543 # are model-specific: A client may supply additional\n\
00544 # parameters to the model estimator, and, similarly, a estimator\n\
00545 # may add the estimated model parameters to the model message.\n\
00546 # When the model is then evaluated, for example to make predictions\n\
00547 # or to compute the likelihood, the model class can then use\n\
00548 # these parameters.\n\
00549 #\n\
00550 # A parameter has a name, a value, and a type. The type globally\n\
00551 # indicates whether it is a prior parameter (prior to model fitting),\n\
00552 # or a model parameter (found during model fitting, using a maximum-\n\
00553 # likelihood estimator), or a cached evaluation (e.g., the likelihood\n\
00554 # or the BIC are a typical \"side\"-product of model estimation, and\n\
00555 # can therefore already be cached).\n\
00556 #\n\
00557 # For a list of currently used parameters, see the documentation at\n\
00558 # http://www.ros.org/wiki/articulation_models\n\
00559 #\n\
00560 \n\
00561 uint8 PRIOR=0 # indicates a prior model parameter \n\
00562 # (e.g., \"sigma_position\")\n\
00563 uint8 PARAM=1 # indicates a estimated model parameter \n\
00564 # (e.g., \"rot_radius\", the estimated radius)\n\
00565 uint8 EVAL=2 # indicates a cached evaluation of the model, given \n\
00566 # the current trajectory\n\
00567 # (e.g., \"loglikelihood\", the log likelihood of the\n\
00568 # data, given the model and its parameters)\n\
00569 \n\
00570 string name # name of the parameter\n\
00571 float64 value # value of the parameter\n\
00572 uint8 type # type of the parameter (PRIOR, PARAM, EVAL)\n\
00573 \n\
00574 \n\
00575 ================================================================================\n\
00576 MSG: articulation_msgs/ModelMsg\n\
00577 # Single kinematic model\n\
00578 #\n\
00579 # A kinematic model is defined by its model class name, and a set of parameters. \n\
00580 # The client may additionally specify a model id, that can be used to colorize the\n\
00581 # model when visualized using the RVIZ model display.\n\
00582 # \n\
00583 # For a list of currently implemented models, see the documetation at\n\
00584 # http://www.ros.org/wiki/articulation_models\n\
00585 #\n\
00586 #\n\
00587 \n\
00588 Header header # frame and timestamp\n\
00589 \n\
00590 int32 id # user specified model id\n\
00591 string name # name of the model family (e.g. \"rotational\",\n\
00592 # \"prismatic\", \"pca-gp\", \"rigid\")\n\
00593 articulation_msgs/ParamMsg[] params # model parameters\n\
00594 articulation_msgs/TrackMsg track # trajectory from which the model is estimated, or\n\
00595 # that is evaluated using the model\n\
00596 \n\
00597 ================================================================================\n\
00598 MSG: visualization_msgs/MarkerArray\n\
00599 Marker[] markers\n\
00600 \n\
00601 ================================================================================\n\
00602 MSG: visualization_msgs/Marker\n\
00603 # See http://www.ros.org/wiki/rviz/DisplayTypes/Marker and http://www.ros.org/wiki/rviz/Tutorials/Markers%3A%20Basic%20Shapes for more information on using this message with rviz\n\
00604 \n\
00605 byte ARROW=0\n\
00606 byte CUBE=1\n\
00607 byte SPHERE=2\n\
00608 byte CYLINDER=3\n\
00609 byte LINE_STRIP=4\n\
00610 byte LINE_LIST=5\n\
00611 byte CUBE_LIST=6\n\
00612 byte SPHERE_LIST=7\n\
00613 byte POINTS=8\n\
00614 byte TEXT_VIEW_FACING=9\n\
00615 byte MESH_RESOURCE=10\n\
00616 byte TRIANGLE_LIST=11\n\
00617 \n\
00618 byte ADD=0\n\
00619 byte MODIFY=0\n\
00620 byte DELETE=2\n\
00621 \n\
00622 Header header # header for time/frame information\n\
00623 string ns # Namespace to place this object in... used in conjunction with id to create a unique name for the object\n\
00624 int32 id # object ID useful in conjunction with the namespace for manipulating and deleting the object later\n\
00625 int32 type # Type of object\n\
00626 int32 action # 0 add/modify an object, 1 (deprecated), 2 deletes an object\n\
00627 geometry_msgs/Pose pose # Pose of the object\n\
00628 geometry_msgs/Vector3 scale # Scale of the object 1,1,1 means default (usually 1 meter square)\n\
00629 std_msgs/ColorRGBA color # Color [0.0-1.0]\n\
00630 duration lifetime # How long the object should last before being automatically deleted. 0 means forever\n\
00631 bool frame_locked # If this marker should be frame-locked, i.e. retransformed into its frame every timestep\n\
00632 \n\
00633 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
00634 geometry_msgs/Point[] points\n\
00635 #Only used if the type specified has some use for them (eg. POINTS, LINE_STRIP, ...)\n\
00636 #number of colors must either be 0 or equal to the number of points\n\
00637 #NOTE: alpha is not yet used\n\
00638 std_msgs/ColorRGBA[] colors\n\
00639 \n\
00640 # NOTE: only used for text markers\n\
00641 string text\n\
00642 \n\
00643 # NOTE: only used for MESH_RESOURCE markers\n\
00644 string mesh_resource\n\
00645 bool mesh_use_embedded_materials\n\
00646 \n\
00647 ================================================================================\n\
00648 MSG: geometry_msgs/Vector3\n\
00649 # This represents a vector in free space. \n\
00650 \n\
00651 float64 x\n\
00652 float64 y\n\
00653 float64 z\n\
00654 ================================================================================\n\
00655 MSG: std_msgs/ColorRGBA\n\
00656 float32 r\n\
00657 float32 g\n\
00658 float32 b\n\
00659 float32 a\n\
00660 \n\
00661 ";
00662 }
00663
00664 static const char* value(const ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> &) { return value(); }
00665 };
00666
00667 template<class ContainerAllocator> struct HasHeader< ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> > : public TrueType {};
00668 template<class ContainerAllocator> struct HasHeader< const ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> > : public TrueType {};
00669 }
00670 }
00671
00672 namespace ros
00673 {
00674 namespace serialization
00675 {
00676
00677 template<class ContainerAllocator> struct Serializer< ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> >
00678 {
00679 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00680 {
00681 stream.next(m.header);
00682 stream.next(m.parts);
00683 stream.next(m.params);
00684 stream.next(m.models);
00685 stream.next(m.markers);
00686 }
00687
00688 ROS_DECLARE_ALLINONE_SERIALIZER;
00689 };
00690 }
00691 }
00692
00693 namespace ros
00694 {
00695 namespace message_operations
00696 {
00697
00698 template<class ContainerAllocator>
00699 struct Printer< ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> >
00700 {
00701 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::articulation_msgs::ArticulatedObjectMsg_<ContainerAllocator> & v)
00702 {
00703 s << indent << "header: ";
00704 s << std::endl;
00705 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00706 s << indent << "parts[]" << std::endl;
00707 for (size_t i = 0; i < v.parts.size(); ++i)
00708 {
00709 s << indent << " parts[" << i << "]: ";
00710 s << std::endl;
00711 s << indent;
00712 Printer< ::articulation_msgs::TrackMsg_<ContainerAllocator> >::stream(s, indent + " ", v.parts[i]);
00713 }
00714 s << indent << "params[]" << std::endl;
00715 for (size_t i = 0; i < v.params.size(); ++i)
00716 {
00717 s << indent << " params[" << i << "]: ";
00718 s << std::endl;
00719 s << indent;
00720 Printer< ::articulation_msgs::ParamMsg_<ContainerAllocator> >::stream(s, indent + " ", v.params[i]);
00721 }
00722 s << indent << "models[]" << std::endl;
00723 for (size_t i = 0; i < v.models.size(); ++i)
00724 {
00725 s << indent << " models[" << i << "]: ";
00726 s << std::endl;
00727 s << indent;
00728 Printer< ::articulation_msgs::ModelMsg_<ContainerAllocator> >::stream(s, indent + " ", v.models[i]);
00729 }
00730 s << indent << "markers: ";
00731 s << std::endl;
00732 Printer< ::visualization_msgs::MarkerArray_<ContainerAllocator> >::stream(s, indent + " ", v.markers);
00733 }
00734 };
00735
00736
00737 }
00738 }
00739
00740 #endif // ARTICULATION_MSGS_MESSAGE_ARTICULATEDOBJECTMSG_H
00741