Hey ! Thanks for your answer, but I’m not sure I understand want you mean. Are you saying that the reward function is not optimal and it should be based upon the joints angles that would actually reach the target?
Here’s a picture to clarify the setting:

RobotSetup.png694×698 5.98 KB

Thanks !