19 #ifndef FETCH_AUTO_DOCK_DOCK_CANDIDATE_H 20 #define FETCH_AUTO_DOCK_DOCK_CANDIDATE_H 22 #include <geometry_msgs/Point.h> 24 #include <boost/shared_ptr.hpp> 32 std::vector<geometry_msgs::Point>
points;
44 geometry_msgs::Point& pt1 = points.front();
45 geometry_msgs::Point& pt2 = points.back();
46 return (
sqrt(
pow((pt1.x - pt2.x), 2) +
pow((pt1.y - pt2.y), 2)));
69 return dist < (0.25*0.25);
82 return (a->dist > b->dist);
86 #endif // FETCH_AUTO_DOCK_DOCK_CANDIDATE_H bool valid(bool dock_found)
Determine if this candidate meets our basic criteria.
std::vector< geometry_msgs::Point > points
bool operator()(DockCandidatePtr a, DockCandidatePtr b)
double width()
Get the width of this segment.
INLINE Rall1d< T, V, S > sqrt(const Rall1d< T, V, S > &arg)
INLINE Rall1d< T, V, S > pow(const Rall1d< T, V, S > &arg, double m)
A cluster which is a candidate for a dock.
boost::shared_ptr< DockCandidate > DockCandidatePtr