8#include <frc/geometry/Pose2d.h>
9#include <frc/geometry/Translation2d.h>
10#include <frc/geometry/Translation3d.h>
11#include <frc/spline/Spline.h>
12#include <units/angle.h>
13#include <units/length.h>
71 constexpr units::angle::degree_t
ReflectAngle(
const units::angle::degree_t sourceAngle) {
72 return sourceAngle * units::scalar_t{-1};
77 std::vector<T> retVal;
78 retVal.reserve(source.size());
80 source.begin(), source.end(), std::back_inserter(retVal), [](T val) { return ReflectFieldPoint(val); });
84 constexpr frc::Spline<3>::ControlVector
ReflectFieldPoint(
const frc::Spline<3>::ControlVector source) {
85 return frc::Spline<3>::ControlVector{
136 namespace charge_station {
144 namespace blue_alliance {
146 namespace game_pieces {
147 constexpr auto gp_0 = frc::Translation3d{278.25_in, 180_in, 0_in};
148 constexpr auto gp_1 = frc::Translation3d{278.25_in, 132_in, 0_in};
149 constexpr auto gp_2 = frc::Translation3d{278.25_in, 84_in, 0_in};
150 constexpr auto gp_3 = frc::Translation3d{278.25_in, 36_in, 0_in};
153 namespace charge_station {
169 namespace inner_grid {
206 namespace coop_grid {
241 namespace outer_grid {
279 namespace red_alliance {
280 namespace game_pieces {
287 namespace charge_station {
304 namespace inner_grid {
331 namespace coop_grid {
357 namespace outer_grid {
ScoringColumn
Definition field_points.h:19
ScoringRow
Definition field_points.h:35
GamePiece
Definition field_points.h:44
@ HYBRID
Definition field_points.h:44
@ CONE
Definition field_points.h:44
@ CUBE
Definition field_points.h:44
Definition field_points.h:387
constexpr auto coneWidth
Does not include square rim.
Definition field_points.h:388
Definition field_points.h:51
constexpr auto fieldMaxX
Definition field_points.h:54
constexpr auto fieldMaxY
Definition field_points.h:53
constexpr auto fieldMiddleX
Definition field_points.h:55
constexpr frc::Translation3d chargeStationCenter
Definition field_points.h:154
constexpr Node middleRowRight
Definition field_points.h:227
constexpr Node topRowMiddle
Definition field_points.h:211
constexpr Node bottomRowRight
Definition field_points.h:237
constexpr Node middleRowLeft
Definition field_points.h:219
constexpr Node bottomRowMiddle
Definition field_points.h:235
constexpr Node middleRowMiddle
Definition field_points.h:223
constexpr Node bottomRowLeft
Definition field_points.h:233
constexpr Node topRowLeft
Definition field_points.h:208
constexpr Node topRowRight
Definition field_points.h:214
constexpr auto gp_1
Definition field_points.h:148
constexpr auto gp_3
Definition field_points.h:150
constexpr auto gp_0
Definition field_points.h:147
constexpr auto gp_2
Definition field_points.h:149
constexpr Node middleRowRight
Definition field_points.h:192
constexpr Node bottomRowLeft
Definition field_points.h:198
constexpr Node topRowLeft
Definition field_points.h:172
constexpr Node bottomRowRight
Definition field_points.h:202
constexpr Node topRowMiddle
Definition field_points.h:175
constexpr Node topRowRight
Definition field_points.h:179
constexpr Node middleRowMiddle
Definition field_points.h:188
constexpr Node middleRowLeft
Definition field_points.h:184
constexpr Node bottomRowMiddle
Definition field_points.h:200
constexpr Node bottomRowLeft
Definition field_points.h:269
constexpr Node middleRowRight
Definition field_points.h:263
constexpr Node topRowMiddle
Definition field_points.h:246
constexpr Node bottomRowRight
Definition field_points.h:273
constexpr Node middleRowLeft
Definition field_points.h:255
constexpr Node middleRowMiddle
Definition field_points.h:259
constexpr Node topRowRight
Definition field_points.h:250
constexpr Node topRowLeft
Definition field_points.h:243
constexpr Node bottomRowMiddle
Definition field_points.h:271
constexpr auto coopGridMiddleY
Definition field_points.h:164
constexpr auto outerGridRightY
Definition field_points.h:168
constexpr auto innerGridRightY
Definition field_points.h:162
constexpr auto innerGridMiddleY
Definition field_points.h:161
constexpr auto innerGridLeftY
Definition field_points.h:160
constexpr auto coopGridLeftY
Definition field_points.h:163
constexpr auto coopGridRightY
Definition field_points.h:165
constexpr auto outerGridMiddleY
Definition field_points.h:167
constexpr auto outerGridLeftY
Definition field_points.h:166
constexpr units::inch_t outerEdgeX
Side closest to the game pieces.
Definition field_points.h:140
constexpr units::inch_t innerEdgeX
Side closest to the driver station.
Definition field_points.h:138
constexpr auto middleConeNodeDepth
Definition field_points.h:119
constexpr auto highCubeNodeDepth
Definition field_points.h:116
constexpr auto lowCubeNodeHeight
Definition field_points.h:127
constexpr auto middleConeNodeHeight
Definition field_points.h:120
constexpr auto middleNodeX
Definition field_points.h:131
constexpr auto highCubeNodeHeight
Definition field_points.h:117
constexpr auto middleCubeNodeDepth
Definition field_points.h:121
constexpr auto lowNodeX
Definition field_points.h:132
constexpr auto lowConeNodeHeight
Definition field_points.h:125
constexpr auto highConeNodeHeight
Definition field_points.h:115
constexpr auto lowConeNodeDepth
Definition field_points.h:124
constexpr auto highConeNodeDepth
Definition field_points.h:114
constexpr auto middleCubeNodeHeight
Definition field_points.h:122
constexpr auto lowCubeNodeDepth
Definition field_points.h:126
constexpr auto gridDepth
Distance from alliance station wall to end of grid dividers.
Definition field_points.h:112
constexpr auto highNodeX
Definition field_points.h:130
constexpr frc::Translation3d chargeStationCenter
Definition field_points.h:288
constexpr Node middleRowRight
Definition field_points.h:346
constexpr Node bottomRowLeft
Definition field_points.h:349
constexpr Node topRowMiddle
Definition field_points.h:336
constexpr Node bottomRowMiddle
Definition field_points.h:351
constexpr Node topRowRight
Definition field_points.h:338
constexpr Node topRowLeft
Definition field_points.h:334
constexpr Node middleRowLeft
Definition field_points.h:342
constexpr Node middleRowMiddle
Definition field_points.h:344
constexpr Node bottomRowRight
Definition field_points.h:353
constexpr auto gp_0
Definition field_points.h:281
constexpr auto gp_1
Definition field_points.h:282
constexpr auto gp_2
Definition field_points.h:283
constexpr auto gp_3
Definition field_points.h:284
constexpr Node topRowLeft
Definition field_points.h:307
constexpr Node middleRowLeft
Definition field_points.h:315
constexpr Node bottomRowLeft
Definition field_points.h:323
constexpr Node bottomRowRight
Definition field_points.h:327
constexpr Node topRowRight
Definition field_points.h:311
constexpr Node bottomRowMiddle
Definition field_points.h:325
constexpr Node middleRowMiddle
Definition field_points.h:317
constexpr Node topRowMiddle
Definition field_points.h:309
constexpr Node middleRowRight
Definition field_points.h:319
constexpr Node middleRowLeft
Definition field_points.h:367
constexpr Node topRowLeft
Definition field_points.h:359
constexpr Node bottomRowLeft
Definition field_points.h:375
constexpr Node bottomRowRight
Definition field_points.h:379
constexpr Node topRowMiddle
Definition field_points.h:361
constexpr Node topRowRight
Definition field_points.h:363
constexpr Node middleRowMiddle
Definition field_points.h:369
constexpr Node bottomRowMiddle
Definition field_points.h:377
constexpr Node middleRowRight
Definition field_points.h:371
constexpr auto innerGridLeftY
Definition field_points.h:295
constexpr auto innerGridMiddleY
Definition field_points.h:296
constexpr auto outerGridRightY
Definition field_points.h:303
constexpr auto coopGridMiddleY
Definition field_points.h:299
constexpr auto innerGridRightY
Definition field_points.h:297
constexpr auto outerGridLeftY
Definition field_points.h:301
constexpr auto outerGridMiddleY
Definition field_points.h:302
constexpr auto coopGridLeftY
Definition field_points.h:298
constexpr auto coopGridRightY
Definition field_points.h:300
Definition field_points.h:101
constexpr auto singleSubstationHeightBottom
Definition field_points.h:109
constexpr auto singleSubstationWidth
Definition field_points.h:110
constexpr auto doubleSubstationSliderWidth
Definition field_points.h:106
constexpr auto doubleSubstationHeight
Definition field_points.h:104
constexpr auto doubleSubstationDepth
Definition field_points.h:105
constexpr auto singleSubstationHeightTop
Definition field_points.h:108
Definition field_points.h:58
constexpr units::angle::degree_t ReflectAngle(const units::angle::degree_t sourceAngle)
Definition field_points.h:71
constexpr units::inch_t ReflectYLine(const units::inch_t source)
Definition field_points.h:91
constexpr frc::Translation3d ReflectFieldPoint(const frc::Translation3d source)
Reflects the point source over the middle of the field to get equivelent points accross the field.
Definition field_points.h:63
Definition field_points.h:46
frc::Translation3d m_position
Definition field_points.h:48
GamePiece m_gamePiece
Definition field_points.h:47
Definition field_points.h:37
ScoringColumn column
Definition field_points.h:38
auto operator<=>(const ScoringPosition &other) const =default
ScoringRow row
Definition field_points.h:39