19 #ifndef HPP_CORE_ROADMAP_HH 20 # define HPP_CORE_ROADMAP_HH 24 # include <hpp/core/config.hh> 41 virtual void clear ();
62 value_type& minDistance,
bool reverse =
false);
67 return nearestNode (*configuration, minDistance, reverse);
78 value_type& minDistance,
bool reverse =
false);
84 return nearestNode (*configuration, connectedComponent, minDistance, reverse);
98 return nearestNodes (*configuration, k);
117 return nearestNodes (*configuration, connectedComponent, k);
185 initNode_ = addNode (config);
190 bool pathExists ()
const;
222 std::ostream& print (std::ostream& os)
const;
232 void addConnectedComponent (
const NodePtr_t& node);
238 nodes_.push_back (n);
250 virtual void addEdge (
const EdgePtr_t& e);
258 void init (RoadmapWkPtr_t weak);
291 RoadmapWkPtr_t weak_;
297 #endif // HPP_CORE_ROADMAP_HH boost::shared_ptr< Path > PathPtr_t
Definition: fwd.hh:170
pinocchio::DevicePtr_t DevicePtr_t
Definition: fwd.hh:114
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
pinocchio::size_type size_type
Definition: fwd.hh:156
virtual void push_node(const NodePtr_t &n)
Definition: roadmap.hh:236
Optimization of the nearest neighbor search.
Definition: nearest-neighbor.hh:27
boost::shared_ptr< ConnectedComponent > ConnectedComponentPtr_t
Definition: fwd.hh:107
NodePtr_t addNode(const Configuration_t &config)
Definition: roadmap.hh:51
std::set< ConnectedComponentPtr_t > ConnectedComponents_t
Definition: fwd.hh:108
std::list< NodePtr_t > Nodes_t
Definition: fwd.hh:164
pinocchio::value_type value_type
Definition: fwd.hh:157
std::set< RawPtr_t > RawPtrs_t
Definition: connected-component.hh:34
Nodes_t nearestNodes(const ConfigurationPtr_t &configuration, size_type k)
Definition: roadmap.hh:95
const Nodes_t & nodes() const
Definition: roadmap.hh:191
Nodes_t nearestNodes(const ConfigurationPtr_t &configuration, const ConnectedComponentPtr_t &connectedComponent, size_type k)
Definition: roadmap.hh:112
pinocchio::ConfigurationPtr_t ConfigurationPtr_t
Definition: fwd.hh:99
std::vector< NodePtr_t > NodeVector_t
Definition: fwd.hh:165
std::list< Edge * > Edges_t
Definition: fwd.hh:127
boost::shared_ptr< Roadmap > RoadmapPtr_t
Definition: fwd.hh:181
void initNode(const ConfigurationPtr_t &config)
Definition: roadmap.hh:183
void resetGoalNodes()
Definition: roadmap.hh:178
boost::shared_ptr< Distance > DistancePtr_t
Definition: fwd.hh:122
NodePtr_t nearestNode(const ConfigurationPtr_t &configuration, const ConnectedComponentPtr_t &connectedComponent, value_type &minDistance, bool reverse=false)
Definition: roadmap.hh:80
NodePtr_t nearestNode(const ConfigurationPtr_t &configuration, value_type &minDistance, bool reverse=false)
Definition: roadmap.hh:64
const Edges_t & edges() const
Definition: roadmap.hh:195
std::ostream & operator<<(std::ostream &os, const Constraint &constraint)
Definition: constraint.hh:98
pinocchio::Configuration_t Configuration_t
Definition: fwd.hh:96
const NodeVector_t & goalNodes() const
Definition: roadmap.hh:203
Definition: roadmap.hh:35
NodePtr_t initNode() const
Definition: roadmap.hh:199
FCL_REAL distance(const KDOP< N > &other, Vec3f *P=NULL, Vec3f *Q=NULL) const