I am currently trying to optimize a multi constraints function for SLAM. Classic optimization function minimize reprojection errors with g2o like proposed in https://fzheng.me/2016/03/15/g2o-demo/.
My problem is that I do not know how to modify this g2o sample code to jointly optimize two constraints (for example : 1 constraint for reprojection error and 1 constraint for inertial error).
Regards,