add g2o
xml writing