#include <trajopt/constraint/point_at_constraint.hpp>
|
| | PointAtConstraint (Translation2d field_point, double heading_tolerance, bool flip=false) |
| 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-at constraint.
Specifies a point on the field at which the robot should point.
◆ PointAtConstraint()
| trajopt::PointAtConstraint::PointAtConstraint |
( |
Translation2d | field_point, |
|
|
double | heading_tolerance, |
|
|
bool | flip = false ) |
|
inlineexplicit |
Constructs a PointAtConstraint.
- Parameters
-
| field_point | Field point. |
| heading_tolerance | The allowed robot heading tolerance (radians). Must be nonnegative. |
| flip | Whether to point away from the field point. |
◆ apply()
| void trajopt::PointAtConstraint::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
-
| 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. |
The documentation for this class was generated from the following file: