Thunderbots Project
Loading...
Searching...
No Matches
TrajectoryPlanner Class Reference

Public Member Functions

 TrajectoryPlanner ()
 
std::optional< TrajectoryPathfindTrajectory (const Point &start, const Point &destination, const Vector &initial_velocity, const KinematicConstraints &constraints, const std::vector< ObstaclePtr > &obstacles, const Rectangle &navigable_area, const std::optional< Point > &prev_sub_destination=std::nullopt)
 

Constructor & Destructor Documentation

◆ TrajectoryPlanner()

Constructor

Member Function Documentation

◆ findTrajectory()

std::optional< TrajectoryPath > findTrajectory ( const Point start,
const Point destination,
const Vector initial_velocity,
const KinematicConstraints constraints,
const std::vector< ObstaclePtr > &  obstacles,
const Rectangle navigable_area,
const std::optional< Point > &  prev_sub_destination = std::nullopt 
)

Find a trajectory from the start position to the destination which attempts to avoid the list of obstacles.

Parameters
startStart position of the trajectory
destinationDestination of the trajectory
initial_velocityInitial velocity of the trajectory
constraintsKinematic constraints of the trajectory
obstaclesList of obstacles to avoid
navigable_areaThe navigable area of the field
prev_sub_destinationThe previous sub destination of this robot. nullopt if there is no previous sub destination
Returns
TrajectoryPath which attempts to avoid the obstacles

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