COPP C++ API
C++ interface for COPP trajectory optimization
Loading...
Searching...
No Matches
copp::objective Namespace Reference

Python-like factory namespace for constructing COPP objective descriptors such as time, linear, thermal-energy, and torque-variation costs. More...

Functions

Objective Time (double weight=1.0)
Objective Linear (double weight, Span< const double > alpha, Span< const double > beta)
Objective Linear (double weight, std::initializer_list< double > alpha, std::initializer_list< double > beta)
Objective ThermalEnergy (double weight, Span< const double > normalize)
Objective ThermalEnergy (double weight, std::initializer_list< double > normalize)
Objective TotalVariationTorque (double weight, Span< const double > normalize)
Objective TotalVariationTorque (double weight, std::initializer_list< double > normalize)

Detailed Description

Python-like factory namespace for constructing COPP objective descriptors such as time, linear, thermal-energy, and torque-variation costs.

Python-like objective factory namespace.

Example:

auto objectives = std::vector<copp::Objective>{
};
Objective ThermalEnergy(double weight, Span< const double > normalize)
Objective Time(double weight=1.0)

Function Documentation

◆ Time()

Objective copp::objective::Time ( double weight = 1.0)
inline

Definition at line 168 of file objective.hpp.

◆ Linear() [1/2]

Objective copp::objective::Linear ( double weight,
Span< const double > alpha,
Span< const double > beta )
inline

Definition at line 173 of file objective.hpp.

◆ Linear() [2/2]

Objective copp::objective::Linear ( double weight,
std::initializer_list< double > alpha,
std::initializer_list< double > beta )
inline

Definition at line 181 of file objective.hpp.

◆ ThermalEnergy() [1/2]

Objective copp::objective::ThermalEnergy ( double weight,
Span< const double > normalize )
inline

Definition at line 189 of file objective.hpp.

◆ ThermalEnergy() [2/2]

Objective copp::objective::ThermalEnergy ( double weight,
std::initializer_list< double > normalize )
inline

Definition at line 194 of file objective.hpp.

◆ TotalVariationTorque() [1/2]

Objective copp::objective::TotalVariationTorque ( double weight,
Span< const double > normalize )
inline

Definition at line 199 of file objective.hpp.

◆ TotalVariationTorque() [2/2]

Objective copp::objective::TotalVariationTorque ( double weight,
std::initializer_list< double > normalize )
inline

Definition at line 204 of file objective.hpp.