scenario_simulator_v2 C++ API
Public Member Functions | List of all members
math::geometry::CatmullRomSubspline Class Reference

#include <catmull_rom_subspline.hpp>

Inheritance diagram for math::geometry::CatmullRomSubspline:
Inheritance graph
[legend]
Collaboration diagram for math::geometry::CatmullRomSubspline:
Collaboration graph
[legend]

Public Member Functions

 ~CatmullRomSubspline () override=default
 
 CatmullRomSubspline (std::shared_ptr< math::geometry::CatmullRomSpline > spline, const double start_s, const double end_s)
 
double getLength () const override
 
std::optional< double > getCollisionPointIn2D (const std::vector< geometry_msgs::msg::Point > &polygon, const bool search_backward=false) const override
 
- Public Member Functions inherited from math::geometry::CatmullRomSplineInterface
virtual ~CatmullRomSplineInterface ()=default
 

Constructor & Destructor Documentation

◆ ~CatmullRomSubspline()

math::geometry::CatmullRomSubspline::~CatmullRomSubspline ( )
overridedefault

◆ CatmullRomSubspline()

math::geometry::CatmullRomSubspline::CatmullRomSubspline ( std::shared_ptr< math::geometry::CatmullRomSpline spline,
const double  start_s,
const double  end_s 
)
inlineexplicit

Member Function Documentation

◆ getCollisionPointIn2D()

std::optional< double > math::geometry::CatmullRomSubspline::getCollisionPointIn2D ( const std::vector< geometry_msgs::msg::Point > &  polygon,
const bool  search_backward = false 
) const
overridevirtual
Note
Make sure end is greater than start, otherwise the spline is invalid
Iterators for the range of this subspline
If begin == end there is no collision in the given range, or it is past the range If begin == s_value_candidates.end() all elements are less than start_s_ end == s_value_candidates.end() is valid, all elements are less than end_s_

Implements math::geometry::CatmullRomSplineInterface.

◆ getLength()

double math::geometry::CatmullRomSubspline::getLength ( ) const
overridevirtual

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