RIT VEXU Core API
Loading...
Searching...
No Matches
RectangularRegionConstraint Class Reference

Enforces a TrajectoryConstraint only when the robot's translation falls within a specified 2D rectangular bounding box. More...

#include <rectangular_region_constraint.h>

Inheritance diagram for RectangularRegionConstraint:
TrajectoryConstraint

Public Member Functions

 RectangularRegionConstraint (const Translation2d &bottom_left, const Translation2d &top_right, const TrajectoryConstraint &constraint)
 Constructs a RectangularRegionConstraint.

Detailed Description

Enforces a TrajectoryConstraint only when the robot's translation falls within a specified 2D rectangular bounding box.

Constructor & Destructor Documentation

◆ RectangularRegionConstraint()

RectangularRegionConstraint::RectangularRegionConstraint ( const Translation2d & bottom_left,
const Translation2d & top_right,
const TrajectoryConstraint & constraint )
inline

Constructs a RectangularRegionConstraint.

Parameters
bottom_leftThe bottom-left coordinate of the bounding box.
top_rightThe top-right coordinate of the bounding box.
constraintThe child constraint to apply when inside the box.

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