Hey all. I recently finished a soon-to-be-published blog series walking the reader through taking a ROS prototype to production with Ubuntu Core. Part of this series is creating a custom gadget snap to expose serial ports to the ROS snap, and creating a custom image with this gadget and ROS snap pre-installed.
This effort ultimately ended in success, but I wanted to provide some feedback about some of the rough edges I encountered while going through this process. This is one of those rough edges.
Both the gadget snap and the ROS app snap are published by me, but there seems to be no way for me to say that the serial-port plug from the app snap should be automatically connected to the slot in the gadget. Putting the auto-connection in the gadget’s snap declaration is a valid workaround (which also works if the app snap is preinstalled in the image), but that’s a manual process by store admins. It’d be great to put this in the control of the publisher, if possible. I logged a bug to discuss this.