I am running a simulation of a robot arm and I want an end effector to be directed to the center of a sphere while it's running a trajectory along the surface of a sphere.
My questions is how to calculate with pybullet a quaternion for end effector so it look towards center of a sphere if I have a center point coords and next/previous position coords for end effector.
pybullet.calculateInverseKinematics(self.xarm,xarmEndEffectorIndex, position, ornientation)