Can I use this digital IR transmitter to control the robot?

My first question is why you put a user-downloaded library in the Arduino library directory. That is NOT where it goes.