Box Struct Reference

A box obstacle in the ground plane, optionally rotated about its own centre. More...

#include <armarx/navigation/applications/global_planning_analysis/Scene.h>

Public Member Functions

float distanceTo (const Eigen::Vector2f &p) const
 Distance from p to the box surface. Zero if p is inside the box.
 

Public Attributes

Eigen::Vector2f max
 
Eigen::Vector2f min
 
float yaw {0.F}
 Rotation about the box centre [rad].
 

Detailed Description

A box obstacle in the ground plane, optionally rotated about its own centre.

Definition at line 40 of file Scene.h.

Member Function Documentation

◆ distanceTo()

float distanceTo ( const Eigen::Vector2f & p) const

Distance from p to the box surface. Zero if p is inside the box.

Definition at line 68 of file Scene.cpp.

+ Here is the caller graph for this function:

Member Data Documentation

◆ max

Eigen::Vector2f max

Definition at line 44 of file Scene.h.

◆ min

Eigen::Vector2f min

Definition at line 42 of file Scene.h.

◆ yaw

float yaw {0.F}

Rotation about the box centre [rad].

Zero leaves the box axis-aligned, which is what a scene description without a yaw field means.

Real furniture is rarely axis-aligned, and enclosing a rotated table in its axis-aligned bounding box inflates it by up to 41% on the diagonal – which would show up directly in any clearance the evaluation reports.

Definition at line 52 of file Scene.h.


The documentation for this struct was generated from the following files: