"track to" object under "parent" constraint I work on this project for which we have a robot arm (6 servos), a camera attached to its extremity which tracks a physical object, and we wish to set up the experiment in Blender. We used an armature to model the robot, and rotations are blocked to mimic the real robot. 

We want to be able to provide the position of the camera (which targets the object) and we want to obtain from that the rotation of the servos at each extremity of the bones of the armature. 

The first problem we have is to constrain the camera to the last bone (to which it is attached), but at the same time we want it to target an object. We tried to use parenting, copy location/rotation, but in the end the camera keeps moving (and ignoring at least one of the constraints)

Do you have any idea of how we can fix that? 

Once this problem is solved, I hope we can extract the kinematics of the robot. 

link: blend file

Thanks, 

-- 
Matt
As I understand your problem here the my solution.

Try to do this setup from different way.


Add a "rotation" bone, witch will control hole system in z rotation.


next setup "camera direction" bone, lock its moving in x axis and parent it to the "rotation" bone. I use IK in both cases.


When you just need to setup your bones with correct lengths and axis locks. On last bone make IK constraint to the "camera direction" bone with rotation option enabled