00001
00002 #ifndef ARTICULATION_MSGS_MESSAGE_MODELMSG_H
00003 #define ARTICULATION_MSGS_MESSAGE_MODELMSG_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/ParamMsg.h"
00015 #include "articulation_msgs/TrackMsg.h"
00016
00017 namespace articulation_msgs
00018 {
00019 template <class ContainerAllocator>
00020 struct ModelMsg_ : public ros::Message
00021 {
00022 typedef ModelMsg_<ContainerAllocator> Type;
00023
00024 ModelMsg_()
00025 : header()
00026 , id(0)
00027 , name()
00028 , params()
00029 , track()
00030 {
00031 }
00032
00033 ModelMsg_(const ContainerAllocator& _alloc)
00034 : header(_alloc)
00035 , id(0)
00036 , name(_alloc)
00037 , params(_alloc)
00038 , track(_alloc)
00039 {
00040 }
00041
00042 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00043 ::std_msgs::Header_<ContainerAllocator> header;
00044
00045 typedef int32_t _id_type;
00046 int32_t id;
00047
00048 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _name_type;
00049 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > name;
00050
00051 typedef std::vector< ::articulation_msgs::ParamMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::ParamMsg_<ContainerAllocator> >::other > _params_type;
00052 std::vector< ::articulation_msgs::ParamMsg_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::articulation_msgs::ParamMsg_<ContainerAllocator> >::other > params;
00053
00054 typedef ::articulation_msgs::TrackMsg_<ContainerAllocator> _track_type;
00055 ::articulation_msgs::TrackMsg_<ContainerAllocator> track;
00056
00057
00058 ROS_DEPRECATED uint32_t get_params_size() const { return (uint32_t)params.size(); }
00059 ROS_DEPRECATED void set_params_size(uint32_t size) { params.resize((size_t)size); }
00060 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; }
00061 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; }
00062 private:
00063 static const char* __s_getDataType_() { return "articulation_msgs/ModelMsg"; }
00064 public:
00065 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00066
00067 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00068
00069 private:
00070 static const char* __s_getMD5Sum_() { return "f668954d4ad5a57c58d0dab97e12a6f4"; }
00071 public:
00072 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00073
00074 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00075
00076 private:
00077 static const char* __s_getMessageDefinition_() { return "# Single kinematic model\n\
00078 #\n\
00079 # A kinematic model is defined by its model class name, and a set of parameters. \n\
00080 # The client may additionally specify a model id, that can be used to colorize the\n\
00081 # model when visualized using the RVIZ model display.\n\
00082 # \n\
00083 # For a list of currently implemented models, see the documetation at\n\
00084 # http://www.ros.org/wiki/articulation_models\n\
00085 #\n\
00086 #\n\
00087 \n\
00088 Header header # frame and timestamp\n\
00089 \n\
00090 int32 id # user specified model id\n\
00091 string name # name of the model family (e.g. \"rotational\",\n\
00092 # \"prismatic\", \"pca-gp\", \"rigid\")\n\
00093 articulation_msgs/ParamMsg[] params # model parameters\n\
00094 articulation_msgs/TrackMsg track # trajectory from which the model is estimated, or\n\
00095 # that is evaluated using the model\n\
00096 \n\
00097 ================================================================================\n\
00098 MSG: std_msgs/Header\n\
00099 # Standard metadata for higher-level stamped data types.\n\
00100 # This is generally used to communicate timestamped data \n\
00101 # in a particular coordinate frame.\n\
00102 # \n\
00103 # sequence ID: consecutively increasing ID \n\
00104 uint32 seq\n\
00105 #Two-integer timestamp that is expressed as:\n\
00106 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00107 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00108 # time-handling sugar is provided by the client library\n\
00109 time stamp\n\
00110 #Frame this data is associated with\n\
00111 # 0: no frame\n\
00112 # 1: global frame\n\
00113 string frame_id\n\
00114 \n\
00115 ================================================================================\n\
00116 MSG: articulation_msgs/ParamMsg\n\
00117 # Single parameter passed to or from model fitting\n\
00118 #\n\
00119 # This mechanism allows to flexibly pass parameters to \n\
00120 # model fitting (and vice versa). Note that these parameters \n\
00121 # are model-specific: A client may supply additional\n\
00122 # parameters to the model estimator, and, similarly, a estimator\n\
00123 # may add the estimated model parameters to the model message.\n\
00124 # When the model is then evaluated, for example to make predictions\n\
00125 # or to compute the likelihood, the model class can then use\n\
00126 # these parameters.\n\
00127 #\n\
00128 # A parameter has a name, a value, and a type. The type globally\n\
00129 # indicates whether it is a prior parameter (prior to model fitting),\n\
00130 # or a model parameter (found during model fitting, using a maximum-\n\
00131 # likelihood estimator), or a cached evaluation (e.g., the likelihood\n\
00132 # or the BIC are a typical \"side\"-product of model estimation, and\n\
00133 # can therefore already be cached).\n\
00134 #\n\
00135 # For a list of currently used parameters, see the documentation at\n\
00136 # http://www.ros.org/wiki/articulation_models\n\
00137 #\n\
00138 \n\
00139 uint8 PRIOR=0 # indicates a prior model parameter \n\
00140 # (e.g., \"sigma_position\")\n\
00141 uint8 PARAM=1 # indicates a estimated model parameter \n\
00142 # (e.g., \"rot_radius\", the estimated radius)\n\
00143 uint8 EVAL=2 # indicates a cached evaluation of the model, given \n\
00144 # the current trajectory\n\
00145 # (e.g., \"loglikelihood\", the log likelihood of the\n\
00146 # data, given the model and its parameters)\n\
00147 \n\
00148 string name # name of the parameter\n\
00149 float64 value # value of the parameter\n\
00150 uint8 type # type of the parameter (PRIOR, PARAM, EVAL)\n\
00151 \n\
00152 \n\
00153 ================================================================================\n\
00154 MSG: articulation_msgs/TrackMsg\n\
00155 # Single kinematic trajectory\n\
00156 #\n\
00157 # This message contains a kinematic trajectory. The trajectory is specified\n\
00158 # as a vector of 6D poses. An additional flag, track_type, indicates whether\n\
00159 # the track is valid, and whether it includes orientation. The track id\n\
00160 # can be used for automatic coloring in the RVIZ track plugin, and can be \n\
00161 # freely chosen by the client. \n\
00162 #\n\
00163 # A model is fitting only from the trajectory stored in the pose[]-vector. \n\
00164 # Additional information may be associated to each pose using the channels\n\
00165 # vector, with arbitrary # fields (e.g., to include applied/measured forces). \n\
00166 #\n\
00167 # After model evaluation,\n\
00168 # also the associated configurations of the object are stored in the channels,\n\
00169 # named \"q[0]\"..\"q[DOF-1]\", where DOF is the number of degrees of freedom.\n\
00170 # Model evaluation also projects the poses in the pose vector onto the model,\n\
00171 # and stores these ideal poses in the vector pose_projected. Further, during model\n\
00172 # evaluation, a new set of (uniform) configurations over the valid configuration\n\
00173 # range is sampled, and the result is stored in pose_resampled.\n\
00174 # The vector pose_flags contains additional display flags for the poses in the\n\
00175 # pose vector, for example, whether a pose is visible and/or\n\
00176 # the end of a trajectory segment. At the moment, this is only used by the\n\
00177 # prior_model_learner.\n\
00178 #\n\
00179 \n\
00180 Header header # Timestamp and frame\n\
00181 int32 id # used-specified track id\n\
00182 \n\
00183 geometry_msgs/Pose[] pose # sequence of poses, defining the observed trajectory\n\
00184 geometry_msgs/Pose[] pose_projected # sequence of poses, projected to the model \n\
00185 # (after model evaluation)\n\
00186 geometry_msgs/Pose[] pose_resampled # sequence of poses, re-sampled from the model in\n\
00187 # the valid configuration range\n\
00188 uint32[] pose_flags # bit-wise combination of POSE_VISIBLE and POSE_END_OF_SEGMENT\n\
00189 \n\
00190 uint32 POSE_VISIBLE=1\n\
00191 uint32 POSE_END_OF_SEGMENT=2\n\
00192 \n\
00193 # Each channel should have the same number of elements as pose array, \n\
00194 # and the data in each channel should correspond 1:1 with each pose\n\
00195 # possible channels: \"width\", \"height\", \"rgb\", ...\n\
00196 sensor_msgs/ChannelFloat32[] channels \n\
00197 \n\
00198 \n\
00199 \n\
00200 ================================================================================\n\
00201 MSG: geometry_msgs/Pose\n\
00202 # A representation of pose in free space, composed of postion and orientation. \n\
00203 Point position\n\
00204 Quaternion orientation\n\
00205 \n\
00206 ================================================================================\n\
00207 MSG: geometry_msgs/Point\n\
00208 # This contains the position of a point in free space\n\
00209 float64 x\n\
00210 float64 y\n\
00211 float64 z\n\
00212 \n\
00213 ================================================================================\n\
00214 MSG: geometry_msgs/Quaternion\n\
00215 # This represents an orientation in free space in quaternion form.\n\
00216 \n\
00217 float64 x\n\
00218 float64 y\n\
00219 float64 z\n\
00220 float64 w\n\
00221 \n\
00222 ================================================================================\n\
00223 MSG: sensor_msgs/ChannelFloat32\n\
00224 # This message is used by the PointCloud message to hold optional data\n\
00225 # associated with each point in the cloud. The length of the values\n\
00226 # array should be the same as the length of the points array in the\n\
00227 # PointCloud, and each value should be associated with the corresponding\n\
00228 # point.\n\
00229 \n\
00230 # Channel names in existing practice include:\n\
00231 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00232 # This is opposite to usual conventions but remains for\n\
00233 # historical reasons. The newer PointCloud2 message has no\n\
00234 # such problem.\n\
00235 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00236 # (R,G,B) values packed into the least significant 24 bits,\n\
00237 # in order.\n\
00238 # \"intensity\" - laser or pixel intensity.\n\
00239 # \"distance\"\n\
00240 \n\
00241 # The channel name should give semantics of the channel (e.g.\n\
00242 # \"intensity\" instead of \"value\").\n\
00243 string name\n\
00244 \n\
00245 # The values array should be 1-1 with the elements of the associated\n\
00246 # PointCloud.\n\
00247 float32[] values\n\
00248 \n\
00249 "; }
00250 public:
00251 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00252
00253 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00254
00255 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00256 {
00257 ros::serialization::OStream stream(write_ptr, 1000000000);
00258 ros::serialization::serialize(stream, header);
00259 ros::serialization::serialize(stream, id);
00260 ros::serialization::serialize(stream, name);
00261 ros::serialization::serialize(stream, params);
00262 ros::serialization::serialize(stream, track);
00263 return stream.getData();
00264 }
00265
00266 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00267 {
00268 ros::serialization::IStream stream(read_ptr, 1000000000);
00269 ros::serialization::deserialize(stream, header);
00270 ros::serialization::deserialize(stream, id);
00271 ros::serialization::deserialize(stream, name);
00272 ros::serialization::deserialize(stream, params);
00273 ros::serialization::deserialize(stream, track);
00274 return stream.getData();
00275 }
00276
00277 ROS_DEPRECATED virtual uint32_t serializationLength() const
00278 {
00279 uint32_t size = 0;
00280 size += ros::serialization::serializationLength(header);
00281 size += ros::serialization::serializationLength(id);
00282 size += ros::serialization::serializationLength(name);
00283 size += ros::serialization::serializationLength(params);
00284 size += ros::serialization::serializationLength(track);
00285 return size;
00286 }
00287
00288 typedef boost::shared_ptr< ::articulation_msgs::ModelMsg_<ContainerAllocator> > Ptr;
00289 typedef boost::shared_ptr< ::articulation_msgs::ModelMsg_<ContainerAllocator> const> ConstPtr;
00290 };
00291 typedef ::articulation_msgs::ModelMsg_<std::allocator<void> > ModelMsg;
00292
00293 typedef boost::shared_ptr< ::articulation_msgs::ModelMsg> ModelMsgPtr;
00294 typedef boost::shared_ptr< ::articulation_msgs::ModelMsg const> ModelMsgConstPtr;
00295
00296
00297 template<typename ContainerAllocator>
00298 std::ostream& operator<<(std::ostream& s, const ::articulation_msgs::ModelMsg_<ContainerAllocator> & v)
00299 {
00300 ros::message_operations::Printer< ::articulation_msgs::ModelMsg_<ContainerAllocator> >::stream(s, "", v);
00301 return s;}
00302
00303 }
00304
00305 namespace ros
00306 {
00307 namespace message_traits
00308 {
00309 template<class ContainerAllocator>
00310 struct MD5Sum< ::articulation_msgs::ModelMsg_<ContainerAllocator> > {
00311 static const char* value()
00312 {
00313 return "f668954d4ad5a57c58d0dab97e12a6f4";
00314 }
00315
00316 static const char* value(const ::articulation_msgs::ModelMsg_<ContainerAllocator> &) { return value(); }
00317 static const uint64_t static_value1 = 0xf668954d4ad5a57cULL;
00318 static const uint64_t static_value2 = 0x58d0dab97e12a6f4ULL;
00319 };
00320
00321 template<class ContainerAllocator>
00322 struct DataType< ::articulation_msgs::ModelMsg_<ContainerAllocator> > {
00323 static const char* value()
00324 {
00325 return "articulation_msgs/ModelMsg";
00326 }
00327
00328 static const char* value(const ::articulation_msgs::ModelMsg_<ContainerAllocator> &) { return value(); }
00329 };
00330
00331 template<class ContainerAllocator>
00332 struct Definition< ::articulation_msgs::ModelMsg_<ContainerAllocator> > {
00333 static const char* value()
00334 {
00335 return "# Single kinematic model\n\
00336 #\n\
00337 # A kinematic model is defined by its model class name, and a set of parameters. \n\
00338 # The client may additionally specify a model id, that can be used to colorize the\n\
00339 # model when visualized using the RVIZ model display.\n\
00340 # \n\
00341 # For a list of currently implemented models, see the documetation at\n\
00342 # http://www.ros.org/wiki/articulation_models\n\
00343 #\n\
00344 #\n\
00345 \n\
00346 Header header # frame and timestamp\n\
00347 \n\
00348 int32 id # user specified model id\n\
00349 string name # name of the model family (e.g. \"rotational\",\n\
00350 # \"prismatic\", \"pca-gp\", \"rigid\")\n\
00351 articulation_msgs/ParamMsg[] params # model parameters\n\
00352 articulation_msgs/TrackMsg track # trajectory from which the model is estimated, or\n\
00353 # that is evaluated using the model\n\
00354 \n\
00355 ================================================================================\n\
00356 MSG: std_msgs/Header\n\
00357 # Standard metadata for higher-level stamped data types.\n\
00358 # This is generally used to communicate timestamped data \n\
00359 # in a particular coordinate frame.\n\
00360 # \n\
00361 # sequence ID: consecutively increasing ID \n\
00362 uint32 seq\n\
00363 #Two-integer timestamp that is expressed as:\n\
00364 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00365 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00366 # time-handling sugar is provided by the client library\n\
00367 time stamp\n\
00368 #Frame this data is associated with\n\
00369 # 0: no frame\n\
00370 # 1: global frame\n\
00371 string frame_id\n\
00372 \n\
00373 ================================================================================\n\
00374 MSG: articulation_msgs/ParamMsg\n\
00375 # Single parameter passed to or from model fitting\n\
00376 #\n\
00377 # This mechanism allows to flexibly pass parameters to \n\
00378 # model fitting (and vice versa). Note that these parameters \n\
00379 # are model-specific: A client may supply additional\n\
00380 # parameters to the model estimator, and, similarly, a estimator\n\
00381 # may add the estimated model parameters to the model message.\n\
00382 # When the model is then evaluated, for example to make predictions\n\
00383 # or to compute the likelihood, the model class can then use\n\
00384 # these parameters.\n\
00385 #\n\
00386 # A parameter has a name, a value, and a type. The type globally\n\
00387 # indicates whether it is a prior parameter (prior to model fitting),\n\
00388 # or a model parameter (found during model fitting, using a maximum-\n\
00389 # likelihood estimator), or a cached evaluation (e.g., the likelihood\n\
00390 # or the BIC are a typical \"side\"-product of model estimation, and\n\
00391 # can therefore already be cached).\n\
00392 #\n\
00393 # For a list of currently used parameters, see the documentation at\n\
00394 # http://www.ros.org/wiki/articulation_models\n\
00395 #\n\
00396 \n\
00397 uint8 PRIOR=0 # indicates a prior model parameter \n\
00398 # (e.g., \"sigma_position\")\n\
00399 uint8 PARAM=1 # indicates a estimated model parameter \n\
00400 # (e.g., \"rot_radius\", the estimated radius)\n\
00401 uint8 EVAL=2 # indicates a cached evaluation of the model, given \n\
00402 # the current trajectory\n\
00403 # (e.g., \"loglikelihood\", the log likelihood of the\n\
00404 # data, given the model and its parameters)\n\
00405 \n\
00406 string name # name of the parameter\n\
00407 float64 value # value of the parameter\n\
00408 uint8 type # type of the parameter (PRIOR, PARAM, EVAL)\n\
00409 \n\
00410 \n\
00411 ================================================================================\n\
00412 MSG: articulation_msgs/TrackMsg\n\
00413 # Single kinematic trajectory\n\
00414 #\n\
00415 # This message contains a kinematic trajectory. The trajectory is specified\n\
00416 # as a vector of 6D poses. An additional flag, track_type, indicates whether\n\
00417 # the track is valid, and whether it includes orientation. The track id\n\
00418 # can be used for automatic coloring in the RVIZ track plugin, and can be \n\
00419 # freely chosen by the client. \n\
00420 #\n\
00421 # A model is fitting only from the trajectory stored in the pose[]-vector. \n\
00422 # Additional information may be associated to each pose using the channels\n\
00423 # vector, with arbitrary # fields (e.g., to include applied/measured forces). \n\
00424 #\n\
00425 # After model evaluation,\n\
00426 # also the associated configurations of the object are stored in the channels,\n\
00427 # named \"q[0]\"..\"q[DOF-1]\", where DOF is the number of degrees of freedom.\n\
00428 # Model evaluation also projects the poses in the pose vector onto the model,\n\
00429 # and stores these ideal poses in the vector pose_projected. Further, during model\n\
00430 # evaluation, a new set of (uniform) configurations over the valid configuration\n\
00431 # range is sampled, and the result is stored in pose_resampled.\n\
00432 # The vector pose_flags contains additional display flags for the poses in the\n\
00433 # pose vector, for example, whether a pose is visible and/or\n\
00434 # the end of a trajectory segment. At the moment, this is only used by the\n\
00435 # prior_model_learner.\n\
00436 #\n\
00437 \n\
00438 Header header # Timestamp and frame\n\
00439 int32 id # used-specified track id\n\
00440 \n\
00441 geometry_msgs/Pose[] pose # sequence of poses, defining the observed trajectory\n\
00442 geometry_msgs/Pose[] pose_projected # sequence of poses, projected to the model \n\
00443 # (after model evaluation)\n\
00444 geometry_msgs/Pose[] pose_resampled # sequence of poses, re-sampled from the model in\n\
00445 # the valid configuration range\n\
00446 uint32[] pose_flags # bit-wise combination of POSE_VISIBLE and POSE_END_OF_SEGMENT\n\
00447 \n\
00448 uint32 POSE_VISIBLE=1\n\
00449 uint32 POSE_END_OF_SEGMENT=2\n\
00450 \n\
00451 # Each channel should have the same number of elements as pose array, \n\
00452 # and the data in each channel should correspond 1:1 with each pose\n\
00453 # possible channels: \"width\", \"height\", \"rgb\", ...\n\
00454 sensor_msgs/ChannelFloat32[] channels \n\
00455 \n\
00456 \n\
00457 \n\
00458 ================================================================================\n\
00459 MSG: geometry_msgs/Pose\n\
00460 # A representation of pose in free space, composed of postion and orientation. \n\
00461 Point position\n\
00462 Quaternion orientation\n\
00463 \n\
00464 ================================================================================\n\
00465 MSG: geometry_msgs/Point\n\
00466 # This contains the position of a point in free space\n\
00467 float64 x\n\
00468 float64 y\n\
00469 float64 z\n\
00470 \n\
00471 ================================================================================\n\
00472 MSG: geometry_msgs/Quaternion\n\
00473 # This represents an orientation in free space in quaternion form.\n\
00474 \n\
00475 float64 x\n\
00476 float64 y\n\
00477 float64 z\n\
00478 float64 w\n\
00479 \n\
00480 ================================================================================\n\
00481 MSG: sensor_msgs/ChannelFloat32\n\
00482 # This message is used by the PointCloud message to hold optional data\n\
00483 # associated with each point in the cloud. The length of the values\n\
00484 # array should be the same as the length of the points array in the\n\
00485 # PointCloud, and each value should be associated with the corresponding\n\
00486 # point.\n\
00487 \n\
00488 # Channel names in existing practice include:\n\
00489 # \"u\", \"v\" - row and column (respectively) in the left stereo image.\n\
00490 # This is opposite to usual conventions but remains for\n\
00491 # historical reasons. The newer PointCloud2 message has no\n\
00492 # such problem.\n\
00493 # \"rgb\" - For point clouds produced by color stereo cameras. uint8\n\
00494 # (R,G,B) values packed into the least significant 24 bits,\n\
00495 # in order.\n\
00496 # \"intensity\" - laser or pixel intensity.\n\
00497 # \"distance\"\n\
00498 \n\
00499 # The channel name should give semantics of the channel (e.g.\n\
00500 # \"intensity\" instead of \"value\").\n\
00501 string name\n\
00502 \n\
00503 # The values array should be 1-1 with the elements of the associated\n\
00504 # PointCloud.\n\
00505 float32[] values\n\
00506 \n\
00507 ";
00508 }
00509
00510 static const char* value(const ::articulation_msgs::ModelMsg_<ContainerAllocator> &) { return value(); }
00511 };
00512
00513 template<class ContainerAllocator> struct HasHeader< ::articulation_msgs::ModelMsg_<ContainerAllocator> > : public TrueType {};
00514 template<class ContainerAllocator> struct HasHeader< const ::articulation_msgs::ModelMsg_<ContainerAllocator> > : public TrueType {};
00515 }
00516 }
00517
00518 namespace ros
00519 {
00520 namespace serialization
00521 {
00522
00523 template<class ContainerAllocator> struct Serializer< ::articulation_msgs::ModelMsg_<ContainerAllocator> >
00524 {
00525 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00526 {
00527 stream.next(m.header);
00528 stream.next(m.id);
00529 stream.next(m.name);
00530 stream.next(m.params);
00531 stream.next(m.track);
00532 }
00533
00534 ROS_DECLARE_ALLINONE_SERIALIZER;
00535 };
00536 }
00537 }
00538
00539 namespace ros
00540 {
00541 namespace message_operations
00542 {
00543
00544 template<class ContainerAllocator>
00545 struct Printer< ::articulation_msgs::ModelMsg_<ContainerAllocator> >
00546 {
00547 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::articulation_msgs::ModelMsg_<ContainerAllocator> & v)
00548 {
00549 s << indent << "header: ";
00550 s << std::endl;
00551 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00552 s << indent << "id: ";
00553 Printer<int32_t>::stream(s, indent + " ", v.id);
00554 s << indent << "name: ";
00555 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.name);
00556 s << indent << "params[]" << std::endl;
00557 for (size_t i = 0; i < v.params.size(); ++i)
00558 {
00559 s << indent << " params[" << i << "]: ";
00560 s << std::endl;
00561 s << indent;
00562 Printer< ::articulation_msgs::ParamMsg_<ContainerAllocator> >::stream(s, indent + " ", v.params[i]);
00563 }
00564 s << indent << "track: ";
00565 s << std::endl;
00566 Printer< ::articulation_msgs::TrackMsg_<ContainerAllocator> >::stream(s, indent + " ", v.track);
00567 }
00568 };
00569
00570
00571 }
00572 }
00573
00574 #endif // ARTICULATION_MSGS_MESSAGE_MODELMSG_H
00575