Formula Student Autonomous Systems
The code for the main driverless system
Loading...
Searching...
No Matches
track_loader.hpp
Go to the documentation of this file.
1#ifndef TRACKLOADER_HPP
2#define TRACKLOADER_HPP
3
4#include <Eigen/Dense>
5#include <ament_index_cpp/get_package_prefix.hpp>
6#include <rclcpp/rclcpp.hpp>
7#include <string>
8#include <vector>
9
10#include "yaml-cpp/yaml.h"
11
12using namespace YAML;
13
21Node get_child_node(Node parentNode, std::string tag);
22
29void add_landmarks(Eigen::VectorXd& track, const Node& list);
30
38void load_initial_state(std::string mapPath, Eigen::Vector3d& start_pose, Eigen::VectorXd& track);
39
46void load_acceleration_track(Eigen::Vector3d& start_pose, Eigen::VectorXd& track);
47
54void load_skidpad_track(Eigen::Vector3d& start_pose, Eigen::VectorXd& track);
55
62void transform_track(Eigen::VectorXd& track, Eigen::Vector3d& start_pose);
63
64#endif /* TRACKLOADER_HPP */
void load_initial_state(std::string mapPath, Eigen::Vector3d &start_pose, Eigen::VectorXd &track)
loads the map from the specified path and fills the start pose and track.
void load_acceleration_track(Eigen::Vector3d &start_pose, Eigen::VectorXd &track)
loads the acceleration track from the default path.
void transform_track(Eigen::VectorXd &track, Eigen::Vector3d &start_pose)
Transforms the track as seen from the start pose.
void add_landmarks(Eigen::VectorXd &track, const Node &list)
adds the landmarks in the list to the track.
void load_skidpad_track(Eigen::Vector3d &start_pose, Eigen::VectorXd &track)
loads the skidpad track from the default path.
Node get_child_node(Node parentNode, std::string tag)
Get the child node from a parent node by tag.