23#include <frc/geometry/Transform3d.h>
24#include <networktables/BooleanTopic.h>
25#include <networktables/DoubleArrayTopic.h>
26#include <networktables/DoubleTopic.h>
27#include <networktables/IntegerTopic.h>
28#include <networktables/NetworkTable.h>
29#include <networktables/RawTopic.h>
30#include <networktables/StructTopic.h>
34 std::string{
"photonstruct:PhotonPipelineResult:"} +
67 nt::PubSubOptions options;
68 options.periodic = 0.01;
69 options.sendAll =
true;
74 subTable->GetIntegerTopic(
"pipelineIndexState").Publish();
76 subTable->GetIntegerTopic(
"pipelineIndexRequest").Subscribe(0);
80 subTable->GetBooleanTopic(
"driverModeRequest").Subscribe(0);
91 subTable->GetStructTopic<frc::Transform3d>(
"targetPose").Publish();
101 subTable->GetDoubleArrayTopic(
"cameraIntrinsics").Publish();
103 subTable->GetDoubleArrayTopic(
"cameraDistortion").Publish();
Definition NTTopicSet.h:37
nt::StructPublisher< frc::Transform3d > targetPoseEntry
Definition NTTopicSet.h:54
nt::DoublePublisher targetPitchEntry
Definition NTTopicSet.h:51
nt::DoublePublisher targetAreaEntry
Definition NTTopicSet.h:53
nt::IntegerPublisher heartbeatPublisher
Definition NTTopicSet.h:61
std::shared_ptr< nt::NetworkTable > subTable
Definition NTTopicSet.h:39
nt::DoublePublisher bestTargetPosX
Definition NTTopicSet.h:57
nt::DoublePublisher targetYawEntry
Definition NTTopicSet.h:52
nt::IntegerPublisher pipelineIndexPublisher
Definition NTTopicSet.h:42
nt::BooleanPublisher hasTargetEntry
Definition NTTopicSet.h:50
nt::BooleanPublisher driverModePublisher
Definition NTTopicSet.h:46
nt::DoublePublisher latencyMillisEntry
Definition NTTopicSet.h:49
nt::BooleanTopic driverModeEntry
Definition NTTopicSet.h:45
nt::RawPublisher rawBytesEntry
Definition NTTopicSet.h:40
nt::DoubleArrayPublisher cameraDistortionPublisher
Definition NTTopicSet.h:64
nt::DoublePublisher targetSkewEntry
Definition NTTopicSet.h:55
nt::DoubleArrayPublisher cameraIntrinsicsPublisher
Definition NTTopicSet.h:63
nt::IntegerTopic heartbeatTopic
Definition NTTopicSet.h:60
void UpdateEntries()
Definition NTTopicSet.h:66
nt::BooleanSubscriber driverModeSubscriber
Definition NTTopicSet.h:47
nt::IntegerSubscriber pipelineIndexRequestSub
Definition NTTopicSet.h:43
nt::DoublePublisher bestTargetPosY
Definition NTTopicSet.h:58
Definition VisionEstimation.h:32
const std::string PhotonPipelineResult_TYPE_STRING
Definition NTTopicSet.h:33
static constexpr std::string_view GetSchemaHash()
Definition PhotonPipelineResultSerde.h:41