maliput
Bulb::BoundingBox Struct Reference

Detailed Description

Defines the bounding box of the bulb.

The bounding box's corners are interpreted as follows: Given two points, p_BMin and p_BMax), these are points in the bulb's frame B, such that the former is the minimum corner of the axis-aligned bounding box, and the latter is the maximum corner. The box should have the minimum volume needed to fully enclose the bulb.

#include <include/maliput/api/rules/traffic_lights.h>

Public Member Functions

 BoundingBox ()
 The default constructor creates a bounding box based on the approximate dimensions of a bulb with a 12" lens, as shown by the following website: https://www.oksolar.com/images/signal_dimensions_large.jpg. More...
 

Public Attributes

maliput::math::Vector3 p_BMin
 
maliput::math::Vector3 p_BMax
 

Constructor & Destructor Documentation

◆ BoundingBox()

The default constructor creates a bounding box based on the approximate dimensions of a bulb with a 12" lens, as shown by the following website: https://www.oksolar.com/images/signal_dimensions_large.jpg.

These dimensions are 14" (0.356m) tall, 14" (0.356m) wide, and 7" (0.177m) deep. Note that the visor is not included as part of the depth since it is relatively thin and typically not obviously visible to approaching vehicles. Assuming the bulb frame's origin is in the middle of the light bulb's body, the bounding box has a p_BMin of (-3.5", -7", -7") and a `p_BMax` of (3.5", 7", 7"). In metric units, this is a p_BMin of (-0.0889m, -0.1778m, -0.1778m) and a p_BMax of (0.0889m, 0.1778m, 0.1778m).

Member Data Documentation

◆ p_BMax

◆ p_BMin


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