9 #include <gtsam_unstable/dllexport.h> 31 SimWall2D(
double ax,
double ay,
double bx,
double by)
32 : a_(ax, ay), b_(bx, by) {}
35 void print(
const std::string& s=
"")
const;
40 Point2 b()
const {
return b_; }
61 return intersects(wall, &pt);
77 typedef std::vector<SimWall2D> SimWall2DVector;
94 const std::vector<SimWall2D> walls,
Sampler& angle_drift,
SimWall2D scale(double s) const
Definition: SimWall2D.h:43
std::pair< Pose2, bool > moveWithBounce(const Pose2 &cur_pose, double step_size, const std::vector< SimWall2D > walls, Sampler &angle_drift, Sampler &reflect_noise, const Rot2 &bias=Rot2())
double length() const
Definition: SimWall2D.h:46
Definition: Testable.h:152
Vector2 Point2
Definition: Point2.h:32
Point2 a() const
Definition: SimWall2D.h:39
Definition: SimWall2D.h:19
Definition: Testable.h:112
SimWall2D()
Definition: SimWall2D.h:25
GTSAM_EXPORT void print(const Matrix &A, const std::string &s, std::ostream &stream)
SimWall2D(const Point2 &a, const Point2 &b)
Definition: SimWall2D.h:28
sampling from a NoiseModel
bool intersects(const SimWall2D &wall, Point2 &pt) const
Definition: SimWall2D.h:60
GTSAM_EXPORT double distance2(const Point2 &p1, const Point2 &q, OptionalJacobian< 1, 2 > H1={}, OptionalJacobian< 1, 2 > H2={})
distance between two points
Definition: chartTesting.h:28