hpp-core  4.9.0
Implement basic classes for canonical path planning for kinematic chains.
distance-between-objects.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2014 CNRS
3 // Authors: Florent Lamiraux
4 //
5 // This file is part of hpp-core
6 // hpp-core is free software: you can redistribute it
7 // and/or modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation, either version
9 // 3 of the License, or (at your option) any later version.
10 //
11 // hpp-core is distributed in the hope that it will be
12 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
13 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // General Lesser Public License for more details. You should have
15 // received a copy of the GNU Lesser General Public License along with
16 // hpp-core If not, see
17 // <http://www.gnu.org/licenses/>.
18 
19 #ifndef HPP_CORE_DISTANCE_BETWEEN_OBJECTS_HH
20 # define HPP_CORE_DISTANCE_BETWEEN_OBJECTS_HH
21 
22 # include <hpp/core/fwd.hh>
23 
24 namespace hpp {
25  namespace core {
28  {
29  public:
30  DistanceBetweenObjects (const DevicePtr_t& robot);
34  void addObstacle (const CollisionObjectConstPtr_t &object);
38  void computeDistances ();
40  const CollisionPairs_t&
41  collisionPairs () const {return collisionPairs_;};
43  const DistanceResults_t&
44  distanceResults () const {return distanceResults_;};
46 
47 
48  private:
49  DevicePtr_t robot_;
50  CollisionPairs_t collisionPairs_;
51  DistanceResults_t distanceResults_;
52  };
53  } // namespace core
54 } // namespace hpp
55 
56 #endif // HPP_CORE_DISTANCE_BETWEEN_OBJECTS_HH
pinocchio::DevicePtr_t DevicePtr_t
Definition: fwd.hh:114
void computeDistances()
Compute distances between pairs of objects stored in bodies.
void obstacles(const ObjectStdVector_t &obstacles)
Add a list of obstacles.
std::vector< CollisionPair_t > CollisionPairs_t
Definition: fwd.hh:220
void addObstacle(const CollisionObjectConstPtr_t &object)
DistanceBetweenObjects(const DevicePtr_t &robot)
pinocchio::DistanceResults_t DistanceResults_t
Definition: fwd.hh:125
const CollisionPairs_t & collisionPairs() const
Get collision pairs.
Definition: distance-between-objects.hh:41
Computation of distances between pairs of objects.
Definition: distance-between-objects.hh:27
const DistanceResults_t & distanceResults() const
Get result of distance computations.
Definition: distance-between-objects.hh:44
pinocchio::CollisionObjectConstPtr_t CollisionObjectConstPtr_t
Definition: fwd.hh:90
std::vector< CollisionObjectPtr_t > ObjectStdVector_t
Definition: fwd.hh:167