Hello! the position target is not the joint value itself. it is actually the target value used by the driver to get the joint to the desired pose.
Along with the target position, there is the joint drive stiffness and damping parameter. Increasing the joint stiffness will yield better precision, but it makes the robot more reactive to changes (pretty much a PD control on the position target), while Damping does exactly that, and dampen the movement of the robot.
As an aside, the damping parameter is also a proportional gain for the target joint velocity.
Thanks for your help, I have increased the stiffness and that increased the accuracy, however is there any way to run set position mode in blocking mode?
I want to know when set_dof_position_target finished.
I believe you’d need to come with your own form for tracking check if it reached the target - The remainder of the simulation should not be stopped waiting for the robot to reach the position, it’d be a behavior loop you’d add to your robot control.
Think of the simulation as being a real world process - how would you check if the robot has achieved the pose?