TrajoptLib
Library for generating time-optimal trajectories for FRC robots.
Loading...
Searching...
No Matches
trajopt::PointPointMinConstraint Class Reference

#include <trajopt/constraint/point_point_min_constraint.hpp>

Public Member Functions

 PointPointMinConstraint (Translation2d robot_point, Translation2d field_point, double min_distance)
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)

Detailed Description

Point-point minimum constraint.

Specifies the required minimum distance between a point on the robot's frame and a point on the field.

Constructor & Destructor Documentation

◆ PointPointMinConstraint()

trajopt::PointPointMinConstraint::PointPointMinConstraint ( Translation2d robot_point,
Translation2d field_point,
double min_distance )
inlineexplicit

Constructs a PointPointMinConstraint.

Parameters
robot_pointRobot point.
field_pointField point.
min_distanceMinimum distance between robot line and field point. Must be nonnegative.

Member Function Documentation

◆ apply()

void trajopt::PointPointMinConstraint::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 )
inline

Applies this constraint to the given problem.

Parameters
problemThe optimization problem.
poseThe robot's pose.
linear_velocityThe robot's linear velocity.
angular_velocityThe robot's angular velocity.
linear_accelerationThe robot's linear acceleration.
angular_accelerationThe robot's angular acceleration.

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