|
| 1 | +#ifndef AIKIDO_PLANNER_SNAPPLANNER_HPP_ |
| 2 | +#define AIKIDO_PLANNER_SNAPPLANNER_HPP_ |
| 3 | + |
| 4 | +#include <memory> |
| 5 | +#include "aikido/common/deprecated.hpp" |
| 6 | +#include "aikido/constraint/Testable.hpp" |
| 7 | +#include "aikido/planner/PlanningResult.hpp" |
| 8 | +#include "aikido/statespace/Interpolator.hpp" |
| 9 | +#include "aikido/statespace/StateSpace.hpp" |
| 10 | +#include "aikido/trajectory/Interpolated.hpp" |
| 11 | + |
| 12 | +namespace aikido { |
| 13 | +namespace planner { |
| 14 | + |
| 15 | +/// Plan a trajectory from \c startState to \c goalState by using |
| 16 | +/// \c interpolator to interpolate between them. The planner returns success if |
| 17 | +/// the resulting trajectory satisfies \c constraint at some resolution and |
| 18 | +/// failure (returning \c nullptr) otherwise. The reason for the failure is |
| 19 | +/// stored in the \c planningResult output parameter. |
| 20 | +/// |
| 21 | +/// \param stateSpace state space |
| 22 | +/// \param startState start state |
| 23 | +/// \param goalState goal state |
| 24 | +/// \param interpolator interpolator used to produce the output trajectory |
| 25 | +/// \param constraint trajectory-wide constraint that must be satisfied |
| 26 | +/// \param[out] planningResult information about success or failure |
| 27 | +/// \return trajectory or \c nullptr if planning failed |
| 28 | +/// |
| 29 | +/// \deprecated Deprecated in 0.3. Please use |
| 30 | +/// SnapConfigurationToConfigurationPlanner instead. |
| 31 | +AIKIDO_DEPRECATED(0.3) |
| 32 | +trajectory::InterpolatedPtr planSnap( |
| 33 | + const statespace::ConstStateSpacePtr& stateSpace, |
| 34 | + const statespace::StateSpace::State* startState, |
| 35 | + const statespace::StateSpace::State* goalState, |
| 36 | + const std::shared_ptr<statespace::Interpolator>& interpolator, |
| 37 | + const std::shared_ptr<constraint::Testable>& constraint, |
| 38 | + planner::PlanningResult& planningResult); |
| 39 | + |
| 40 | +} // namespace planner |
| 41 | +} // namespace aikido |
| 42 | + |
| 43 | +#endif // AIKIDO_PLANNER_SNAPPLANNER_HPP_ |
0 commit comments