I'd like to make a robot hand that move object from point A to point B, but if make object part of robot hand then it moves all the time with hand. Is there any way to animate hierarchy?

I did animation with two objects and show/hide but I would like to find a better solution, any idea?