hpp-core  4.9.0
Implement basic classes for canonical path planning for kinematic chains.
reeds-shepp.hh
Go to the documentation of this file.
1 //
2 // Copyright (c) 2016 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_REEDS_SHEPP_HH
20 # define HPP_CORE_DISTANCE_REEDS_SHEPP_HH
21 
22 # include <hpp/core/distance.hh>
24 
25 namespace hpp {
26  namespace core {
27  namespace distance {
30 
35  class HPP_CORE_DLLAPI ReedsShepp : public Distance
36  {
37  public:
38  virtual DistancePtr_t clone () const;
39  static ReedsSheppPtr_t create (const Problem& problem);
40  static ReedsSheppPtr_t create (const Problem& problem,
41  const value_type& turningRadius,
42  JointPtr_t xyJoint, JointPtr_t rzJoint);
43 
44  static ReedsSheppPtr_t createCopy (const ReedsSheppPtr_t& distance);
45  protected:
46  ReedsShepp (const Problem& problem);
47  ReedsShepp (const Problem& problem,
48  const value_type& turningRadius,
49  JointPtr_t xyJoint, JointPtr_t rzJoint);
50  ReedsShepp (const ReedsShepp& distance);
51 
53  virtual value_type impl_distance (ConfigurationIn_t q1,
54  ConfigurationIn_t q2) const;
55  void init (const ReedsSheppWkPtr_t& weak);
56  private:
58  ReedsSheppWkPtr_t weak_;
59  }; // class ReedsShepp
61  } // namespace distance
62  } // namespace core
63 } // namespace hpp
64 #endif // HPP_CORE_DISTANCE_REEDS_SHEPP_HH
pinocchio::ConfigurationIn_t ConfigurationIn_t
Definition: fwd.hh:97
Definition: problem.hh:48
boost::shared_ptr< ReedsShepp > ReedsSheppPtr_t
Definition: fwd.hh:322
ObjectFactory * create(ObjectFactory *parent=NULL, const XMLElement *element=NULL)
pinocchio::JointPtr_t JointPtr_t
Definition: fwd.hh:133
Definition: reeds-shepp.hh:35
pinocchio::value_type value_type
Definition: fwd.hh:157
boost::shared_ptr< ReedsShepp > ReedsSheppPtr_t
Definition: fwd.hh:251
boost::shared_ptr< Distance > DistancePtr_t
Definition: fwd.hh:122
Abstract class for distance between configurations.
Definition: distance.hh:33
FCL_REAL distance(const KDOP< N > &other, Vec3f *P=NULL, Vec3f *Q=NULL) const