|
TrajoptLib
Library for generating time-optimal trajectories for FRC robots.
|
#include <trajopt/constraint/point_line_region_constraint.hpp>
Public Member Functions | |
| PointLineRegionConstraint (Translation2d robot_point, Translation2d field_line_start, Translation2d field_line_end, Side side) | |
| void | apply (slp::Problem< double > &problem, const Pose2v< double > &pose, const Translation2v< double > &linear_velocity, const slp::Variable< double > &angular_velocity, const Translation2v< double > &linear_acceleration, const slp::Variable< double > &angular_acceleration) |
Point-line region constraint.
Specifies that a point on the robot must be on one side of a line defined by two points on the field
|
inlineexplicit |
Constructs a PointLineRegionConstraint.
| robot_point | Robot point. |
| field_line_start | Field line start. |
| field_line_end | Field line end. |
| side | The side to constrain the robot to. |
|
inline |
Applies this constraint to the given problem.
| problem | The optimization problem. |
| pose | The robot's pose. |
| linear_velocity | The robot's linear velocity. |
| angular_velocity | The robot's angular velocity. |
| linear_acceleration | The robot's linear acceleration. |
| angular_acceleration | The robot's angular acceleration. |