Humanoid robots are expected to take an important role in human daily environments such as offices, homes and hospitals. The flexibility of the humanoid motion is a fundamental requirement for human-robot interaction. In this paper, a compliance control for humanoid grasping objects is proposed. The force/torque of the end-effector is measured by a 6-axis force sensor located at the wrist. Using the proposed method, it is possible for the humanoid robot to grasp the object with a small interference force and keeping the desired hand's posture. The effectiveness of the proposed method is illustrated through the experiment of object grasping.