|
Fang-Robotics-MCB
Fang Robotics Team Codebase
|
#include <base_robot.hpp>


Public Types | |
| using | Subsystems = std::vector< std::unique_ptr< tap::control::Subsystem > > |
| using | CommandPacks = std::vector< std::unique_ptr< command::CommandPack > > |
Public Member Functions | |
| BaseRobot (tap::control::CommandScheduler &commandScheduler, Subsystems &&subsystems, CommandPacks &&commandPacks) | |
| BaseRobot (BaseRobot &&baseRobot) | |
| virtual void | initialize () override |
| virtual void | update () |
| Not virtual so that it can be passed around in maker functions. | |
Public Member Functions inherited from fang::robot::IRobot | |
| virtual | ~IRobot () |
Protected Member Functions | |
| void | registerSubsystems () |
| void | initializeSubsystems () |
| void | initializeCommandPacks () |
All a robot does is manage subsystems and commands
| using fang::robot::BaseRobot::CommandPacks = std::vector<std::unique_ptr<command::CommandPack> > |
| using fang::robot::BaseRobot::Subsystems = std::vector<std::unique_ptr<tap::control::Subsystem> > |
| fang::robot::BaseRobot::BaseRobot | ( | tap::control::CommandScheduler & | commandScheduler, |
| Subsystems && | subsystems, | ||
| CommandPacks && | commandPacks | ||
| ) |
The base robot will take ownership of the information
| fang::robot::BaseRobot::BaseRobot | ( | BaseRobot && | baseRobot | ) |
This will make it a lot easier to utilize maker functions
|
overridevirtual |
Reimplemented in fang::robot::Pierce, and fang::robot::Slice.
|
protected |
|
protected |
|
protected |
|
inlinevirtual |
Not virtual so that it can be passed around in maker functions.
Reimplemented in fang::robot::PierceAutoTest, fang::robot::Pierce, and fang::robot::Slice.