Collision safety is an essential issue for dual-arm nursing-care robots. However, for coordinating operations, there is no suitable method to synchronously avoid collisions between two arms (self-collision) and collisions between an arm and the environment (environment-collision). Therefore, based on the self-motion characteristics of the dual-arm robot's redundant arms, an improved motion controlling algorithm is proposed. This study introduces several key improvements to existing methods. Firstly, the volume of the robotic arms was modeled using a capsule-enveloping method to more accurately reflect their actual structure. Secondly, the gradient projection method was applied in the kinematic analysis to calculate the shortest distances between the left arm, right arm, and the environment, ensuring effective avoidance of the self-collision and environment-collision. Additionally, distance thresholds were introduced to evaluate collision risks, and a velocity weight was used to control the smooth coordinating arm motion. After that, experiments of coordinating obstacle avoidance showed that when the redundant dual-arm robot is holding an object, the coordinating operation was completed while avoiding self-collision and environment-collision. The collision-avoidance method could provide potential benefits for various scenarios, such as medical robots and rehabilitating robots.