00001
00002 #ifndef SBPL_CART_PLANNER_MESSAGE_SBPLCARTPLANNERSTATS_H
00003 #define SBPL_CART_PLANNER_MESSAGE_SBPLCARTPLANNERSTATS_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 "geometry_msgs/PoseStamped.h"
00014 #include "geometry_msgs/PoseStamped.h"
00015 #include "cart_pushing_msgs/RobotCartPath.h"
00016
00017 namespace sbpl_cart_planner
00018 {
00019 template <class ContainerAllocator>
00020 struct SBPLCartPlannerStats_ : public ros::Message
00021 {
00022 typedef SBPLCartPlannerStats_<ContainerAllocator> Type;
00023
00024 SBPLCartPlannerStats_()
00025 : initial_epsilon(0.0)
00026 , final_epsilon(0.0)
00027 , plan_to_first_solution(false)
00028 , allocated_time(0.0)
00029 , actual_time(0.0)
00030 , time_to_first_solution(0.0)
00031 , solution_cost(0.0)
00032 , path_size(0.0)
00033 , final_number_of_expands(0)
00034 , number_of_expands_initial_solution(0)
00035 , start()
00036 , start_cart_angle(0.0)
00037 , goal()
00038 , goal_cart_angle(0.0)
00039 , solution()
00040 {
00041 }
00042
00043 SBPLCartPlannerStats_(const ContainerAllocator& _alloc)
00044 : initial_epsilon(0.0)
00045 , final_epsilon(0.0)
00046 , plan_to_first_solution(false)
00047 , allocated_time(0.0)
00048 , actual_time(0.0)
00049 , time_to_first_solution(0.0)
00050 , solution_cost(0.0)
00051 , path_size(0.0)
00052 , final_number_of_expands(0)
00053 , number_of_expands_initial_solution(0)
00054 , start(_alloc)
00055 , start_cart_angle(0.0)
00056 , goal(_alloc)
00057 , goal_cart_angle(0.0)
00058 , solution(_alloc)
00059 {
00060 }
00061
00062 typedef double _initial_epsilon_type;
00063 double initial_epsilon;
00064
00065 typedef double _final_epsilon_type;
00066 double final_epsilon;
00067
00068 typedef uint8_t _plan_to_first_solution_type;
00069 uint8_t plan_to_first_solution;
00070
00071 typedef double _allocated_time_type;
00072 double allocated_time;
00073
00074 typedef double _actual_time_type;
00075 double actual_time;
00076
00077 typedef double _time_to_first_solution_type;
00078 double time_to_first_solution;
00079
00080 typedef double _solution_cost_type;
00081 double solution_cost;
00082
00083 typedef double _path_size_type;
00084 double path_size;
00085
00086 typedef int64_t _final_number_of_expands_type;
00087 int64_t final_number_of_expands;
00088
00089 typedef int64_t _number_of_expands_initial_solution_type;
00090 int64_t number_of_expands_initial_solution;
00091
00092 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _start_type;
00093 ::geometry_msgs::PoseStamped_<ContainerAllocator> start;
00094
00095 typedef double _start_cart_angle_type;
00096 double start_cart_angle;
00097
00098 typedef ::geometry_msgs::PoseStamped_<ContainerAllocator> _goal_type;
00099 ::geometry_msgs::PoseStamped_<ContainerAllocator> goal;
00100
00101 typedef double _goal_cart_angle_type;
00102 double goal_cart_angle;
00103
00104 typedef ::cart_pushing_msgs::RobotCartPath_<ContainerAllocator> _solution_type;
00105 ::cart_pushing_msgs::RobotCartPath_<ContainerAllocator> solution;
00106
00107
00108 private:
00109 static const char* __s_getDataType_() { return "sbpl_cart_planner/SBPLCartPlannerStats"; }
00110 public:
00111 ROS_DEPRECATED static const std::string __s_getDataType() { return __s_getDataType_(); }
00112
00113 ROS_DEPRECATED const std::string __getDataType() const { return __s_getDataType_(); }
00114
00115 private:
00116 static const char* __s_getMD5Sum_() { return "59dcf49825e7e59499a38ffdd0daa999"; }
00117 public:
00118 ROS_DEPRECATED static const std::string __s_getMD5Sum() { return __s_getMD5Sum_(); }
00119
00120 ROS_DEPRECATED const std::string __getMD5Sum() const { return __s_getMD5Sum_(); }
00121
00122 private:
00123 static const char* __s_getMessageDefinition_() { return "#planner stats\n\
00124 float64 initial_epsilon\n\
00125 float64 final_epsilon\n\
00126 bool plan_to_first_solution\n\
00127 float64 allocated_time\n\
00128 float64 actual_time\n\
00129 float64 time_to_first_solution\n\
00130 float64 solution_cost\n\
00131 float64 path_size\n\
00132 int64 final_number_of_expands\n\
00133 int64 number_of_expands_initial_solution\n\
00134 \n\
00135 #problem stats\n\
00136 geometry_msgs/PoseStamped start\n\
00137 float64 start_cart_angle\n\
00138 geometry_msgs/PoseStamped goal\n\
00139 float64 goal_cart_angle\n\
00140 \n\
00141 #solution\n\
00142 cart_pushing_msgs/RobotCartPath solution\n\
00143 ================================================================================\n\
00144 MSG: geometry_msgs/PoseStamped\n\
00145 # A Pose with reference coordinate frame and timestamp\n\
00146 Header header\n\
00147 Pose pose\n\
00148 \n\
00149 ================================================================================\n\
00150 MSG: std_msgs/Header\n\
00151 # Standard metadata for higher-level stamped data types.\n\
00152 # This is generally used to communicate timestamped data \n\
00153 # in a particular coordinate frame.\n\
00154 # \n\
00155 # sequence ID: consecutively increasing ID \n\
00156 uint32 seq\n\
00157 #Two-integer timestamp that is expressed as:\n\
00158 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00159 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00160 # time-handling sugar is provided by the client library\n\
00161 time stamp\n\
00162 #Frame this data is associated with\n\
00163 # 0: no frame\n\
00164 # 1: global frame\n\
00165 string frame_id\n\
00166 \n\
00167 ================================================================================\n\
00168 MSG: geometry_msgs/Pose\n\
00169 # A representation of pose in free space, composed of postion and orientation. \n\
00170 Point position\n\
00171 Quaternion orientation\n\
00172 \n\
00173 ================================================================================\n\
00174 MSG: geometry_msgs/Point\n\
00175 # This contains the position of a point in free space\n\
00176 float64 x\n\
00177 float64 y\n\
00178 float64 z\n\
00179 \n\
00180 ================================================================================\n\
00181 MSG: geometry_msgs/Quaternion\n\
00182 # This represents an orientation in free space in quaternion form.\n\
00183 \n\
00184 float64 x\n\
00185 float64 y\n\
00186 float64 z\n\
00187 float64 w\n\
00188 \n\
00189 ================================================================================\n\
00190 MSG: cart_pushing_msgs/RobotCartPath\n\
00191 Header header\n\
00192 RobotCartConfiguration[] path\n\
00193 ================================================================================\n\
00194 MSG: cart_pushing_msgs/RobotCartConfiguration\n\
00195 # Robot's pose in reference frame\n\
00196 geometry_msgs/Pose robot_pose\n\
00197 \n\
00198 # Cart's pose in base frame\n\
00199 geometry_msgs/Pose cart_pose\n\
00200 "; }
00201 public:
00202 ROS_DEPRECATED static const std::string __s_getMessageDefinition() { return __s_getMessageDefinition_(); }
00203
00204 ROS_DEPRECATED const std::string __getMessageDefinition() const { return __s_getMessageDefinition_(); }
00205
00206 ROS_DEPRECATED virtual uint8_t *serialize(uint8_t *write_ptr, uint32_t seq) const
00207 {
00208 ros::serialization::OStream stream(write_ptr, 1000000000);
00209 ros::serialization::serialize(stream, initial_epsilon);
00210 ros::serialization::serialize(stream, final_epsilon);
00211 ros::serialization::serialize(stream, plan_to_first_solution);
00212 ros::serialization::serialize(stream, allocated_time);
00213 ros::serialization::serialize(stream, actual_time);
00214 ros::serialization::serialize(stream, time_to_first_solution);
00215 ros::serialization::serialize(stream, solution_cost);
00216 ros::serialization::serialize(stream, path_size);
00217 ros::serialization::serialize(stream, final_number_of_expands);
00218 ros::serialization::serialize(stream, number_of_expands_initial_solution);
00219 ros::serialization::serialize(stream, start);
00220 ros::serialization::serialize(stream, start_cart_angle);
00221 ros::serialization::serialize(stream, goal);
00222 ros::serialization::serialize(stream, goal_cart_angle);
00223 ros::serialization::serialize(stream, solution);
00224 return stream.getData();
00225 }
00226
00227 ROS_DEPRECATED virtual uint8_t *deserialize(uint8_t *read_ptr)
00228 {
00229 ros::serialization::IStream stream(read_ptr, 1000000000);
00230 ros::serialization::deserialize(stream, initial_epsilon);
00231 ros::serialization::deserialize(stream, final_epsilon);
00232 ros::serialization::deserialize(stream, plan_to_first_solution);
00233 ros::serialization::deserialize(stream, allocated_time);
00234 ros::serialization::deserialize(stream, actual_time);
00235 ros::serialization::deserialize(stream, time_to_first_solution);
00236 ros::serialization::deserialize(stream, solution_cost);
00237 ros::serialization::deserialize(stream, path_size);
00238 ros::serialization::deserialize(stream, final_number_of_expands);
00239 ros::serialization::deserialize(stream, number_of_expands_initial_solution);
00240 ros::serialization::deserialize(stream, start);
00241 ros::serialization::deserialize(stream, start_cart_angle);
00242 ros::serialization::deserialize(stream, goal);
00243 ros::serialization::deserialize(stream, goal_cart_angle);
00244 ros::serialization::deserialize(stream, solution);
00245 return stream.getData();
00246 }
00247
00248 ROS_DEPRECATED virtual uint32_t serializationLength() const
00249 {
00250 uint32_t size = 0;
00251 size += ros::serialization::serializationLength(initial_epsilon);
00252 size += ros::serialization::serializationLength(final_epsilon);
00253 size += ros::serialization::serializationLength(plan_to_first_solution);
00254 size += ros::serialization::serializationLength(allocated_time);
00255 size += ros::serialization::serializationLength(actual_time);
00256 size += ros::serialization::serializationLength(time_to_first_solution);
00257 size += ros::serialization::serializationLength(solution_cost);
00258 size += ros::serialization::serializationLength(path_size);
00259 size += ros::serialization::serializationLength(final_number_of_expands);
00260 size += ros::serialization::serializationLength(number_of_expands_initial_solution);
00261 size += ros::serialization::serializationLength(start);
00262 size += ros::serialization::serializationLength(start_cart_angle);
00263 size += ros::serialization::serializationLength(goal);
00264 size += ros::serialization::serializationLength(goal_cart_angle);
00265 size += ros::serialization::serializationLength(solution);
00266 return size;
00267 }
00268
00269 typedef boost::shared_ptr< ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> > Ptr;
00270 typedef boost::shared_ptr< ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> const> ConstPtr;
00271 };
00272 typedef ::sbpl_cart_planner::SBPLCartPlannerStats_<std::allocator<void> > SBPLCartPlannerStats;
00273
00274 typedef boost::shared_ptr< ::sbpl_cart_planner::SBPLCartPlannerStats> SBPLCartPlannerStatsPtr;
00275 typedef boost::shared_ptr< ::sbpl_cart_planner::SBPLCartPlannerStats const> SBPLCartPlannerStatsConstPtr;
00276
00277
00278 template<typename ContainerAllocator>
00279 std::ostream& operator<<(std::ostream& s, const ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> & v)
00280 {
00281 ros::message_operations::Printer< ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> >::stream(s, "", v);
00282 return s;}
00283
00284 }
00285
00286 namespace ros
00287 {
00288 namespace message_traits
00289 {
00290 template<class ContainerAllocator>
00291 struct MD5Sum< ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> > {
00292 static const char* value()
00293 {
00294 return "59dcf49825e7e59499a38ffdd0daa999";
00295 }
00296
00297 static const char* value(const ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> &) { return value(); }
00298 static const uint64_t static_value1 = 0x59dcf49825e7e594ULL;
00299 static const uint64_t static_value2 = 0x99a38ffdd0daa999ULL;
00300 };
00301
00302 template<class ContainerAllocator>
00303 struct DataType< ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> > {
00304 static const char* value()
00305 {
00306 return "sbpl_cart_planner/SBPLCartPlannerStats";
00307 }
00308
00309 static const char* value(const ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> &) { return value(); }
00310 };
00311
00312 template<class ContainerAllocator>
00313 struct Definition< ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> > {
00314 static const char* value()
00315 {
00316 return "#planner stats\n\
00317 float64 initial_epsilon\n\
00318 float64 final_epsilon\n\
00319 bool plan_to_first_solution\n\
00320 float64 allocated_time\n\
00321 float64 actual_time\n\
00322 float64 time_to_first_solution\n\
00323 float64 solution_cost\n\
00324 float64 path_size\n\
00325 int64 final_number_of_expands\n\
00326 int64 number_of_expands_initial_solution\n\
00327 \n\
00328 #problem stats\n\
00329 geometry_msgs/PoseStamped start\n\
00330 float64 start_cart_angle\n\
00331 geometry_msgs/PoseStamped goal\n\
00332 float64 goal_cart_angle\n\
00333 \n\
00334 #solution\n\
00335 cart_pushing_msgs/RobotCartPath solution\n\
00336 ================================================================================\n\
00337 MSG: geometry_msgs/PoseStamped\n\
00338 # A Pose with reference coordinate frame and timestamp\n\
00339 Header header\n\
00340 Pose pose\n\
00341 \n\
00342 ================================================================================\n\
00343 MSG: std_msgs/Header\n\
00344 # Standard metadata for higher-level stamped data types.\n\
00345 # This is generally used to communicate timestamped data \n\
00346 # in a particular coordinate frame.\n\
00347 # \n\
00348 # sequence ID: consecutively increasing ID \n\
00349 uint32 seq\n\
00350 #Two-integer timestamp that is expressed as:\n\
00351 # * stamp.secs: seconds (stamp_secs) since epoch\n\
00352 # * stamp.nsecs: nanoseconds since stamp_secs\n\
00353 # time-handling sugar is provided by the client library\n\
00354 time stamp\n\
00355 #Frame this data is associated with\n\
00356 # 0: no frame\n\
00357 # 1: global frame\n\
00358 string frame_id\n\
00359 \n\
00360 ================================================================================\n\
00361 MSG: geometry_msgs/Pose\n\
00362 # A representation of pose in free space, composed of postion and orientation. \n\
00363 Point position\n\
00364 Quaternion orientation\n\
00365 \n\
00366 ================================================================================\n\
00367 MSG: geometry_msgs/Point\n\
00368 # This contains the position of a point in free space\n\
00369 float64 x\n\
00370 float64 y\n\
00371 float64 z\n\
00372 \n\
00373 ================================================================================\n\
00374 MSG: geometry_msgs/Quaternion\n\
00375 # This represents an orientation in free space in quaternion form.\n\
00376 \n\
00377 float64 x\n\
00378 float64 y\n\
00379 float64 z\n\
00380 float64 w\n\
00381 \n\
00382 ================================================================================\n\
00383 MSG: cart_pushing_msgs/RobotCartPath\n\
00384 Header header\n\
00385 RobotCartConfiguration[] path\n\
00386 ================================================================================\n\
00387 MSG: cart_pushing_msgs/RobotCartConfiguration\n\
00388 # Robot's pose in reference frame\n\
00389 geometry_msgs/Pose robot_pose\n\
00390 \n\
00391 # Cart's pose in base frame\n\
00392 geometry_msgs/Pose cart_pose\n\
00393 ";
00394 }
00395
00396 static const char* value(const ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> &) { return value(); }
00397 };
00398
00399 }
00400 }
00401
00402 namespace ros
00403 {
00404 namespace serialization
00405 {
00406
00407 template<class ContainerAllocator> struct Serializer< ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> >
00408 {
00409 template<typename Stream, typename T> inline static void allInOne(Stream& stream, T m)
00410 {
00411 stream.next(m.initial_epsilon);
00412 stream.next(m.final_epsilon);
00413 stream.next(m.plan_to_first_solution);
00414 stream.next(m.allocated_time);
00415 stream.next(m.actual_time);
00416 stream.next(m.time_to_first_solution);
00417 stream.next(m.solution_cost);
00418 stream.next(m.path_size);
00419 stream.next(m.final_number_of_expands);
00420 stream.next(m.number_of_expands_initial_solution);
00421 stream.next(m.start);
00422 stream.next(m.start_cart_angle);
00423 stream.next(m.goal);
00424 stream.next(m.goal_cart_angle);
00425 stream.next(m.solution);
00426 }
00427
00428 ROS_DECLARE_ALLINONE_SERIALIZER;
00429 };
00430 }
00431 }
00432
00433 namespace ros
00434 {
00435 namespace message_operations
00436 {
00437
00438 template<class ContainerAllocator>
00439 struct Printer< ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> >
00440 {
00441 template<typename Stream> static void stream(Stream& s, const std::string& indent, const ::sbpl_cart_planner::SBPLCartPlannerStats_<ContainerAllocator> & v)
00442 {
00443 s << indent << "initial_epsilon: ";
00444 Printer<double>::stream(s, indent + " ", v.initial_epsilon);
00445 s << indent << "final_epsilon: ";
00446 Printer<double>::stream(s, indent + " ", v.final_epsilon);
00447 s << indent << "plan_to_first_solution: ";
00448 Printer<uint8_t>::stream(s, indent + " ", v.plan_to_first_solution);
00449 s << indent << "allocated_time: ";
00450 Printer<double>::stream(s, indent + " ", v.allocated_time);
00451 s << indent << "actual_time: ";
00452 Printer<double>::stream(s, indent + " ", v.actual_time);
00453 s << indent << "time_to_first_solution: ";
00454 Printer<double>::stream(s, indent + " ", v.time_to_first_solution);
00455 s << indent << "solution_cost: ";
00456 Printer<double>::stream(s, indent + " ", v.solution_cost);
00457 s << indent << "path_size: ";
00458 Printer<double>::stream(s, indent + " ", v.path_size);
00459 s << indent << "final_number_of_expands: ";
00460 Printer<int64_t>::stream(s, indent + " ", v.final_number_of_expands);
00461 s << indent << "number_of_expands_initial_solution: ";
00462 Printer<int64_t>::stream(s, indent + " ", v.number_of_expands_initial_solution);
00463 s << indent << "start: ";
00464 s << std::endl;
00465 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.start);
00466 s << indent << "start_cart_angle: ";
00467 Printer<double>::stream(s, indent + " ", v.start_cart_angle);
00468 s << indent << "goal: ";
00469 s << std::endl;
00470 Printer< ::geometry_msgs::PoseStamped_<ContainerAllocator> >::stream(s, indent + " ", v.goal);
00471 s << indent << "goal_cart_angle: ";
00472 Printer<double>::stream(s, indent + " ", v.goal_cart_angle);
00473 s << indent << "solution: ";
00474 s << std::endl;
00475 Printer< ::cart_pushing_msgs::RobotCartPath_<ContainerAllocator> >::stream(s, indent + " ", v.solution);
00476 }
00477 };
00478
00479
00480 }
00481 }
00482
00483 #endif // SBPL_CART_PLANNER_MESSAGE_SBPLCARTPLANNERSTATS_H
00484