36class ShuffleboardLayout;
53 const std::vector<std::unique_ptr<ShuffleboardComponentBase>>&
GetComponents()
140 std::span<const std::string> cameraUrls);
279 std::span<const double> defaultValue);
293 std::span<const float> defaultValue);
307 std::span<const int64_t> defaultValue);
321 std::span<const std::string> defaultValue);
347 std::function<
double()> supplier);
360 std::function<
double()> supplier);
373 std::function<
float()> supplier);
386 std::function<
int64_t()> supplier);
399 std::function<
bool()> supplier);
413 std::function<std::vector<std::string>()> supplier);
506 std::function<std::vector<uint8_t>()> supplier);
614 std::span<const bool> defaultValue);
630 std::span<const double> defaultValue);
646 std::span<const float> defaultValue);
662 std::span<const int64_t> defaultValue);
678 std::span<const std::string> defaultValue);
689 std::vector<std::unique_ptr<ShuffleboardComponentBase>> m_components;
709#ifndef DYNAMIC_CAMERA_SERVER
724 std::span<const std::string> cameraUrls) {
This file defines the SmallSet class.
This file defines the StringMap class.
A source for video that provides a sequence of frames.
Definition: cscore_oo.h:96
Represents the type of a layout in Shuffleboard.
Definition: LayoutType.h:18
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:110
Common interface for objects that can contain shuffleboard components.
Definition: ShuffleboardContainer.h:42
SimpleWidget & Add(std::string_view title, int defaultValue)
Adds a widget to this container to display the given data.
SimpleWidget & AddPersistent(std::string_view title, int defaultValue)
Adds a widget to this container to display a simple piece of data.
SuppliedValueWidget< bool > & AddBoolean(std::string_view title, std::function< bool()> supplier)
Adds a widget to this container.
SuppliedValueWidget< int64_t > & AddInteger(std::string_view title, std::function< int64_t()> supplier)
Adds a widget to this container.
SuppliedValueWidget< std::vector< uint8_t > > & AddRaw(std::string_view title, std::string_view typeString, std::function< std::vector< uint8_t >()> supplier)
Adds a widget to this container.
SuppliedValueWidget< double > & AddNumber(std::string_view title, std::function< double()> supplier)
Adds a widget to this container.
SuppliedValueWidget< std::vector< uint8_t > > & AddRaw(std::string_view title, std::function< std::vector< uint8_t >()> supplier)
Adds a widget to this container.
SuppliedValueWidget< std::vector< int > > & AddBooleanArray(std::string_view title, std::function< std::vector< int >()> supplier)
Adds a widget to this container.
SimpleWidget & Add(std::string_view title, const char *defaultValue)
Adds a widget to this container to display the given data.
ComplexWidget & Add(std::string_view title, wpi::Sendable &sendable)
Adds a widget to this container to display the given sendable.
SuppliedValueWidget< std::string > & AddString(std::string_view title, std::function< std::string()> 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.
SuppliedValueWidget< std::vector< int64_t > > & AddIntegerArray(std::string_view title, std::function< std::vector< int64_t >()> supplier)
Adds a widget to this container.
ShuffleboardContainer(ShuffleboardContainer &&rhs)=default
SimpleWidget & AddPersistent(std::string_view title, std::span< const double > defaultValue)
Adds a widget to this container to display a simple piece of data.
SimpleWidget & Add(std::string_view title, std::span< const double > defaultValue)
Adds a widget to this container to display the given data.
SimpleWidget & AddPersistent(std::string_view title, std::span< const int64_t > defaultValue)
Adds a widget to this container to display a simple piece of data.
ShuffleboardLayout & GetLayout(std::string_view title, const LayoutType &type)
Gets the layout with the given type and title, creating it if it does not already exist at the time t...
void EnableIfActuator() override
Enables user control of this widget in the Shuffleboard application.
SimpleWidget & Add(std::string_view title, std::span< const float > defaultValue)
Adds a widget to this container to display the given data.
SimpleWidget & AddPersistent(std::string_view title, const nt::Value &defaultValue)
Adds a widget to this container to display a simple piece of data.
SimpleWidget & Add(std::string_view title, double defaultValue)
Adds a widget to this container to display the given data.
SuppliedValueWidget< std::vector< double > > & AddDoubleArray(std::string_view title, std::function< std::vector< double >()> supplier)
Adds a widget to this container.
SimpleWidget & AddPersistent(std::string_view title, float defaultValue)
Adds a widget to this container to display a simple piece of data.
SimpleWidget & AddPersistent(std::string_view title, std::string_view defaultValue)
Adds a widget to this container to display a simple piece of data.
ComplexWidget & AddCamera(std::string_view title, std::string_view cameraName, std::span< const std::string > cameraUrls)
Adds a widget to this container to display a video stream.
Definition: ShuffleboardContainer.h:722
ShuffleboardLayout & GetLayout(std::string_view title, std::string_view type)
Gets the layout with the given type and title, creating it if it does not already exist at the time t...
ShuffleboardLayout & GetLayout(std::string_view 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 & Add(std::string_view title, std::string_view defaultValue)
Adds a widget to this container to display the given data.
SimpleWidget & AddPersistent(std::string_view title, bool defaultValue)
Adds a widget to this container to display a simple piece of data.
SimpleWidget & Add(std::string_view title, const nt::Value &defaultValue)
Adds a widget to this container to display the given data.
SuppliedValueWidget< float > & AddFloat(std::string_view title, std::function< float()> supplier)
Adds a widget to this container.
SimpleWidget & Add(std::string_view title, bool defaultValue)
Adds a widget to this container to display the given data.
bool m_isLayout
Definition: ShuffleboardContainer.h:685
SuppliedValueWidget< std::vector< double > > & AddNumberArray(std::string_view title, std::function< std::vector< double >()> supplier)
Adds a widget to this container.
SimpleWidget & AddPersistent(std::string_view title, std::span< const bool > defaultValue)
Adds a widget to this container to display a simple piece of data.
void DisableIfActuator() override
Disables user control of this widget in the Shuffleboard application.
~ShuffleboardContainer() override=default
SimpleWidget & AddPersistent(std::string_view title, std::span< const std::string > defaultValue)
Adds a widget to this container to display a simple piece of data.
SimpleWidget & Add(std::string_view title, std::span< const int64_t > defaultValue)
Adds a widget to this container to display the given data.
ComplexWidget & Add(wpi::Sendable &sendable)
Adds a widget to this container to display the given sendable.
SuppliedValueWidget< std::vector< std::string > > & AddStringArray(std::string_view title, std::function< std::vector< std::string >()> supplier)
Adds a widget to this container.
SuppliedValueWidget< std::vector< float > > & AddFloatArray(std::string_view title, std::function< std::vector< float >()> supplier)
Adds a widget to this container.
SimpleWidget & Add(std::string_view title, std::span< const std::string > defaultValue)
Adds a widget to this container to display the given data.
SimpleWidget & Add(std::string_view title, std::span< const bool > defaultValue)
Adds a widget to this container to display the given data.
ShuffleboardLayout & GetLayout(std::string_view title)
Gets the already-defined layout in this container with the given title.
ShuffleboardContainer(std::string_view title)
SimpleWidget & AddPersistent(std::string_view title, std::span< const float > defaultValue)
Adds a widget to this container to display a simple piece of data.
SimpleWidget & Add(std::string_view title, float defaultValue)
Adds a widget to this container to display the given data.
SimpleWidget & AddPersistent(std::string_view title, double defaultValue)
Adds a widget to this container to display a simple piece of data.
SuppliedValueWidget< double > & AddDouble(std::string_view title, std::function< double()> supplier)
Adds a widget to this container.
A layout in a Shuffleboard tab.
Definition: ShuffleboardLayout.h:27
Definition: ShuffleboardValue.h:15
A network table entry value.
Definition: NetworkTableValue.h:27
Interface for Sendable objects.
Definition: Sendable.h:16
StringMap - This is an unconventional map that is specialized for handling keys that are "strings",...
Definition: StringMap.h:114
basic_string_view< char > string_view
Definition: core.h:520
type
Definition: core.h:575
::int64_t int64_t
Definition: Meta.h:59
CameraServer (cscore) namespace.
Definition: cscore_oo.inc:15
Definition: AprilTagPoseEstimator.h:15
BuiltInLayouts
The types of layouts bundled with Shuffleboard.
Definition: BuiltInLayouts.h:19
Definition: AprilTagFieldLayout.h:18