Hello!
There are alot of different methods for using a pot to control a robot motor; and thus,
a robot joint.
If you want to control a robot joint, then the pot has to be mounted such that it can
move linearly when the joint is moved.
If you want to control a robot motor, then a pot (likely) is mounted remotely,
an controls the motor.
An
Analog to digital process can be used to assign power levels,movement in degrees, or any number
of directions that you may want to use, to direct/control your robot joint.
Most robot kits are straightforward with this, and provide programming and free software to program
your robot. I recommend you visit the Forum at Parallax.com, and read some of the threads there,
as they are helpful. This investment in time could answer some questions, and save you heartache.
You can search this forums postings, as it might be already answered by another member. Good Luck!