Skip to content

Commit 89b596a

Browse files
committed
[loops] added compute_loops() (C++)
1 parent b178137 commit 89b596a

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/robotics/loops/codac_TPlane.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,12 @@ namespace codac
2121

2222
}
2323

24+
void TPlane::compute_loops(float precision, const TubeVector& p, const TubeVector& v)
25+
{
26+
compute_detections(precision, p, v, true, true);
27+
compute_proofs(p, v);
28+
}
29+
2430
void TPlane::compute_detections(float precision, const TubeVector& p)
2531
{
2632
compute_detections(precision, p, p, false, true);

src/robotics/loops/codac_TPlane.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,16 @@ namespace codac
5151
*/
5252
TPlane(const Interval& tdomain);
5353

54+
/**
55+
* \brief Computes the loops (detections and proofs) as a subpaving, from the tube of
56+
* positions \f$[\mathbf{p}](\cdot)\f$ and the tube of velocities \f$[\mathbf{v}](\cdot)\f$.
57+
*
58+
* \param precision precision \f$\epsilon\f$ of the SIVIA approximation
59+
* \param p 2d TubeVector \f$[\mathbf{p}](\cdot)\f$ for positions
60+
* \param v 2d TubeVector \f$[\mathbf{v}](\cdot)\f$ for velocities
61+
*/
62+
void compute_loops(float precision, const TubeVector& p, const TubeVector& v);
63+
5464
/**
5565
* \brief Computes this tplane as a subpaving, from the tube of positions \f$[\mathbf{p}](\cdot)\f$ only.
5666
*

0 commit comments

Comments
 (0)