[wpilibc] Mechanism2d: Store roots by value

This commit is contained in:
Peter Johnson
2024-10-25 14:15:02 -07:00
parent 22e91bfacd
commit caae5357b7
2 changed files with 8 additions and 13 deletions

View File

@@ -84,7 +84,7 @@ class Mechanism2d : public nt::NTSendable,
std::string m_color;
mutable wpi::mutex m_mutex;
std::shared_ptr<nt::NetworkTable> m_table;
wpi::StringMap<std::unique_ptr<MechanismRoot2d>> m_roots;
wpi::StringMap<MechanismRoot2d> m_roots;
nt::DoubleArrayPublisher m_dimsPub;
nt::StringPublisher m_colorPub;
};