Can Mechanism2d be displayed in Shuffleboard? Or only in the Sim GUI?

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!

Shuffleboard doesn’t have a Mechanism2d widget implemented. It’s only implemented in Glass (the dashboard version of the Sim GUI).

Is there a desire to have the feature added to shuffleboard or is it seen as unnecessary?

We would definitely accept a contribution that adds it (Field2d support was added by an outside contributor as well).

2 Likes

Thanks for the quick replies!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.