Skip to content

Commit

Permalink
[loops] added compute_loops() (C++)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonRohou committed Feb 22, 2021
1 parent b178137 commit 89b596a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/robotics/loops/codac_TPlane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ namespace codac

}

void TPlane::compute_loops(float precision, const TubeVector& p, const TubeVector& v)
{
compute_detections(precision, p, v, true, true);
compute_proofs(p, v);
}

void TPlane::compute_detections(float precision, const TubeVector& p)
{
compute_detections(precision, p, p, false, true);
Expand Down
10 changes: 10 additions & 0 deletions src/robotics/loops/codac_TPlane.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ namespace codac
*/
TPlane(const Interval& tdomain);

/**
* \brief Computes the loops (detections and proofs) as a subpaving, from the tube of
* positions \f$[\mathbf{p}](\cdot)\f$ and the tube of velocities \f$[\mathbf{v}](\cdot)\f$.
*
* \param precision precision \f$\epsilon\f$ of the SIVIA approximation
* \param p 2d TubeVector \f$[\mathbf{p}](\cdot)\f$ for positions
* \param v 2d TubeVector \f$[\mathbf{v}](\cdot)\f$ for velocities
*/
void compute_loops(float precision, const TubeVector& p, const TubeVector& v);

/**
* \brief Computes this tplane as a subpaving, from the tube of positions \f$[\mathbf{p}](\cdot)\f$ only.
*
Expand Down

0 comments on commit 89b596a

Please sign in to comment.