T-Bone lives in Toronto with his human, James Cochrane. The latter is fairly clever by human standards. Cochrane built a robot that, with the press of a button, pats T-Bone on the head, then gives him a treat. It's called the IOT Robot People/Pet Affectionator.
The design incentivizes cooperation. On T-Bone's side of the machine is another button. When he presses it, it gives Cochrane a pat on the head, followed by a treat.
It works wonderfully! But it didn't start out that way. In the second half of the video, we see that Cochrane's initial design was dangerous to T-Bone.
-via Laughing Squid