The Warriors added a wing player on Tuesday afternoon.

Golden State agreed to terms on a two-year contract with Glenn Robinson III, league sources Shams Charania of The Athletic.

Robinson -- the No. 40 pick in the 2014 NBA Draft -- appeared in 47 games (18 starts) with the Pistons last season.

He averaged 4.2 points and shot just 29 percent from beyond the arc.

[RELATEDReport: Former Kings big Cauley-Stein coming to Warriors]

The 25-year old has never played in more than 69 games in a season during his NBA career, but will be in position to get ample playing time with the Warriors. With Klay Thompson sidelined for at least 5-7 months and Andre Iguodala shipped to Memphis, Golden State will be desperate for anyone who can provide consistent minutes on the perimeter.

He had a career year with the Pacers in 2016-17, averaging 6.1 points and 3.6 rebounds, while shooting over 39 percent from 3-point range.

Follow @DrewShiller on Twitter and Instagram