With a few simple rules to follow something that has no intelligence at all can seem semi intelligent because of the way it reacts to certain situations.
If then procedural code is not used in object oriented programming.
You create objects of a specific class that has certain attributes and features.
That because A.I. technology is in its infancy.Is like laughing at the Right's brothers airplane and saying that planes will never go faster then the speed of sound.
AI has certainly moved on since the 1980s when the example I gave took place.
You'd actually be surprised how much AI there is around you right now.
From the auto focus in your digital camera to the auto tuning on your TV.
From the face recognition with the camera in your cellphone to the computer spyware on your computer detecting the site you go to and your internet habits and sending that data to some site on the internet.
All those cameras in Britain would still be useful in solving crime but with face recognition software they can be used to find and track the movements of specific people of interest.
Back to the robot, its purpose is not really to replace all soldiers, its job is to be an expendible point man you can send into places to see what is there.
Otherwise the range of 500m would be a bit useless, but you can roll him around a corner and have him take two shots at an enemy tank without fear of him being killed by return fire.
His camera and mechanisms are relatively small so to defeat him you will either need to shower him in small arms fire in the hope of taking out the gun or the camera or hit him with explosives, which would give away your position.
With his MG he could provide support while your unit is moving, or you could send him around an enemy position to provide flanking fire.
You could even roll him back to high ground to offer a view of the enemy position that could be relayed by the operator to the unit commmander and not even fire a shot... he could just observe and fire if fired upon.
You could send him up to a suspicious vehicle or house that looks undefended.