Resurgence (PY2022)
Codebase for the Husky Robotics 2021-2022 rover Resurgence
Loading...
Searching...
No Matches
Globals.h
1#pragma once
2
3#include "control/PlanarArmController.h"
4#include "control/SwerveController.h"
5#include "kinematics/ArmKinematics.h"
6#include "kinematics/DiffWristKinematics.h"
7#include "network/websocket/WebSocketServer.h"
8#include "world_interface/data.h"
9
10#include <atomic>
11#include <vector>
12
16enum class RoverState {
17 RemoteControl,
18 DrivingToWaypoint,
19 LookingForTennisball,
20};
21
22// NOTE(sasha): To keep linker happy, declare globals with "extern" here and then
23// provide variable definition in Globals.cpp
24namespace Globals {
28extern RoverState curr_state;
29extern net::websocket::SingleClientWSServer websocketServer;
30extern std::atomic<bool> AUTONOMOUS;
31extern robot::types::mountedperipheral_t mountedPeripheral;
32extern control::PlanarArmController<2> planarArmController;
33extern const kinematics::DiffWristKinematics wristKinematics;
34extern control::SwerveController swerveController;
35extern std::atomic<bool> armIKEnabled;
36} // namespace Globals
mountedperipheral_t
the mounted peripheral on the robot.
Definition data.h:79