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

#include <trajectory_path_with_cost.h>

Collaboration diagram for TrajectoryPathWithCost:

Public Member Functions

 TrajectoryPathWithCost (const TrajectoryPath &traj_path)
 
bool collides () const
 

Public Attributes

TrajectoryPath traj_path
 
double collision_duration_front_s = 0.0
 
double collision_duration_back_s = 0.0
 
double first_collision_time_s = std::numeric_limits<double>::max()
 
ObstaclePtr colliding_obstacle = nullptr
 
double cost = 0.0
 

Detailed Description

A wrapper around TrajectoryPath for holding additional information about the cost of the trajectory path

Member Function Documentation

◆ collides()

bool collides ( ) const

Returns true if the trajectory collides with an obstacle

Returns
true if the trajectory collides with an obstacle

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