|
Thunderbots Project
|
#include <primitive.h>

Public Member Functions | |
| virtual | ~Primitive ()=default |
| virtual std::pair< std::optional< TrajectoryPath >, std::unique_ptr< TbotsProto::Primitive > > | generatePrimitiveProtoMessage (const World &world, const std::set< TbotsProto::MotionConstraint > &motion_constraints, const std::map< RobotId, TrajectoryPath > &robot_trajectories, const RobotNavigationObstacleFactory &obstacle_factory)=0 |
| virtual void | getVisualizationProtos (TbotsProto::ObstacleList &obstacle_list_out, TbotsProto::PathVisualization &path_visualization_out) const =0 |
| double | getEstimatedPrimitiveCost () const |
Protected Attributes | |
| double | estimated_cost = 0 |
The primitive actions that a robot can perform
|
virtualdefault |
Destructor
|
pure virtual |
Gets the primitive proto message
| world | Current state of the world |
| motion_constraints | Motion constraints to consider |
| robot_trajectories | A map of the friendly robots' known trajectories |
| obstacle_factory | Obstacle factory to use for generating obstacles |
Implemented in MovePrimitive, and StopPrimitive.
|
inline |
Gets the estimated cost of the primitive
|
pure virtual |
Fill the obstacle list and path visualization with the obstacles and path of this primitive
| obstacle_list_out | Reference to the ObstacleList proto to add obstacles to |
| path_visualization_out | Reference to the PathVisualization proto to add path |
Implemented in MovePrimitive, and StopPrimitive.