141 std::vector<TimestampedValueType>
ReadQueue();
NetworkTables FloatArray entry.
Definition: FloatArrayTopic.h:209
FloatArrayEntry(NT_Entry handle, ParamType defaultValue)
Construct from an entry handle; recommended to use FloatArrayTopic::GetEntry() instead.
FloatArrayTopic TopicType
Definition: FloatArrayTopic.h:213
void Unpublish()
Stops publishing the entry if it's published.
Definition: FloatArrayTopic.inc:86
FloatArrayEntry()=default
TopicType GetTopic() const
Get the corresponding topic.
Definition: FloatArrayTopic.inc:82
NT_Entry GetHandle() const
Gets the native handle for the entry.
Definition: FloatArrayTopic.h:245
NetworkTables FloatArray publisher.
Definition: FloatArrayTopic.h:157
void Set(ParamType value, int64_t time=0)
Publish a new value.
Definition: FloatArrayTopic.inc:64
void SetDefault(ParamType value)
Publish a default value.
Definition: FloatArrayTopic.inc:69
TopicType GetTopic() const
Get the corresponding topic.
Definition: FloatArrayTopic.inc:73
std::vector< float > ValueType
Definition: FloatArrayTopic.h:160
float SmallElemType
Definition: FloatArrayTopic.h:164
FloatArrayPublisher()=default
std::span< float > SmallRetType
Definition: FloatArrayTopic.h:163
std::span< const float > ParamType
Definition: FloatArrayTopic.h:161
NetworkTables FloatArray subscriber.
Definition: FloatArrayTopic.h:29
std::span< const float > ParamType
Definition: FloatArrayTopic.h:33
std::span< float > SmallRetType
Definition: FloatArrayTopic.h:36
std::vector< float > ValueType
Definition: FloatArrayTopic.h:32
FloatArraySubscriber(NT_Subscriber handle, ParamType defaultValue)
Construct from a subscriber handle; recommended to use FloatArrayTopic::Subscribe() instead.
TopicType GetTopic() const
Get the corresponding topic.
Definition: FloatArrayTopic.inc:57
ValueType Get(ParamType defaultValue) const
Get the last published value.
TimestampedValueType GetAtomic() const
Get the last published value along with its timestamp If no value has been published,...
Definition: FloatArrayTopic.inc:35
SmallRetType Get(wpi::SmallVectorImpl< SmallElemType > &buf, ParamType defaultValue) const
Get the last published value.
float SmallElemType
Definition: FloatArrayTopic.h:37
TimestampedValueViewType GetAtomic(wpi::SmallVectorImpl< SmallElemType > &buf, ParamType defaultValue) const
Get the last published value along with its timestamp.
FloatArraySubscriber()=default
ValueType Get() const
Get the last published value.
Definition: FloatArrayTopic.inc:18
std::vector< TimestampedValueType > ReadQueue()
Get an array of all value changes since the last call to ReadQueue.
Definition: FloatArrayTopic.inc:53
TimestampedValueType GetAtomic(ParamType defaultValue) const
Get the last published value along with its timestamp.
NetworkTables FloatArray topic.
Definition: FloatArrayTopic.h:263
FloatArrayTopic(Topic topic)
Construct from a generic topic.
Definition: FloatArrayTopic.h:289
PublisherType Publish(const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic.
Definition: FloatArrayTopic.inc:105
PublisherType PublishEx(std::string_view typeString, const wpi::json &properties, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new publisher to the topic, with type string and initial properties.
Definition: FloatArrayTopic.inc:111
EntryType GetEntry(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic.
Definition: FloatArrayTopic.inc:118
EntryType GetEntryEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new entry for the topic, with specific type string.
Definition: FloatArrayTopic.inc:125
FloatArrayEntry EntryType
Definition: FloatArrayTopic.h:267
FloatArrayPublisher PublisherType
Definition: FloatArrayTopic.h:266
FloatArraySubscriber SubscriberType
Definition: FloatArrayTopic.h:265
FloatArrayTopic()=default
std::span< const float > ParamType
Definition: FloatArrayTopic.h:269
static constexpr std::string_view kTypeString
The default type string for this topic type.
Definition: FloatArrayTopic.h:272
SubscriberType SubscribeEx(std::string_view typeString, ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic, with specific type string.
Definition: FloatArrayTopic.inc:97
SubscriberType Subscribe(ParamType defaultValue, const PubSubOptions &options=kDefaultPubSubOptions)
Create a new subscriber to the topic.
Definition: FloatArrayTopic.inc:90
std::vector< float > ValueType
Definition: FloatArrayTopic.h:268
FloatArrayTopic(NT_Topic handle)
Construct from a topic handle; recommended to use NetworkTableInstance::GetFloatArrayTopic() instead.
Definition: FloatArrayTopic.h:282
NetworkTables publisher.
Definition: Topic.h:345
NetworkTables subscriber.
Definition: Topic.h:290
NT_Subscriber m_subHandle
Definition: Topic.h:341
NetworkTables Topic.
Definition: Topic.h:30
This class consists of common code factored out of the SmallVector class to reduce code duplication b...
Definition: SmallVector.h:557
a class to store JSON values
Definition: json.h:2655
basic_string_view< char > string_view
Definition: core.h:520
NT_Handle NT_Topic
Definition: ntcore_c.h:38
NT_Handle NT_Subscriber
Definition: ntcore_c.h:39
NT_Handle NT_Publisher
Definition: ntcore_c.h:40
NT_Handle NT_Entry
Definition: ntcore_c.h:33
constexpr PubSubOptions kDefaultPubSubOptions
Default publish/subscribe options.
Definition: ntcore_cpp.h:381
::int64_t int64_t
Definition: Meta.h:59
NetworkTables (ntcore) namespace.
Definition: ntcore_cpp.h:35
/file This file defines the SmallVector class.
Definition: AprilTagFieldLayout.h:18
NetworkTables publish/subscribe options.
Definition: ntcore_cpp.h:304
Timestamped FloatArray.
Definition: ntcore_cpp_types.h:940
Timestamped FloatArray view (for SmallVector-taking functions).
Definition: ntcore_cpp_types.h:965