1#ifndef SRC_PLANNING_INCLUDE_PLANNING_SKIDPAD_HPP_
2#define SRC_PLANNING_INCLUDE_PLANNING_SKIDPAD_HPP_
7#include <rclcpp/rclcpp.hpp>
37 std::vector<PathPoint>
skidpad_path(
const std::vector<Cone>& cone_array,
64 const std::vector<PathPoint>& path,
class that defines the skidpad path algorithm
std::vector< std::pair< double, double > > reference_cones_
Eigen::Matrix4f align_cones_with_icp(const std::vector< Cone > &cone_array)
Aligns detected cones with reference cones using ICP.
bool skidpad_data_loaded_
std::vector< PathPoint > predefined_path_
std::vector< PathPoint > skidpad_path(const std::vector< Cone > &cone_array, common_lib::structures::Pose pose)
Generate a path for skidpad course.
std::vector< PathPoint > hardcoded_path_
size_t find_closest_path_index(const std::vector< PathPoint > &path, const common_lib::structures::Pose &pose)
Finds the closest point index in a path to a given pose.
Skidpad(SkidpadConfig config)
Configuration parameters for the Skidpad class.
Struct for pose representation.