Thunderbots Project
Loading...
Searching...
No Matches
trajectory_path_node.h
1#pragma once
2
3#include <memory>
4
5#include "software/ai/navigator/trajectory/bang_bang_trajectory_2d.h"
6
14{
15 public:
21 TrajectoryPathNode(const std::shared_ptr<Trajectory2D> &trajectory,
22 double trajectory_end_time_s)
23 : trajectory(trajectory), trajectory_end_time_s(trajectory_end_time_s){};
24
30 TrajectoryPathNode(const std::shared_ptr<Trajectory2D> &trajectory)
31 : trajectory(trajectory), trajectory_end_time_s(trajectory->getTotalTime()){};
32
37 const std::shared_ptr<Trajectory2D> &getTrajectory() const
38 {
39 return trajectory;
40 }
41
46 const double &getTrajectoryEndTime() const
47 {
48 return trajectory_end_time_s;
49 }
50
55 void setTrajectoryEndTime(const double &new_end_time_sec)
56 {
57 trajectory_end_time_s = new_end_time_sec;
58 }
59
60 private:
61 std::shared_ptr<Trajectory2D> trajectory;
62 double trajectory_end_time_s;
63};
Definition trajectory_path_node.h:14
TrajectoryPathNode(const std::shared_ptr< Trajectory2D > &trajectory)
Definition trajectory_path_node.h:30
const std::shared_ptr< Trajectory2D > & getTrajectory() const
Definition trajectory_path_node.h:37
void setTrajectoryEndTime(const double &new_end_time_sec)
Definition trajectory_path_node.h:55
const double & getTrajectoryEndTime() const
Definition trajectory_path_node.h:46
TrajectoryPathNode(const std::shared_ptr< Trajectory2D > &trajectory, double trajectory_end_time_s)
Definition trajectory_path_node.h:21