00001
00002 #ifndef PR2_MECHANISM_MSGS_MESSAGE_MECHANISMSTATISTICS_H
00003 #define PR2_MECHANISM_MSGS_MESSAGE_MECHANISMSTATISTICS_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 "pr2_mechanism_msgs/ActuatorStatistics.h"
00015 #include "pr2_mechanism_msgs/JointStatistics.h"
00016 #include "pr2_mechanism_msgs/ControllerStatistics.h"
00017
00018 namespace pr2_mechanism_msgs
00019 {
00020 template <class ContainerAllocator>
00021 struct MechanismStatistics_ : public ros::Message
00022 {
00023 typedef MechanismStatistics_<ContainerAllocator> Type;
00024
00025 MechanismStatistics_()
00026 : header()
00027 , actuator_statistics()
00028 , joint_statistics()
00029 , controller_statistics()
00030 {
00031 }
00032
00033 MechanismStatistics_(const ContainerAllocator& _alloc)
00034 : header(_alloc)
00035 , actuator_statistics(_alloc)
00036 , joint_statistics(_alloc)
00037 , controller_statistics(_alloc)
00038 {
00039 }
00040
00041 typedef ::std_msgs::Header_<ContainerAllocator> _header_type;
00042 ::std_msgs::Header_<ContainerAllocator> header;
00043
00044 typedef std::vector< ::pr2_mechanism_msgs::ActuatorStatistics_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_mechanism_msgs::ActuatorStatistics_<ContainerAllocator> >::other > _actuator_statistics_type;
00045 std::vector< ::pr2_mechanism_msgs::ActuatorStatistics_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_mechanism_msgs::ActuatorStatistics_<ContainerAllocator> >::other > actuator_statistics;
00046
00047 typedef std::vector< ::pr2_mechanism_msgs::JointStatistics_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_mechanism_msgs::JointStatistics_<ContainerAllocator> >::other > _joint_statistics_type;
00048 std::vector< ::pr2_mechanism_msgs::JointStatistics_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_mechanism_msgs::JointStatistics_<ContainerAllocator> >::other > joint_statistics;
00049
00050 typedef std::vector< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> >::other > _controller_statistics_type;
00051 std::vector< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> >::other > controller_statistics;
00052
00053
00054 ROS_DEPRECATED uint32_t get_actuator_statistics_size() const { return (uint32_t)actuator_statistics.size(); }
00055 ROS_DEPRECATED void set_actuator_statistics_size(uint32_t size) { actuator_statistics.resize((size_t)size); }
00056 ROS_DEPRECATED void get_actuator_statistics_vec(std::vector< ::pr2_mechanism_msgs::ActuatorStatistics_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_mechanism_msgs::ActuatorStatistics_<ContainerAllocator> >::other > & vec) const { vec = this->actuator_statistics; }
00057 ROS_DEPRECATED void set_actuator_statistics_vec(const std::vector< ::pr2_mechanism_msgs::ActuatorStatistics_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_mechanism_msgs::ActuatorStatistics_<ContainerAllocator> >::other > & vec) { this->actuator_statistics = vec; }
00058 ROS_DEPRECATED uint32_t get_joint_statistics_size() const { return (uint32_t)joint_statistics.size(); }
00059 ROS_DEPRECATED void set_joint_statistics_size(uint32_t size) { joint_statistics.resize((size_t)size); }
00060 ROS_DEPRECATED void get_joint_statistics_vec(std::vector< ::pr2_mechanism_msgs::JointStatistics_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_mechanism_msgs::JointStatistics_<ContainerAllocator> >::other > & vec) const { vec = this->joint_statistics; }
00061 ROS_DEPRECATED void set_joint_statistics_vec(const std::vector< ::pr2_mechanism_msgs::JointStatistics_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_mechanism_msgs::JointStatistics_<ContainerAllocator> >::other > & vec) { this->joint_statistics = vec; }
00062 ROS_DEPRECATED uint32_t get_controller_statistics_size() const { return (uint32_t)controller_statistics.size(); }
00063 ROS_DEPRECATED void set_controller_statistics_size(uint32_t size) { controller_statistics.resize((size_t)size); }
00064 ROS_DEPRECATED void get_controller_statistics_vec(std::vector< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> >::other > & vec) const { vec = this->controller_statistics; }
00065 ROS_DEPRECATED void set_controller_statistics_vec(const std::vector< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> , typename ContainerAllocator::template rebind< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> >::other > & vec) { this->controller_statistics = vec; }
00066 private:
00067 static const char* __s_getDataType_() { return "pr2_mechanism_msgs/MechanismStatistics"; }
00068 public:
00069 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00070
00071 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00072
00073 private:
00074 static const char* __s_getMD5Sum_() { return "b4a99069393681672c01f8c823458e04"; }
00075 public:
00076 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00077
00078 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00079
00080 private:
00081 static const char* __s_getMessageDefinition_() { return "# This message describes the state of the pr2 mechanism. It contains the state of\n\
00082 # each actuator, each joint, and each controller that is spawned in pr2_mechanism_control.\n\
00083 \n\
00084 Header header\n\
00085 ActuatorStatistics[] actuator_statistics\n\
00086 JointStatistics[] joint_statistics\n\
00087 ControllerStatistics[] controller_statistics\n\
00088 \n\
00089 ================================================================================\n\
00090 MSG: std_msgs/Header\n\
00091 # Standard metadata for higher-level stamped data types.\n\
00092 # This is generally used to communicate timestamped data \n\
00093 # in a particular coordinate frame.\n\
00094 # \n\
00095 # sequence ID: consecutively increasing ID \n\
00096 uint32 seq\n\
00097 #Two-integer timestamp that is expressed as:\n\
00098 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00099 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00100 # time-handling sugar is provided by the client library\n\
00101 time stamp\n\
00102 #Frame this data is associated with\n\
00103 # 0: no frame\n\
00104 # 1: global frame\n\
00105 string frame_id\n\
00106 \n\
00107 ================================================================================\n\
00108 MSG: pr2_mechanism_msgs/ActuatorStatistics\n\
00109 # This message contains the state of an actuator on the pr2 robot.\n\
00110 # An actuator contains a motor and an encoder, and is connected\n\
00111 # to a joint by a transmission\n\
00112 \n\
00113 # the name of the actuator\n\
00114 string name\n\
00115 \n\
00116 # the sequence number of the MCB in the ethercat chain. \n\
00117 # the first device in the chain gets deviced_id zero\n\
00118 int32 device_id\n\
00119 \n\
00120 # the time at which this actuator state was measured\n\
00121 time timestamp\n\
00122 \n\
00123 # the encoder position, represented by the number of encoder ticks\n\
00124 int32 encoder_count\n\
00125 \n\
00126 # The angular offset (in radians) that is added to the encoder reading, \n\
00127 # to get to the position of the actuator. This number is computed when the referece\n\
00128 # sensor is triggered during the calibration phase\n\
00129 float64 encoder_offset\n\
00130 \n\
00131 # the encoder position in radians\n\
00132 float64 position\n\
00133 \n\
00134 # the encoder velocity in encoder ticks per second\n\
00135 float64 encoder_velocity\n\
00136 \n\
00137 # the encoder velocity in radians per second\n\
00138 float64 velocity\n\
00139 \n\
00140 # the value of the calibration reading: low (false) or high (true)\n\
00141 bool calibration_reading\n\
00142 \n\
00143 # bool to indicate if the joint already triggered the rising/falling edge of the reference sensor\n\
00144 bool calibration_rising_edge_valid\n\
00145 bool calibration_falling_edge_valid\n\
00146 \n\
00147 # the encoder position when the last rising/falling edge was observed. \n\
00148 # only read this value when the calibration_rising/falling_edge_valid is true\n\
00149 float64 last_calibration_rising_edge\n\
00150 float64 last_calibration_falling_edge\n\
00151 \n\
00152 # flag to indicate if this actuator is enabled or not. \n\
00153 # An actuator can only be commanded when it is enabled.\n\
00154 bool is_enabled\n\
00155 \n\
00156 # indicates if the motor is halted. A motor can be halted because of a voltage or communication problem\n\
00157 bool halted\n\
00158 \n\
00159 # the last current/effort command that was requested\n\
00160 float64 last_commanded_current\n\
00161 float64 last_commanded_effort\n\
00162 \n\
00163 # the last current/effort command that was executed by the actuator\n\
00164 float64 last_executed_current\n\
00165 float64 last_executed_effort\n\
00166 \n\
00167 # the last current/effort that was measured by the actuator\n\
00168 float64 last_measured_current\n\
00169 float64 last_measured_effort\n\
00170 \n\
00171 # the motor voltate\n\
00172 float64 motor_voltage\n\
00173 \n\
00174 # the number of detected encoder problems \n\
00175 int32 num_encoder_errors\n\
00176 \n\
00177 \n\
00178 ================================================================================\n\
00179 MSG: pr2_mechanism_msgs/JointStatistics\n\
00180 # This message contains the state of one joint of the pr2 robot.\n\
00181 # This message is specificly designed for the pr2 robot. \n\
00182 # A generic joint state message can be found in sensor_msgs::JointState\n\
00183 \n\
00184 # the name of the joint\n\
00185 string name\n\
00186 \n\
00187 # the time at which these joint statistics were measured\n\
00188 time timestamp\n\
00189 \n\
00190 # the position of the joint in radians\n\
00191 float64 position\n\
00192 \n\
00193 # the velocity of the joint in radians per second\n\
00194 float64 velocity\n\
00195 \n\
00196 # the measured joint effort \n\
00197 float64 measured_effort\n\
00198 \n\
00199 # the effort that was commanded to the joint.\n\
00200 # the actual applied effort might be different\n\
00201 # because the safety code can limit the effort\n\
00202 # a joint can apply\n\
00203 float64 commanded_effort\n\
00204 \n\
00205 # a flag indicating if the joint is calibrated or not\n\
00206 bool is_calibrated\n\
00207 \n\
00208 # a flag inidcating if the joint violated one of its position/velocity/effort limits\n\
00209 # in the last publish cycle\n\
00210 bool violated_limits\n\
00211 \n\
00212 # the total distance travelled by the joint, measured in radians.\n\
00213 float64 odometer\n\
00214 \n\
00215 # the lowest position reached by the joint in the last publish cycle\n\
00216 float64 min_position\n\
00217 \n\
00218 # the highest position reached by the joint in the last publish cycle\n\
00219 float64 max_position\n\
00220 \n\
00221 # the maximum absolute velocity reached by the joint in the last publish cycle\n\
00222 float64 max_abs_velocity\n\
00223 \n\
00224 # the maximum absolute effort applied by the joint in the last publish cycle\n\
00225 float64 max_abs_effort\n\
00226 \n\
00227 ================================================================================\n\
00228 MSG: pr2_mechanism_msgs/ControllerStatistics\n\
00229 # This message contains the state of one realtime controller\n\
00230 # that was spawned in pr2_mechanism_control\n\
00231 \n\
00232 # the name of the controller\n\
00233 string name\n\
00234 \n\
00235 # the time at which these controller statistics were measured\n\
00236 time timestamp\n\
00237 \n\
00238 # bool that indicates if the controller is currently\n\
00239 # in a running or a stopped state\n\
00240 bool running\n\
00241 \n\
00242 # the maximum time the update loop of the controller ever needed to complete\n\
00243 duration max_time\n\
00244 \n\
00245 # the average time the update loop of the controller needs to complete. \n\
00246 # the average is computed in a sliding time window.\n\
00247 duration mean_time\n\
00248 \n\
00249 # the variance on the time the update loop of the controller needs to complete.\n\
00250 # the variance applies to a sliding time window.\n\
00251 duration variance_time\n\
00252 \n\
00253 # the number of times this controller broke the realtime loop\n\
00254 int32 num_control_loop_overruns\n\
00255 \n\
00256 # the timestamp of the last time this controller broke the realtime loop\n\
00257 time time_last_control_loop_overrun\n\
00258 "; }
00259 public:
00260 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00261
00262 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00263
00264 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00265 {
00266 ros::serialization::OStream stream(write_ptr, 1000000000);
00267 ros::serialization::serialize(stream, header);
00268 ros::serialization::serialize(stream, actuator_statistics);
00269 ros::serialization::serialize(stream, joint_statistics);
00270 ros::serialization::serialize(stream, controller_statistics);
00271 return stream.getData();
00272 }
00273
00274 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00275 {
00276 ros::serialization::IStream stream(read_ptr, 1000000000);
00277 ros::serialization::deserialize(stream, header);
00278 ros::serialization::deserialize(stream, actuator_statistics);
00279 ros::serialization::deserialize(stream, joint_statistics);
00280 ros::serialization::deserialize(stream, controller_statistics);
00281 return stream.getData();
00282 }
00283
00284 ROS_DEPRECATED virtual uint32_t serializationLength() const
00285 {
00286 uint32_t size = 0;
00287 size += ros::serialization::serializationLength(header);
00288 size += ros::serialization::serializationLength(actuator_statistics);
00289 size += ros::serialization::serializationLength(joint_statistics);
00290 size += ros::serialization::serializationLength(controller_statistics);
00291 return size;
00292 }
00293
00294 typedef boost::shared_ptr< ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> > Ptr;
00295 typedef boost::shared_ptr< ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> const> ConstPtr;
00296 };
00297 typedef ::pr2_mechanism_msgs::MechanismStatistics_<std::allocator<void> > MechanismStatistics;
00298
00299 typedef boost::shared_ptr< ::pr2_mechanism_msgs::MechanismStatistics> MechanismStatisticsPtr;
00300 typedef boost::shared_ptr< ::pr2_mechanism_msgs::MechanismStatistics const> MechanismStatisticsConstPtr;
00301
00302
00303 template<typename ContainerAllocator>
00304 std::ostream& operator<<(std::ostream& s, const ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> & v)
00305 {
00306 ros::message_operations::Printer< ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> >::stream(s, "", v);
00307 return s;}
00308
00309 }
00310
00311 namespace ros
00312 {
00313 namespace message_traits
00314 {
00315 template<class ContainerAllocator>
00316 struct MD5Sum< ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> > {
00317 static const char* value()
00318 {
00319 return "b4a99069393681672c01f8c823458e04";
00320 }
00321
00322 static const char* value(const ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> &) { return value(); }
00323 static const uint64_t static_value1 = 0xb4a9906939368167ULL;
00324 static const uint64_t static_value2 = 0x2c01f8c823458e04ULL;
00325 };
00326
00327 template<class ContainerAllocator>
00328 struct DataType< ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> > {
00329 static const char* value()
00330 {
00331 return "pr2_mechanism_msgs/MechanismStatistics";
00332 }
00333
00334 static const char* value(const ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> &) { return value(); }
00335 };
00336
00337 template<class ContainerAllocator>
00338 struct Definition< ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> > {
00339 static const char* value()
00340 {
00341 return "# This message describes the state of the pr2 mechanism. It contains the state of\n\
00342 # each actuator, each joint, and each controller that is spawned in pr2_mechanism_control.\n\
00343 \n\
00344 Header header\n\
00345 ActuatorStatistics[] actuator_statistics\n\
00346 JointStatistics[] joint_statistics\n\
00347 ControllerStatistics[] controller_statistics\n\
00348 \n\
00349 ================================================================================\n\
00350 MSG: std_msgs/Header\n\
00351 # Standard metadata for higher-level stamped data types.\n\
00352 # This is generally used to communicate timestamped data \n\
00353 # in a particular coordinate frame.\n\
00354 # \n\
00355 # sequence ID: consecutively increasing ID \n\
00356 uint32 seq\n\
00357 #Two-integer timestamp that is expressed as:\n\
00358 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00359 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00360 # time-handling sugar is provided by the client library\n\
00361 time stamp\n\
00362 #Frame this data is associated with\n\
00363 # 0: no frame\n\
00364 # 1: global frame\n\
00365 string frame_id\n\
00366 \n\
00367 ================================================================================\n\
00368 MSG: pr2_mechanism_msgs/ActuatorStatistics\n\
00369 # This message contains the state of an actuator on the pr2 robot.\n\
00370 # An actuator contains a motor and an encoder, and is connected\n\
00371 # to a joint by a transmission\n\
00372 \n\
00373 # the name of the actuator\n\
00374 string name\n\
00375 \n\
00376 # the sequence number of the MCB in the ethercat chain. \n\
00377 # the first device in the chain gets deviced_id zero\n\
00378 int32 device_id\n\
00379 \n\
00380 # the time at which this actuator state was measured\n\
00381 time timestamp\n\
00382 \n\
00383 # the encoder position, represented by the number of encoder ticks\n\
00384 int32 encoder_count\n\
00385 \n\
00386 # The angular offset (in radians) that is added to the encoder reading, \n\
00387 # to get to the position of the actuator. This number is computed when the referece\n\
00388 # sensor is triggered during the calibration phase\n\
00389 float64 encoder_offset\n\
00390 \n\
00391 # the encoder position in radians\n\
00392 float64 position\n\
00393 \n\
00394 # the encoder velocity in encoder ticks per second\n\
00395 float64 encoder_velocity\n\
00396 \n\
00397 # the encoder velocity in radians per second\n\
00398 float64 velocity\n\
00399 \n\
00400 # the value of the calibration reading: low (false) or high (true)\n\
00401 bool calibration_reading\n\
00402 \n\
00403 # bool to indicate if the joint already triggered the rising/falling edge of the reference sensor\n\
00404 bool calibration_rising_edge_valid\n\
00405 bool calibration_falling_edge_valid\n\
00406 \n\
00407 # the encoder position when the last rising/falling edge was observed. \n\
00408 # only read this value when the calibration_rising/falling_edge_valid is true\n\
00409 float64 last_calibration_rising_edge\n\
00410 float64 last_calibration_falling_edge\n\
00411 \n\
00412 # flag to indicate if this actuator is enabled or not. \n\
00413 # An actuator can only be commanded when it is enabled.\n\
00414 bool is_enabled\n\
00415 \n\
00416 # indicates if the motor is halted. A motor can be halted because of a voltage or communication problem\n\
00417 bool halted\n\
00418 \n\
00419 # the last current/effort command that was requested\n\
00420 float64 last_commanded_current\n\
00421 float64 last_commanded_effort\n\
00422 \n\
00423 # the last current/effort command that was executed by the actuator\n\
00424 float64 last_executed_current\n\
00425 float64 last_executed_effort\n\
00426 \n\
00427 # the last current/effort that was measured by the actuator\n\
00428 float64 last_measured_current\n\
00429 float64 last_measured_effort\n\
00430 \n\
00431 # the motor voltate\n\
00432 float64 motor_voltage\n\
00433 \n\
00434 # the number of detected encoder problems \n\
00435 int32 num_encoder_errors\n\
00436 \n\
00437 \n\
00438 ================================================================================\n\
00439 MSG: pr2_mechanism_msgs/JointStatistics\n\
00440 # This message contains the state of one joint of the pr2 robot.\n\
00441 # This message is specificly designed for the pr2 robot. \n\
00442 # A generic joint state message can be found in sensor_msgs::JointState\n\
00443 \n\
00444 # the name of the joint\n\
00445 string name\n\
00446 \n\
00447 # the time at which these joint statistics were measured\n\
00448 time timestamp\n\
00449 \n\
00450 # the position of the joint in radians\n\
00451 float64 position\n\
00452 \n\
00453 # the velocity of the joint in radians per second\n\
00454 float64 velocity\n\
00455 \n\
00456 # the measured joint effort \n\
00457 float64 measured_effort\n\
00458 \n\
00459 # the effort that was commanded to the joint.\n\
00460 # the actual applied effort might be different\n\
00461 # because the safety code can limit the effort\n\
00462 # a joint can apply\n\
00463 float64 commanded_effort\n\
00464 \n\
00465 # a flag indicating if the joint is calibrated or not\n\
00466 bool is_calibrated\n\
00467 \n\
00468 # a flag inidcating if the joint violated one of its position/velocity/effort limits\n\
00469 # in the last publish cycle\n\
00470 bool violated_limits\n\
00471 \n\
00472 # the total distance travelled by the joint, measured in radians.\n\
00473 float64 odometer\n\
00474 \n\
00475 # the lowest position reached by the joint in the last publish cycle\n\
00476 float64 min_position\n\
00477 \n\
00478 # the highest position reached by the joint in the last publish cycle\n\
00479 float64 max_position\n\
00480 \n\
00481 # the maximum absolute velocity reached by the joint in the last publish cycle\n\
00482 float64 max_abs_velocity\n\
00483 \n\
00484 # the maximum absolute effort applied by the joint in the last publish cycle\n\
00485 float64 max_abs_effort\n\
00486 \n\
00487 ================================================================================\n\
00488 MSG: pr2_mechanism_msgs/ControllerStatistics\n\
00489 # This message contains the state of one realtime controller\n\
00490 # that was spawned in pr2_mechanism_control\n\
00491 \n\
00492 # the name of the controller\n\
00493 string name\n\
00494 \n\
00495 # the time at which these controller statistics were measured\n\
00496 time timestamp\n\
00497 \n\
00498 # bool that indicates if the controller is currently\n\
00499 # in a running or a stopped state\n\
00500 bool running\n\
00501 \n\
00502 # the maximum time the update loop of the controller ever needed to complete\n\
00503 duration max_time\n\
00504 \n\
00505 # the average time the update loop of the controller needs to complete. \n\
00506 # the average is computed in a sliding time window.\n\
00507 duration mean_time\n\
00508 \n\
00509 # the variance on the time the update loop of the controller needs to complete.\n\
00510 # the variance applies to a sliding time window.\n\
00511 duration variance_time\n\
00512 \n\
00513 # the number of times this controller broke the realtime loop\n\
00514 int32 num_control_loop_overruns\n\
00515 \n\
00516 # the timestamp of the last time this controller broke the realtime loop\n\
00517 time time_last_control_loop_overrun\n\
00518 ";
00519 }
00520
00521 static const char* value(const ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> &) { return value(); }
00522 };
00523
00524 template<class ContainerAllocator> struct HasHeader< ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> > : public TrueType {};
00525 template<class ContainerAllocator> struct HasHeader< const ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> > : public TrueType {};
00526 }
00527 }
00528
00529 namespace ros
00530 {
00531 namespace serialization
00532 {
00533
00534 template<class ContainerAllocator> struct Serializer< ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> >
00535 {
00536 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00537 {
00538 stream.next(m.header);
00539 stream.next(m.actuator_statistics);
00540 stream.next(m.joint_statistics);
00541 stream.next(m.controller_statistics);
00542 }
00543
00544 ROS_DECLARE_ALLINONE_SERIALIZER;
00545 };
00546 }
00547 }
00548
00549 namespace ros
00550 {
00551 namespace message_operations
00552 {
00553
00554 template<class ContainerAllocator>
00555 struct Printer< ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> >
00556 {
00557 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::pr2_mechanism_msgs::MechanismStatistics_<ContainerAllocator> & v)
00558 {
00559 s << indent << "header: ";
00560 s << std::endl;
00561 Printer< ::std_msgs::Header_<ContainerAllocator> >::stream(s, indent + " ", v.header);
00562 s << indent << "actuator_statistics[]" << std::endl;
00563 for (size_t i = 0; i < v.actuator_statistics.size(); ++i)
00564 {
00565 s << indent << " actuator_statistics[" << i << "]: ";
00566 s << std::endl;
00567 s << indent;
00568 Printer< ::pr2_mechanism_msgs::ActuatorStatistics_<ContainerAllocator> >::stream(s, indent + " ", v.actuator_statistics[i]);
00569 }
00570 s << indent << "joint_statistics[]" << std::endl;
00571 for (size_t i = 0; i < v.joint_statistics.size(); ++i)
00572 {
00573 s << indent << " joint_statistics[" << i << "]: ";
00574 s << std::endl;
00575 s << indent;
00576 Printer< ::pr2_mechanism_msgs::JointStatistics_<ContainerAllocator> >::stream(s, indent + " ", v.joint_statistics[i]);
00577 }
00578 s << indent << "controller_statistics[]" << std::endl;
00579 for (size_t i = 0; i < v.controller_statistics.size(); ++i)
00580 {
00581 s << indent << " controller_statistics[" << i << "]: ";
00582 s << std::endl;
00583 s << indent;
00584 Printer< ::pr2_mechanism_msgs::ControllerStatistics_<ContainerAllocator> >::stream(s, indent + " ", v.controller_statistics[i]);
00585 }
00586 }
00587 };
00588
00589
00590 }
00591 }
00592
00593 #endif // PR2_MECHANISM_MSGS_MESSAGE_MECHANISMSTATISTICS_H
00594