41 static std::vector<std::string>
GetKeys(
int types = 0);
230 std::span<const int> defaultValue);
251 std::span<const int> defaultValue);
261 std::span<const double> value);
271 std::span<const double> defaultValue);
298 std::span<const std::string> value);
308 std::span<const std::string> defaultValue);
344 std::span<const uint8_t> defaultValue);
361 std::span<const uint8_t> defaultValue);
Definition: SmartDashboard.h:23
static wpi::Sendable * GetData(std::string_view keyName)
Returns the value at the specified key.
static bool IsPersistent(std::string_view key)
Returns whether the value is persistent through program restarts.
static void UpdateValues()
Puts all sendable data to the dashboard.
static void PutData(wpi::Sendable *value)
Maps the specified key (where the key is the name of the Sendable) to the specified value in this tab...
static bool SetDefaultNumber(std::string_view key, double defaultValue)
Gets the current value in the table, setting it if it does not exist.
static bool PutBoolean(std::string_view keyName, bool value)
Maps the specified key to the specified value in this table.
static bool SetDefaultNumberArray(std::string_view key, std::span< const double > defaultValue)
Gets the current value in the table, setting it if it does not exist.
static bool GetBoolean(std::string_view keyName, bool defaultValue)
Returns the value at the specified key.
static void SetPersistent(std::string_view key)
Makes a key's value persistent through program restarts.
static bool PutBooleanArray(std::string_view key, std::span< const int > value)
Put a boolean array in the table.
static bool SetDefaultStringArray(std::string_view key, std::span< const std::string > defaultValue)
Gets the current value in the table, setting it if it does not exist.
static bool SetDefaultBoolean(std::string_view key, bool defaultValue)
Gets the current value in the table, setting it if it does not exist.
static nt::Value GetValue(std::string_view keyName)
Retrieves the complex value (such as an array) in this table into the complex data object.
static std::string GetString(std::string_view keyName, std::string_view defaultValue)
Returns the value at the specified key.
static nt::NetworkTableEntry GetEntry(std::string_view key)
Returns an NT Entry mapping to the specified key.
static bool SetDefaultBooleanArray(std::string_view key, std::span< const int > defaultValue)
Gets the current value in the table, setting it if it does not exist.
static bool PutNumber(std::string_view keyName, double value)
Maps the specified key to the specified value in this table.
static std::vector< double > GetNumberArray(std::string_view key, std::span< const double > defaultValue)
Returns the number array the key maps to.
static std::vector< std::string > GetStringArray(std::string_view key, std::span< const std::string > defaultValue)
Returns the string array the key maps to.
static std::vector< uint8_t > GetRaw(std::string_view key, std::span< const uint8_t > defaultValue)
Returns the raw value (byte array) the key maps to.
static bool SetDefaultString(std::string_view key, std::string_view defaultValue)
Gets the current value in the table, setting it if it does not exist.
static bool PutValue(std::string_view keyName, const nt::Value &value)
Maps the specified key to the specified complex value (such as an array) in this table.
static bool SetDefaultRaw(std::string_view key, std::span< const uint8_t > defaultValue)
Gets the current value in the table, setting it if it does not exist.
static void ClearPersistent(std::string_view key)
Stop making a key's value persistent through program restarts.
static bool SetDefaultValue(std::string_view key, const nt::Value &defaultValue)
Gets the current value in the table, setting it if it does not exist.
static bool ContainsKey(std::string_view key)
Determines whether the given key is in this table.
static double GetNumber(std::string_view keyName, double defaultValue)
Returns the value at the specified key.
static bool PutStringArray(std::string_view key, std::span< const std::string > value)
Put a string array in the table.
static void PutData(std::string_view key, wpi::Sendable *data)
Maps the specified key to the specified value in this table.
static void PostListenerTask(std::function< void()> task)
Posts a task from a listener to the ListenerExecutor, so that it can be run synchronously from the ma...
static std::vector< int > GetBooleanArray(std::string_view key, std::span< const int > defaultValue)
Returns the boolean array the key maps to.
static bool PutString(std::string_view keyName, std::string_view value)
Maps the specified key to the specified value in this table.
static bool PutRaw(std::string_view key, std::span< const uint8_t > value)
Put a raw value (byte array) in the table.
static bool PutNumberArray(std::string_view key, std::span< const double > value)
Put a number array in the table.
static std::vector< std::string > GetKeys(int types=0)
NetworkTables Entry.
Definition: NetworkTableEntry.h:34
A network table entry value.
Definition: NetworkTableValue.h:32
Interface for Sendable objects.
Definition: Sendable.h:16
basic_string_view< char > string_view
Definition: core.h:501
Definition: AprilTagPoseEstimator.h:15
Definition: ntcore_cpp.h:26