The vehicles' Control Architecture for Robotic Agent Command and Sensing (CARACaS) lets them both operate independently while sharing their paths and radar data with each other, keeping them both out of each others' way and aware of any potential threats.
Any fully operational boats would primarily serve as shields, but they would have guns (thankfully, human-operated) to attack lighter targets that don't give up quickly. The Navy doesn't have a definite timeline for when you'd see these drones on the high seas, though. While they work well in a controlled environment like the one you see here, researchers want to improve the onboard sensors so that they can handle a wider range of unexpected situations. You don't want unmanned seacraft running amok in the middle of a firefight, after all.
Watch YouTube: