This is all much easier with three-phase brushless motors. You can hold the motor rotor at a specific angle under computer control.[1] With DC motors, you could just exert a torque, and it was hard to maintain tight position control, especially if the load changed. So with DC motors, robots needed more gearing down. The usual arrangement was a small, fast motor and a high-reduction geartrain. Adept Robotics was the first to go in the opposite direction with a direct-drive motor, a pancake-like thing almost a foot across.
(Robotics is full of routine engineering headaches like that. Many have been solved in recent years. Motor control used to be a much larger headache, and good motor controllers used to be a lot more expensive.)
[1] http://hackaday.com/2015/04/20/driving-a-brushless-dc-motor-...