15 #include <networktables/NetworkTableEntry.h>
16 #include <networktables/NetworkTableValue.h>
17 #include <wpi/ArrayRef.h>
18 #include <wpi/SmallSet.h>
19 #include <wpi/StringMap.h>
20 #include <wpi/Twine.h>
22 #include "frc/ErrorBase.h"
23 #include "frc/WPIErrors.h"
24 #include "frc/shuffleboard/BuiltInLayouts.h"
25 #include "frc/shuffleboard/LayoutType.h"
26 #include "frc/shuffleboard/ShuffleboardComponentBase.h"
27 #include "frc/shuffleboard/ShuffleboardValue.h"
28 #include "frc/shuffleboard/SuppliedValueWidget.h"
38 class ShuffleboardLayout;
56 const std::vector<std::unique_ptr<ShuffleboardComponentBase>>&
GetComponents()
167 std::shared_ptr<nt::Value> defaultValue);
278 const wpi::Twine& title, std::function<std::string()> supplier);
291 std::function<
double()> supplier);
304 std::function<
bool()> supplier);
318 std::function<std::vector<std::string>()> supplier);
331 const wpi::Twine& title, std::function<std::vector<double>()> supplier);
344 const wpi::Twine& title, std::function<std::vector<int>()> supplier);
372 std::shared_ptr<nt::Value> defaultValue);
481 bool m_isLayout =
false;
485 std::vector<std::unique_ptr<ShuffleboardComponentBase>> m_components;
501 #include "frc/shuffleboard/ComplexWidget.h"
502 #include "frc/shuffleboard/ShuffleboardLayout.h"
503 #include "frc/shuffleboard/SimpleWidget.h"
505 #ifndef DYNAMIC_CAMERA_SERVER
506 #include "frc/shuffleboard/SendableCameraWrapper.h"
Represents the type of a layout in Shuffleboard.
Definition: LayoutType.h:21
A layout in a Shuffleboard tab.
Definition: ShuffleboardLayout.h:29
ArrayRef - Represent a constant reference to an array (0 or more elements consecutively in memory),...
Definition: ArrayRef.h:42
SuppliedValueWidget< std::vector< int > > & AddBooleanArray(const wpi::Twine &title, std::function< std::vector< int >()> supplier)
Adds a widget to this container.
Definition: ShuffleboardValue.h:19
ShuffleboardLayout & GetLayout(const wpi::Twine &title, BuiltInLayouts type)
Gets the layout with the given type and title, creating it if it does not already exist at the time t...
SimpleWidget & AddPersistent(const wpi::Twine &title, std::shared_ptr< nt::Value > defaultValue)
Adds a widget to this container to display a simple piece of data.
ComplexWidget & Add(const wpi::Twine &title, Sendable &sendable)
Adds a widget to this container to display the given sendable.
Common interface for objects that can contain shuffleboard components.
Definition: ShuffleboardContainer.h:44
void EnableIfActuator() override
Enables user control of this widget in the Shuffleboard application.
CameraServer (cscore) namespace.
Definition: cscore_cpp.h:35
SuppliedValueWidget< double > & AddNumber(const wpi::Twine &title, std::function< double()> supplier)
Adds a widget to this container.
Base class for most objects.
Definition: ErrorBase.h:104
BuiltInLayouts
The types of layouts bundled with Shuffleboard.
Definition: BuiltInLayouts.h:22
StringRef - Represent a constant reference to a string, i.e.
Definition: StringRef.h:49
SuppliedValueWidget< std::string > & AddString(const wpi::Twine &title, std::function< std::string()> supplier)
Adds a widget to this container.
Interface for Sendable objects.
Definition: Sendable.h:17
StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...
Definition: StringMap.h:206
SuppliedValueWidget< std::vector< std::string > > & AddStringArray(const wpi::Twine &title, std::function< std::vector< std::string >()> supplier)
Adds a widget to this container.
SuppliedValueWidget< bool > & AddBoolean(const wpi::Twine &title, std::function< bool()> supplier)
Adds a widget to this container.
const std::vector< std::unique_ptr< ShuffleboardComponentBase > > & GetComponents() const
Gets the components that are direct children of this container.
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
SuppliedValueWidget< wpi::StringRef > & AddRaw(const wpi::Twine &title, std::function< wpi::StringRef()> supplier)
Adds a widget to this container.
A source for video that provides a sequence of frames.
Definition: cscore_oo.h:97
SuppliedValueWidget< std::vector< double > > & AddNumberArray(const wpi::Twine &title, std::function< std::vector< double >()> supplier)
Adds a widget to this container.
void DisableIfActuator() override
Disables user control of this widget in the Shuffleboard application.
static SendableCameraWrapper & Wrap(const cs::VideoSource &source)
Gets a sendable wrapper object for the given video source, creating the wrapper if one does not alrea...
Definition: SendableCameraWrapper.h:82
Twine - A lightweight data structure for efficiently representing the concatenation of temporary valu...
Definition: Twine.h:85