00001 // Copyright (C) 2006 University of Louisiana at Lafayette 00002 // Authors: Suresh Golconda, 00003 00004 #ifndef CAJUN_SPLINE_INTERPOLATOR_H 00005 #define CAJUN_SPLINE_INTERPOLATOR_H 00006 00007 #include "uniform_path.H" 00008 #include "base_path_interpolator.H" 00009 #include <vector> 00010 00011 namespace cajun 00012 { 00013 class spline_interpolator_t: public base_path_interpolator_t 00014 { 00015 private: 00016 std::vector<waypoint_t> controlPoints; 00017 waypoint_t para_points[2]; 00018 00019 void get_para_points (int s_i); 00020 public: 00021 spline_interpolator_t (); 00022 void interpolate (path_data_t const &input_points, 00023 std::vector<waypoint_t> &splinepoints); 00024 }; 00025 } 00026 #endif