3#include "../navtypes.h"
4#include "../utils/time.h"
5#include "../world_interface/data.h"
6#include "CommandBase.h"
32 double slowDriveThresh,
double doneThresh,
33 util::dseconds closeToTargetDur);
61 navtypes::point_t target;
62 navtypes::pose_t pose;
65 double slowDriveThresh;
67 bool setStateCalledBeforeOutput;
68 util::dseconds closeToTargetDur;
69 std::optional<robot::types::datatime_t> lastRecordedTime;
70 std::optional<robot::types::datatime_t> closeToTargetStartTime;
Definition CommandBase.h:10
void setState(const navtypes::pose_t &pose, robot::types::datatime_t time)
Must be called before getOutput() for each iteration.
Definition DriveToWaypointCommand.cpp:19
bool isDone() override
Returns whether the DriveToWaypointCommand has finished its navigation task.
Definition DriveToWaypointCommand.cpp:47
command_t getOutput() override
Gets the angular velocity and forward speed to run the robot at in order to navigate robot to target.
Definition DriveToWaypointCommand.cpp:26
DriveToWaypointCommand(const navtypes::point_t &target, double thetaKP, double driveVel, double slowDriveThresh, double doneThresh, util::dseconds closeToTargetDur)
Creates a new DriveToWaypointCommand with the specified targeting information.
Definition DriveToWaypointCommand.cpp:11
std::chrono::time_point< dataclock > datatime_t
A point in time as measured by dataclock.
Definition data.h:31
Definition CommandBase.h:5