Changing Robot Appearance in Simulation

Hi!

My team is starting to work on autos using the simulator. Is there a way to programmatically change robot appearance in FIeld2D in Glass? Is there another package that makes it easy?

We would like to say, turn the pose indicator to a square when the intake is on, or change the color if the shooter is active.

Thanks!

No, this is not currently possible (to change shapes from robot code). A feature to allow this has been discussed but no one has implemented it yet.

You could fake it with multiple field objects—set each one to a different image, and have the robot code set the poses of the invisible ones to be offscreen (or have no poses) and the visible one to the actual robot pose.

We use the Field2D for the robot pose and then use 1 or more Mechanism2Ds to indicate the state of other subsystems.