Reinforcement Learning for Selecting Types of Inverse Kinematics Solution of Collaborative Robots and Avoiding Singularity and Obstacle | Synapse