Code re-extructuration to simplify the inclusion of libhaloc in other ros packages