23#include <wpi/math/geometry/Transform3d.hpp>
24#include <wpi/nt/BooleanTopic.hpp>
25#include <wpi/nt/DoubleArrayTopic.hpp>
26#include <wpi/nt/DoubleTopic.hpp>
27#include <wpi/nt/IntegerTopic.hpp>
28#include <wpi/nt/NetworkTable.hpp>
29#include <wpi/nt/RawTopic.hpp>
30#include <wpi/nt/StructTopic.hpp>
34 std::string{
"photonstruct:PhotonPipelineResult:"} +
39 std::shared_ptr<wpi::nt::NetworkTable>
subTable;
67 wpi::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<wpi::math::Transform3d>(
"targetPose")
102 subTable->GetDoubleArrayTopic(
"cameraIntrinsics").Publish();
104 subTable->GetDoubleArrayTopic(
"cameraDistortion").Publish();
Definition NTTopicSet.h:37
wpi::nt::DoublePublisher targetAreaEntry
Definition NTTopicSet.h:53
wpi::nt::BooleanTopic driverModeEntry
Definition NTTopicSet.h:45
wpi::nt::StructPublisher< wpi::math::Transform3d > targetPoseEntry
Definition NTTopicSet.h:54
wpi::nt::IntegerTopic heartbeatTopic
Definition NTTopicSet.h:60
wpi::nt::DoublePublisher bestTargetPosX
Definition NTTopicSet.h:57
wpi::nt::DoublePublisher latencyMillisEntry
Definition NTTopicSet.h:49
wpi::nt::IntegerPublisher pipelineIndexPublisher
Definition NTTopicSet.h:42
wpi::nt::DoublePublisher targetSkewEntry
Definition NTTopicSet.h:55
wpi::nt::BooleanSubscriber driverModeSubscriber
Definition NTTopicSet.h:47
std::shared_ptr< wpi::nt::NetworkTable > subTable
Definition NTTopicSet.h:39
wpi::nt::IntegerSubscriber pipelineIndexRequestSub
Definition NTTopicSet.h:43
wpi::nt::BooleanPublisher driverModePublisher
Definition NTTopicSet.h:46
wpi::nt::IntegerPublisher heartbeatPublisher
Definition NTTopicSet.h:61
wpi::nt::DoublePublisher targetYawEntry
Definition NTTopicSet.h:52
wpi::nt::BooleanPublisher hasTargetEntry
Definition NTTopicSet.h:50
void UpdateEntries()
Definition NTTopicSet.h:66
wpi::nt::DoubleArrayPublisher cameraIntrinsicsPublisher
Definition NTTopicSet.h:63
wpi::nt::DoublePublisher bestTargetPosY
Definition NTTopicSet.h:58
wpi::nt::RawPublisher rawBytesEntry
Definition NTTopicSet.h:40
wpi::nt::DoublePublisher targetPitchEntry
Definition NTTopicSet.h:51
wpi::nt::DoubleArrayPublisher cameraDistortionPublisher
Definition NTTopicSet.h:64
Definition VisionEstimation.h:30
const std::string PhotonPipelineResult_TYPE_STRING
Definition NTTopicSet.h:33
static constexpr std::string_view GetSchemaHash()
Definition PhotonPipelineResultSerde.h:48