Rotation around X axis, why is so difficult??

I created a station using your code and found that the robot can’t reach two out of twelve targets. It’s not because of the translation but the orientation. The solution is to rotate two targets 180 degrees around z-axis, then the robot will be able to move along the whole path. Refer to the picture attached.