00001
00002 #ifndef ARM_NAVIGATION_MSGS_MESSAGE_MOVEARMSTATISTICS_H
00003 #define ARM_NAVIGATION_MSGS_MESSAGE_MOVEARMSTATISTICS_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 "arm_navigation_msgs/ArmNavigationErrorCodes.h"
00018
00019 namespace arm_navigation_msgs
00020 {
00021 template <class ContainerAllocator>
00022 struct MoveArmStatistics_ {
00023 typedef MoveArmStatistics_<ContainerAllocator> Type;
00024
00025 MoveArmStatistics_()
00026 : request_id(0)
00027 , result()
00028 , error_code()
00029 , planning_time(0.0)
00030 , smoothing_time(0.0)
00031 , ik_time(0.0)
00032 , time_to_execution(0.0)
00033 , time_to_result(0.0)
00034 , preempted(false)
00035 , num_replans(0.0)
00036 , trajectory_duration(0.0)
00037 , planner_service_name()
00038 {
00039 }
00040
00041 MoveArmStatistics_(const ContainerAllocator& _alloc)
00042 : request_id(0)
00043 , result(_alloc)
00044 , error_code(_alloc)
00045 , planning_time(0.0)
00046 , smoothing_time(0.0)
00047 , ik_time(0.0)
00048 , time_to_execution(0.0)
00049 , time_to_result(0.0)
00050 , preempted(false)
00051 , num_replans(0.0)
00052 , trajectory_duration(0.0)
00053 , planner_service_name(_alloc)
00054 {
00055 }
00056
00057 typedef int32_t _request_id_type;
00058 int32_t request_id;
00059
00060 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _result_type;
00061 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > result;
00062
00063 typedef ::arm_navigation_msgs::ArmNavigationErrorCodes_<ContainerAllocator> _error_code_type;
00064 ::arm_navigation_msgs::ArmNavigationErrorCodes_<ContainerAllocator> error_code;
00065
00066 typedef double _planning_time_type;
00067 double planning_time;
00068
00069 typedef double _smoothing_time_type;
00070 double smoothing_time;
00071
00072 typedef double _ik_time_type;
00073 double ik_time;
00074
00075 typedef double _time_to_execution_type;
00076 double time_to_execution;
00077
00078 typedef double _time_to_result_type;
00079 double time_to_result;
00080
00081 typedef uint8_t _preempted_type;
00082 uint8_t preempted;
00083
00084 typedef double _num_replans_type;
00085 double num_replans;
00086
00087 typedef double _trajectory_duration_type;
00088 double trajectory_duration;
00089
00090 typedef std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > _planner_service_name_type;
00091 std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > planner_service_name;
00092
00093
00094 private:
00095 static const char* __s_getDataType_() { return "arm_navigation_msgs/MoveArmStatistics"; }
00096 public:
00097 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00098
00099 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00100
00101 private:
00102 static const char* __s_getMD5Sum_() { return "d83dee1348791a0d1414257b41bc161f"; }
00103 public:
00104 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00105
00106 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00107
00108 private:
00109 static const char* __s_getMessageDefinition_() { return "int32 request_id\n\
00110 string result\n\
00111 arm_navigation_msgs/ArmNavigationErrorCodes error_code\n\
00112 \n\
00113 float64 planning_time\n\
00114 float64 smoothing_time\n\
00115 float64 ik_time\n\
00116 float64 time_to_execution\n\
00117 float64 time_to_result\n\
00118 \n\
00119 bool preempted\n\
00120 \n\
00121 float64 num_replans\n\
00122 float64 trajectory_duration\n\
00123 \n\
00124 string planner_service_name\n\
00125 \n\
00126 ================================================================================\n\
00127 MSG: arm_navigation_msgs/ArmNavigationErrorCodes\n\
00128 int32 val\n\
00129 \n\
00130 # overall behavior\n\
00131 int32 PLANNING_FAILED=-1\n\
00132 int32 SUCCESS=1\n\
00133 int32 TIMED_OUT=-2\n\
00134 \n\
00135 # start state errors\n\
00136 int32 START_STATE_IN_COLLISION=-3\n\
00137 int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-4\n\
00138 \n\
00139 # goal errors\n\
00140 int32 GOAL_IN_COLLISION=-5\n\
00141 int32 GOAL_VIOLATES_PATH_CONSTRAINTS=-6\n\
00142 \n\
00143 # robot state\n\
00144 int32 INVALID_ROBOT_STATE=-7\n\
00145 int32 INCOMPLETE_ROBOT_STATE=-8\n\
00146 \n\
00147 # planning request errors\n\
00148 int32 INVALID_PLANNER_ID=-9\n\
00149 int32 INVALID_NUM_PLANNING_ATTEMPTS=-10\n\
00150 int32 INVALID_ALLOWED_PLANNING_TIME=-11\n\
00151 int32 INVALID_GROUP_NAME=-12\n\
00152 int32 INVALID_GOAL_JOINT_CONSTRAINTS=-13\n\
00153 int32 INVALID_GOAL_POSITION_CONSTRAINTS=-14\n\
00154 int32 INVALID_GOAL_ORIENTATION_CONSTRAINTS=-15\n\
00155 int32 INVALID_PATH_JOINT_CONSTRAINTS=-16\n\
00156 int32 INVALID_PATH_POSITION_CONSTRAINTS=-17\n\
00157 int32 INVALID_PATH_ORIENTATION_CONSTRAINTS=-18\n\
00158 \n\
00159 # state/trajectory monitor errors\n\
00160 int32 INVALID_TRAJECTORY=-19\n\
00161 int32 INVALID_INDEX=-20\n\
00162 int32 JOINT_LIMITS_VIOLATED=-21\n\
00163 int32 PATH_CONSTRAINTS_VIOLATED=-22\n\
00164 int32 COLLISION_CONSTRAINTS_VIOLATED=-23\n\
00165 int32 GOAL_CONSTRAINTS_VIOLATED=-24\n\
00166 int32 JOINTS_NOT_MOVING=-25\n\
00167 int32 TRAJECTORY_CONTROLLER_FAILED=-26\n\
00168 \n\
00169 # system errors\n\
00170 int32 FRAME_TRANSFORM_FAILURE=-27\n\
00171 int32 COLLISION_CHECKING_UNAVAILABLE=-28\n\
00172 int32 ROBOT_STATE_STALE=-29\n\
00173 int32 SENSOR_INFO_STALE=-30\n\
00174 \n\
00175 # kinematics errors\n\
00176 int32 NO_IK_SOLUTION=-31\n\
00177 int32 INVALID_LINK_NAME=-32\n\
00178 int32 IK_LINK_IN_COLLISION=-33\n\
00179 int32 NO_FK_SOLUTION=-34\n\
00180 int32 KINEMATICS_STATE_IN_COLLISION=-35\n\
00181 \n\
00182 # general errors\n\
00183 int32 INVALID_TIMEOUT=-36\n\
00184 \n\
00185 \n\
00186 "; }
00187 public:
00188 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00189
00190 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00191
00192 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00193 {
00194 ros::serialization::OStream stream(write_ptr, 1000000000);
00195 ros::serialization::serialize(stream, request_id);
00196 ros::serialization::serialize(stream, result);
00197 ros::serialization::serialize(stream, error_code);
00198 ros::serialization::serialize(stream, planning_time);
00199 ros::serialization::serialize(stream, smoothing_time);
00200 ros::serialization::serialize(stream, ik_time);
00201 ros::serialization::serialize(stream, time_to_execution);
00202 ros::serialization::serialize(stream, time_to_result);
00203 ros::serialization::serialize(stream, preempted);
00204 ros::serialization::serialize(stream, num_replans);
00205 ros::serialization::serialize(stream, trajectory_duration);
00206 ros::serialization::serialize(stream, planner_service_name);
00207 return stream.getData();
00208 }
00209
00210 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00211 {
00212 ros::serialization::IStream stream(read_ptr, 1000000000);
00213 ros::serialization::deserialize(stream, request_id);
00214 ros::serialization::deserialize(stream, result);
00215 ros::serialization::deserialize(stream, error_code);
00216 ros::serialization::deserialize(stream, planning_time);
00217 ros::serialization::deserialize(stream, smoothing_time);
00218 ros::serialization::deserialize(stream, ik_time);
00219 ros::serialization::deserialize(stream, time_to_execution);
00220 ros::serialization::deserialize(stream, time_to_result);
00221 ros::serialization::deserialize(stream, preempted);
00222 ros::serialization::deserialize(stream, num_replans);
00223 ros::serialization::deserialize(stream, trajectory_duration);
00224 ros::serialization::deserialize(stream, planner_service_name);
00225 return stream.getData();
00226 }
00227
00228 ROS_DEPRECATED virtual uint32_t serializationLength() const
00229 {
00230 uint32_t size = 0;
00231 size += ros::serialization::serializationLength(request_id);
00232 size += ros::serialization::serializationLength(result);
00233 size += ros::serialization::serializationLength(error_code);
00234 size += ros::serialization::serializationLength(planning_time);
00235 size += ros::serialization::serializationLength(smoothing_time);
00236 size += ros::serialization::serializationLength(ik_time);
00237 size += ros::serialization::serializationLength(time_to_execution);
00238 size += ros::serialization::serializationLength(time_to_result);
00239 size += ros::serialization::serializationLength(preempted);
00240 size += ros::serialization::serializationLength(num_replans);
00241 size += ros::serialization::serializationLength(trajectory_duration);
00242 size += ros::serialization::serializationLength(planner_service_name);
00243 return size;
00244 }
00245
00246 typedef boost::shared_ptr< ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> > Ptr;
00247 typedef boost::shared_ptr< ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> const> ConstPtr;
00248 boost::shared_ptr<std::map<std::string, std::string> > __connection_header;
00249 };
00250 typedef ::arm_navigation_msgs::MoveArmStatistics_<std::allocator<void> > MoveArmStatistics;
00251
00252 typedef boost::shared_ptr< ::arm_navigation_msgs::MoveArmStatistics> MoveArmStatisticsPtr;
00253 typedef boost::shared_ptr< ::arm_navigation_msgs::MoveArmStatistics const> MoveArmStatisticsConstPtr;
00254
00255
00256 template<typename ContainerAllocator>
00257 std::ostream& operator<<(std::ostream& s, const ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> & v)
00258 {
00259 ros::message_operations::Printer< ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> >::stream(s, "", v);
00260 return s;}
00261
00262 }
00263
00264 namespace ros
00265 {
00266 namespace message_traits
00267 {
00268 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> > : public TrueType {};
00269 template<class ContainerAllocator> struct IsMessage< ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> const> : public TrueType {};
00270 template<class ContainerAllocator>
00271 struct MD5Sum< ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> > {
00272 static const char* value()
00273 {
00274 return "d83dee1348791a0d1414257b41bc161f";
00275 }
00276
00277 static const char* value(const ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> &) { return value(); }
00278 static const uint64_t static_value1 = 0xd83dee1348791a0dULL;
00279 static const uint64_t static_value2 = 0x1414257b41bc161fULL;
00280 };
00281
00282 template<class ContainerAllocator>
00283 struct DataType< ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> > {
00284 static const char* value()
00285 {
00286 return "arm_navigation_msgs/MoveArmStatistics";
00287 }
00288
00289 static const char* value(const ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> &) { return value(); }
00290 };
00291
00292 template<class ContainerAllocator>
00293 struct Definition< ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> > {
00294 static const char* value()
00295 {
00296 return "int32 request_id\n\
00297 string result\n\
00298 arm_navigation_msgs/ArmNavigationErrorCodes error_code\n\
00299 \n\
00300 float64 planning_time\n\
00301 float64 smoothing_time\n\
00302 float64 ik_time\n\
00303 float64 time_to_execution\n\
00304 float64 time_to_result\n\
00305 \n\
00306 bool preempted\n\
00307 \n\
00308 float64 num_replans\n\
00309 float64 trajectory_duration\n\
00310 \n\
00311 string planner_service_name\n\
00312 \n\
00313 ================================================================================\n\
00314 MSG: arm_navigation_msgs/ArmNavigationErrorCodes\n\
00315 int32 val\n\
00316 \n\
00317 # overall behavior\n\
00318 int32 PLANNING_FAILED=-1\n\
00319 int32 SUCCESS=1\n\
00320 int32 TIMED_OUT=-2\n\
00321 \n\
00322 # start state errors\n\
00323 int32 START_STATE_IN_COLLISION=-3\n\
00324 int32 START_STATE_VIOLATES_PATH_CONSTRAINTS=-4\n\
00325 \n\
00326 # goal errors\n\
00327 int32 GOAL_IN_COLLISION=-5\n\
00328 int32 GOAL_VIOLATES_PATH_CONSTRAINTS=-6\n\
00329 \n\
00330 # robot state\n\
00331 int32 INVALID_ROBOT_STATE=-7\n\
00332 int32 INCOMPLETE_ROBOT_STATE=-8\n\
00333 \n\
00334 # planning request errors\n\
00335 int32 INVALID_PLANNER_ID=-9\n\
00336 int32 INVALID_NUM_PLANNING_ATTEMPTS=-10\n\
00337 int32 INVALID_ALLOWED_PLANNING_TIME=-11\n\
00338 int32 INVALID_GROUP_NAME=-12\n\
00339 int32 INVALID_GOAL_JOINT_CONSTRAINTS=-13\n\
00340 int32 INVALID_GOAL_POSITION_CONSTRAINTS=-14\n\
00341 int32 INVALID_GOAL_ORIENTATION_CONSTRAINTS=-15\n\
00342 int32 INVALID_PATH_JOINT_CONSTRAINTS=-16\n\
00343 int32 INVALID_PATH_POSITION_CONSTRAINTS=-17\n\
00344 int32 INVALID_PATH_ORIENTATION_CONSTRAINTS=-18\n\
00345 \n\
00346 # state/trajectory monitor errors\n\
00347 int32 INVALID_TRAJECTORY=-19\n\
00348 int32 INVALID_INDEX=-20\n\
00349 int32 JOINT_LIMITS_VIOLATED=-21\n\
00350 int32 PATH_CONSTRAINTS_VIOLATED=-22\n\
00351 int32 COLLISION_CONSTRAINTS_VIOLATED=-23\n\
00352 int32 GOAL_CONSTRAINTS_VIOLATED=-24\n\
00353 int32 JOINTS_NOT_MOVING=-25\n\
00354 int32 TRAJECTORY_CONTROLLER_FAILED=-26\n\
00355 \n\
00356 # system errors\n\
00357 int32 FRAME_TRANSFORM_FAILURE=-27\n\
00358 int32 COLLISION_CHECKING_UNAVAILABLE=-28\n\
00359 int32 ROBOT_STATE_STALE=-29\n\
00360 int32 SENSOR_INFO_STALE=-30\n\
00361 \n\
00362 # kinematics errors\n\
00363 int32 NO_IK_SOLUTION=-31\n\
00364 int32 INVALID_LINK_NAME=-32\n\
00365 int32 IK_LINK_IN_COLLISION=-33\n\
00366 int32 NO_FK_SOLUTION=-34\n\
00367 int32 KINEMATICS_STATE_IN_COLLISION=-35\n\
00368 \n\
00369 # general errors\n\
00370 int32 INVALID_TIMEOUT=-36\n\
00371 \n\
00372 \n\
00373 ";
00374 }
00375
00376 static const char* value(const ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> &) { return value(); }
00377 };
00378
00379 }
00380 }
00381
00382 namespace ros
00383 {
00384 namespace serialization
00385 {
00386
00387 template<class ContainerAllocator> struct Serializer< ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> >
00388 {
00389 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00390 {
00391 stream.next(m.request_id);
00392 stream.next(m.result);
00393 stream.next(m.error_code);
00394 stream.next(m.planning_time);
00395 stream.next(m.smoothing_time);
00396 stream.next(m.ik_time);
00397 stream.next(m.time_to_execution);
00398 stream.next(m.time_to_result);
00399 stream.next(m.preempted);
00400 stream.next(m.num_replans);
00401 stream.next(m.trajectory_duration);
00402 stream.next(m.planner_service_name);
00403 }
00404
00405 ROS_DECLARE_ALLINONE_SERIALIZER;
00406 };
00407 }
00408 }
00409
00410 namespace ros
00411 {
00412 namespace message_operations
00413 {
00414
00415 template<class ContainerAllocator>
00416 struct Printer< ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> >
00417 {
00418 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::arm_navigation_msgs::MoveArmStatistics_<ContainerAllocator> & v)
00419 {
00420 s << indent << "request_id: ";
00421 Printer<int32_t>::stream(s, indent + " ", v.request_id);
00422 s << indent << "result: ";
00423 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.result);
00424 s << indent << "error_code: ";
00425 s << std::endl;
00426 Printer< ::arm_navigation_msgs::ArmNavigationErrorCodes_<ContainerAllocator> >::stream(s, indent + " ", v.error_code);
00427 s << indent << "planning_time: ";
00428 Printer<double>::stream(s, indent + " ", v.planning_time);
00429 s << indent << "smoothing_time: ";
00430 Printer<double>::stream(s, indent + " ", v.smoothing_time);
00431 s << indent << "ik_time: ";
00432 Printer<double>::stream(s, indent + " ", v.ik_time);
00433 s << indent << "time_to_execution: ";
00434 Printer<double>::stream(s, indent + " ", v.time_to_execution);
00435 s << indent << "time_to_result: ";
00436 Printer<double>::stream(s, indent + " ", v.time_to_result);
00437 s << indent << "preempted: ";
00438 Printer<uint8_t>::stream(s, indent + " ", v.preempted);
00439 s << indent << "num_replans: ";
00440 Printer<double>::stream(s, indent + " ", v.num_replans);
00441 s << indent << "trajectory_duration: ";
00442 Printer<double>::stream(s, indent + " ", v.trajectory_duration);
00443 s << indent << "planner_service_name: ";
00444 Printer<std::basic_string<char, std::char_traits<char>, typename ContainerAllocator::template rebind<char>::other > >::stream(s, indent + " ", v.planner_service_name);
00445 }
00446 };
00447
00448
00449 }
00450 }
00451
00452 #endif // ARM_NAVIGATION_MSGS_MESSAGE_MOVEARMSTATISTICS_H
00453