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;
36 bool equals(
const SimWall2D& other,
double tol=1e-9)
const;
40 Point2 b()
const {
return b_; }
54 bool intersects(
const SimWall2D& wall, boost::optional<Point2&> pt=boost::none)
const;
69 typedef std::vector<SimWall2D> SimWall2DVector;
86 const std::vector<SimWall2D> walls,
Sampler& angle_drift,
sampling from a NoiseModel
Global functions in a separate testing namespace.
Definition chartTesting.h:28
Vector2 Point2
As of GTSAM 4, in order to make GTSAM more lean, it is now possible to just typedef Point2 to Vector2...
Definition Point2.h:27
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)
Calculates the next pose in a trajectory constrained by walls, with noise on angular drift and reflec...
Definition SimWall2D.cpp:125
double distance2(const Point2 &p, const Point2 &q, OptionalJacobian< 1, 2 > H1, OptionalJacobian< 1, 2 > H2)
distance between two points
Definition Point2.cpp:39
A manifold defines a space in which there is a notion of a linear tangent space that can be centered ...
Definition concepts.h:30
A helper that implements the traits interface for GTSAM types.
Definition Testable.h:151
A 2D pose (Point2,Rot2).
Definition Pose2.h:36
Rotation matrix NOTE: the angle theta is in radians unless explicitly stated.
Definition Rot2.h:36
Sampling structure that keeps internal random number generators for diagonal distributions specified ...
Definition Sampler.h:31
General Wall class for walls defined around unordered endpoints Primarily to handle ray intersections...
Definition SimWall2D.h:19
Point2 a() const
access
Definition SimWall2D.h:39
SimWall2D(const Point2 &a, const Point2 &b)
constructors using endpoints
Definition SimWall2D.h:28
SimWall2D scale(double s) const
scales a wall to produce a new wall
Definition SimWall2D.h:43
double length() const
geometry
Definition SimWall2D.h:46
SimWall2D()
default constructor makes canonical wall
Definition SimWall2D.h:25