I have written a library (.h & .so) in cpp which expose a feature (function call) that involves nlopt and pinocchio.
from my test file packaged along with the lib