I was able to get Mechanism2d to show in the Sim GUI - so this successfully added it to the SmartDashboard:
SmartDashboard.putData(“Mech2d”, mech);
However, when I tried to add it to Shuffleboard.exe, since all our other controls are on Shuffleboard.exe, it didn’t work:
Shuffleboard.getTab(“Simulation”)
.add(“My Mechanism”, mech)
Oddly, I see a new widget on the Shuffleboard, but it just shows me a hierarchical table describing the properties of the mechanism (showing me what’s in the Network table). But not showing me the mechanism as an image as I had expected.
Is it possible to show a Mechanism2d on shuffleboard? Why do other widgets like Field2d properly work in both shuffleboard and Sim GUI?
Thank you! I’m still learning!