This examples demonstrates the function mrpt::vision::bundle_adj_full with a set of simulated monocular camera observations. See the bundle adjustment module documentation on the C++ API.
Available here: http://mrpt.googlecode.com/svn/trunk/samples/bundle_adj_full_demo/