◆ GeomObstacle()
template<typename GEOM_TYPE >
Construct a static GeomObstacle with GEOM_TYPE
- Parameters
-
| geom | GEOM_TYPE to make obstacle with |
◆ accept()
template<typename GEOM_TYPE >
Accepts an Obstacle Visitor and calls the visit function
- Parameters
-
Implements Obstacle.
◆ axisAlignedBoundingBox()
template<typename GEOM_TYPE >
| Rectangle axisAlignedBoundingBox |
( |
double |
inflation_radius = 0 | ) |
const |
|
overridevirtual |
Create the axis aligned bounding box for this obstacle
- Parameters
-
| inflation_radius | The radius to inflate the obstacle by before creating the AABB |
- Returns
- Rectangle representing the axis aligned bounding box
Implements Obstacle.
◆ closestPoint()
template<typename GEOM_TYPE >
Finds the Point closest to the given Point that is outside of the obstacle.
- Parameters
-
- Returns
- the Point on polygon closest to point.
Implements Obstacle.
◆ contains()
template<typename GEOM_TYPE >
| bool contains |
( |
const Point & |
p, |
|
|
const double |
t_sec = 0 |
|
) |
| const |
|
overridevirtual |
◆ createObstacleProto()
template<typename GEOM_TYPE >
| TbotsProto::Obstacle createObstacleProto |
( |
| ) |
const |
|
overridevirtual |
Creates an obstacle proto representation
- Returns
- the obstacle proto
Implements Obstacle.
◆ distance()
template<typename GEOM_TYPE >
| double distance |
( |
const Point & |
p, |
|
|
const double |
t_sec = 0 |
|
) |
| const |
|
overridevirtual |
Gets the minimum distance from the obstacle to the point
- Parameters
-
| p | Point to get distance to |
| t_sec | Time in seconds into the future to get distance to. |
- Returns
- distance to point
Implements Obstacle.
Reimplemented in TrajectoryObstacle< GEOM_TYPE >.
◆ getGeom()
template<typename GEOM_TYPE >
| const GEOM_TYPE getGeom |
( |
void |
| ) |
const |
Gets the underlying GEOM_TYPE
- Returns
- geom type
◆ intersects()
template<typename GEOM_TYPE >
| bool intersects |
( |
const Segment & |
segment, |
|
|
const double |
t_sec = 0 |
|
) |
| const |
|
overridevirtual |
◆ rasterize()
template<typename GEOM_TYPE >
| std::vector< Point > rasterize |
( |
const double |
resolution_size | ) |
const |
|
overridevirtual |
Determines what coordinates on the field are blocked by this Obstacle
- Parameters
-
| resolution_size | The minimum size of the grid cells to rasterize the obstacle into |
- Returns
- a set of points covered by this Obstacle
Implements Obstacle.
◆ signedDistance()
template<typename GEOM_TYPE >
| double signedDistance |
( |
const Point & |
point, |
|
|
const double |
t_sec = 0 |
|
) |
| const |
|
overridevirtual |
Gets the signed distance from the obstacle's perimeter to the point. That is, if point is inside the obstacle then distance will be negative. See https://iquilezles.org/articles/distfunctions2d/ for details on the maths
- Parameters
-
| point | Point to get distance to |
| t_sec | Time in seconds into the future to get distance to. |
- Returns
- distance from point to nearest point on perimeter of obstacle. Positive if outside, negative if inside
Implements Obstacle.
Reimplemented in TrajectoryObstacle< GEOM_TYPE >.
◆ toString()
template<typename GEOM_TYPE >
| std::string toString |
( |
void |
| ) |
const |
|
overridevirtual |
Output string to describe the obstacle
- Returns
- string that describes the obstacle
Implements Obstacle.
The documentation for this class was generated from the following file: