Realtime Motion Generation with Active Perception Using Attention Mechanism for Cooking Robot