scenario_simulator_v2 C++ API
|
#include <gtest/gtest.h>
#include <geometry/spline/hermite_curve.hpp>
#include "../expect_eq_macros.hpp"
#include "../test_utils.hpp"
Functions | |
math::geometry::HermiteCurve | makeLine1 () |
Helper function generating straight line: p(0,0) v(1,0)-> p(1,0) v(1,0) More... | |
math::geometry::HermiteCurve | makeLine2 () |
Helper function generating straight line: p(0,0) v(1,1)-> p(2,2) v(1,1) More... | |
math::geometry::HermiteCurve | makeCurve1 (bool concave_upward=true) |
Helper function generating curve: p(0,0) v(1,0)-> p(1,1) v(0,1) More... | |
math::geometry::HermiteCurve | makeCurve2 () |
Helper function generating curve: p(0,0) v(1,0)-> p(1,-1) v(0,-1) More... | |
math::geometry::HermiteCurve | makeCurve3 () |
Helper function generating curve: p(1,1) v(0,-1)-> p(0,0) v(-1,0) More... | |
math::geometry::HermiteCurve | makeCurve4 () |
Helper function generating curve: p(1,-1) v(0,1)-> p(0,0) v(-1,0) More... | |
void | generateReferenceTrajectory (double start_x, double start_y, double increment_x, double increment_y, std::vector< geometry_msgs::msg::Point > &vec, unsigned int start_idx=0u) |
Helper function generating a reference trajectory for testing. More... | |
TEST (HermiteCurveTest, initializationLine) | |
TEST (HermiteCurveTest, initializationCurve) | |
TEST (HermiteCurveTest, initializationParams) | |
TEST (HermiteCurveTest, getTrajectoryZero) | |
TEST (HermiteCurveTest, getTrajectory) | |
TEST (HermiteCurveTest, getTrajectoryReversed) | |
TEST (HermiteCurveTest, getTrajectoryPast1) | |
TEST (HermiteCurveTest, getTrajectoryPast2) | |
TEST (HermiteCurveTest, getPointLine) | |
TEST (HermiteCurveTest, getPointCurve) | |
TEST (HermiteCurveTest, get2DCurvatureLine) | |
TEST (HermiteCurveTest, get2DCurvatureCurve) | |
TEST (HermiteCurveTest, getMaximum2DCurvatureLine) | |
TEST (HermiteCurveTest, getMaximum2DCurvatureCurve) | |
TEST (HermiteCurveTest, getLengthNoParameter) | |
TEST (HermiteCurveTest, getLengthParameter) | |
TEST (HermiteCurveTest, getSValue) | |
TEST (HermiteCurveTest, getSValueDenormalized) | |
TEST (HermiteCurveTest, getSquaredDistanceIn2D) | |
TEST (HermiteCurveTest, getSquaredDistanceIn2DZeroDistance) | |
TEST (HermiteCurveTest, getSquaredDistanceVector) | |
TEST (HermiteCurveTest, getSquaredDistanceVectorZeroDistance) | |
TEST (HermiteCurveTest, getCollisionPointIn2DLine) | |
TEST (HermiteCurveTest, getCollisionPointIn2DLineNoCollision) | |
TEST (HermiteCurveTest, getCollisionPointIn2DCurve) | |
TEST (HermiteCurveTest, getCollisionPointIn2DCurveEdge) | |
TEST (HermiteCurveTest, getCollisionPointIn2DVectorWrongCases) | |
TEST (HermiteCurveTest, getCollisionPointIn2DVectorOneCollision) | |
TEST (HermiteCurveTest, getCollisionPointIn2DVectorMultipleCollisions) | |
TEST (HermiteCurveTest, getTangentVector1) | |
TEST (HermiteCurveTest, getTangentVector2) | |
TEST (HermiteCurveTest, getTangentVector3) | |
TEST (HermiteCurveTest, getTangentVector4) | |
TEST (HermiteCurveTest, getTangentVectorDenormalized1) | |
TEST (HermiteCurveTest, getTangentVectorDenormalized2) | |
TEST (HermiteCurveTest, getTangentVectorDenormalized3) | |
TEST (HermiteCurveTest, getTangentVectorDenormalized4) | |
TEST (HermiteCurveTest, getNormalVector1) | |
TEST (HermiteCurveTest, getNormalVector2) | |
TEST (HermiteCurveTest, getNormalVector3) | |
TEST (HermiteCurveTest, getNormalVector4) | |
TEST (HermiteCurveTest, getNormalVectorDenormalized1) | |
TEST (HermiteCurveTest, getNormalVectorDenormalized2) | |
TEST (HermiteCurveTest, getNormalVectorDenormalized3) | |
TEST (HermiteCurveTest, getNormalVectorDenormalized4) | |
int | main (int argc, char **argv) |
Variables | |
constexpr double | EPS = 1e-3 |
void generateReferenceTrajectory | ( | double | start_x, |
double | start_y, | ||
double | increment_x, | ||
double | increment_y, | ||
std::vector< geometry_msgs::msg::Point > & | vec, | ||
unsigned int | start_idx = 0u |
||
) |
Helper function generating a reference trajectory for testing.
start_x | starting X position |
start_y | starting Y position |
increment_x | increment over X axis on every step |
increment_y | increment over Y axis on every step |
vec | vector container to generate a reference trajectory in (has to be the size of desired trajectory) |
start_idx | index from which to start |
int main | ( | int | argc, |
char ** | argv | ||
) |
math::geometry::HermiteCurve makeCurve1 | ( | bool | concave_upward = true | ) |
Helper function generating curve: p(0,0) v(1,0)-> p(1,1) v(0,1)
math::geometry::HermiteCurve makeCurve2 | ( | ) |
Helper function generating curve: p(0,0) v(1,0)-> p(1,-1) v(0,-1)
math::geometry::HermiteCurve makeCurve3 | ( | ) |
Helper function generating curve: p(1,1) v(0,-1)-> p(0,0) v(-1,0)
math::geometry::HermiteCurve makeCurve4 | ( | ) |
Helper function generating curve: p(1,-1) v(0,1)-> p(0,0) v(-1,0)
math::geometry::HermiteCurve makeLine1 | ( | ) |
Helper function generating straight line: p(0,0) v(1,0)-> p(1,0) v(1,0)
math::geometry::HermiteCurve makeLine2 | ( | ) |
Helper function generating straight line: p(0,0) v(1,1)-> p(2,2) v(1,1)
TEST | ( | HermiteCurveTest | , |
get2DCurvatureCurve | |||
) |
TEST | ( | HermiteCurveTest | , |
get2DCurvatureLine | |||
) |
TEST | ( | HermiteCurveTest | , |
getCollisionPointIn2DCurve | |||
) |
TEST | ( | HermiteCurveTest | , |
getCollisionPointIn2DCurveEdge | |||
) |
TEST | ( | HermiteCurveTest | , |
getCollisionPointIn2DLine | |||
) |
TEST | ( | HermiteCurveTest | , |
getCollisionPointIn2DLineNoCollision | |||
) |
TEST | ( | HermiteCurveTest | , |
getCollisionPointIn2DVectorMultipleCollisions | |||
) |
TEST | ( | HermiteCurveTest | , |
getCollisionPointIn2DVectorOneCollision | |||
) |
TEST | ( | HermiteCurveTest | , |
getCollisionPointIn2DVectorWrongCases | |||
) |
TEST | ( | HermiteCurveTest | , |
getLengthNoParameter | |||
) |
TEST | ( | HermiteCurveTest | , |
getLengthParameter | |||
) |
TEST | ( | HermiteCurveTest | , |
getMaximum2DCurvatureCurve | |||
) |
TEST | ( | HermiteCurveTest | , |
getMaximum2DCurvatureLine | |||
) |
TEST | ( | HermiteCurveTest | , |
getNormalVector1 | |||
) |
TEST | ( | HermiteCurveTest | , |
getNormalVector2 | |||
) |
TEST | ( | HermiteCurveTest | , |
getNormalVector3 | |||
) |
TEST | ( | HermiteCurveTest | , |
getNormalVector4 | |||
) |
TEST | ( | HermiteCurveTest | , |
getNormalVectorDenormalized1 | |||
) |
TEST | ( | HermiteCurveTest | , |
getNormalVectorDenormalized2 | |||
) |
TEST | ( | HermiteCurveTest | , |
getNormalVectorDenormalized3 | |||
) |
TEST | ( | HermiteCurveTest | , |
getNormalVectorDenormalized4 | |||
) |
TEST | ( | HermiteCurveTest | , |
getPointCurve | |||
) |
TEST | ( | HermiteCurveTest | , |
getPointLine | |||
) |
TEST | ( | HermiteCurveTest | , |
getSquaredDistanceIn2D | |||
) |
TEST | ( | HermiteCurveTest | , |
getSquaredDistanceIn2DZeroDistance | |||
) |
TEST | ( | HermiteCurveTest | , |
getSquaredDistanceVector | |||
) |
TEST | ( | HermiteCurveTest | , |
getSquaredDistanceVectorZeroDistance | |||
) |
TEST | ( | HermiteCurveTest | , |
getSValue | |||
) |
TEST | ( | HermiteCurveTest | , |
getSValueDenormalized | |||
) |
TEST | ( | HermiteCurveTest | , |
getTangentVector1 | |||
) |
TEST | ( | HermiteCurveTest | , |
getTangentVector2 | |||
) |
TEST | ( | HermiteCurveTest | , |
getTangentVector3 | |||
) |
TEST | ( | HermiteCurveTest | , |
getTangentVector4 | |||
) |
TEST | ( | HermiteCurveTest | , |
getTangentVectorDenormalized1 | |||
) |
TEST | ( | HermiteCurveTest | , |
getTangentVectorDenormalized2 | |||
) |
TEST | ( | HermiteCurveTest | , |
getTangentVectorDenormalized3 | |||
) |
TEST | ( | HermiteCurveTest | , |
getTangentVectorDenormalized4 | |||
) |
TEST | ( | HermiteCurveTest | , |
getTrajectory | |||
) |
TEST | ( | HermiteCurveTest | , |
getTrajectoryPast1 | |||
) |
TEST | ( | HermiteCurveTest | , |
getTrajectoryPast2 | |||
) |
TEST | ( | HermiteCurveTest | , |
getTrajectoryReversed | |||
) |
TEST | ( | HermiteCurveTest | , |
getTrajectoryZero | |||
) |
TEST | ( | HermiteCurveTest | , |
initializationCurve | |||
) |
TEST | ( | HermiteCurveTest | , |
initializationLine | |||
) |
TEST | ( | HermiteCurveTest | , |
initializationParams | |||
) |
|
constexpr |