libg2o
branch : debian/rolling/jammy/libg2o
repo: https://github.com/ros2-gbp/libg2o-release/tree/debian/humble/jammy/libg2o
tryint to compile using colcon and ros2_ humble and get this compile error. Can somebody help me with this error?
/home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp: In static member function ‘static void teb_local_planner::TebOptimalPlanner::registerG2OTypes()’:
/home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:137:99: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator >’ to ‘g2o::AbstractHyperGraphElementCreator*’
137
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/optimal_planner.h:56,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:42:
/home/hua/laba/rhoban/workspace/src/install/include/g2o/core/factory.h:60:83: note: initializing argument 2 of ‘void g2o::Factory::registerType(const string&, g2o::AbstractHyperGraphElementCreator*)’
60
~~~~~~~~~~^
In file included from /opt/ros/humble/include/pluginlib/pluginlib/class_loader_imp.hpp:57,
from /opt/ros/humble/include/pluginlib/pluginlib/class_loader.hpp:334,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/teb_local_planner_ros.h:42,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/teb_local_planner_ros.cpp:39:
/home/hua/laba/rhoban/workspace/src/install/include/costmap_converter/costmap_converter_interface.h: In member function ‘void costmap_converter::BaseCostmapToPolygons::startWorker(rclcpp::GenericRate::SharedPtr, nav2_costmap_2d::Costmap2D*, bool)’:
/home/hua/laba/rhoban/workspace/src/install/include/costmap_converter/costmap_converter_interface.h:197:41: warning: too many arguments for format [-Wformat-extra-args]
197
RCLCPPDEBUG(nh->get_logger(), "costmap_converter", "Spinning up a thread for the CostmapToPolygons plugin");
^~~~~~~
/home/hua/laba/rhoban/workspace/src/install/include/costmap_converter/costmap_converter_interface.h: In member function ‘void costmap_converter::BaseCostmapToDynamicObstacles::loadStaticCostmapConverterPlugin(const string&, rclcpp::Node::SharedPtr)’:
/home/hua/laba/rhoban/workspace/src/install/include/costmap_converter/costmap_converter_interface.h:313:32: warning: format ‘%s’ expects argument of type ‘char*’, but argument 5 has type ‘const string’ {aka ‘const std::__cxx11::basic_string’} [-Wformat=]
313
^~~~~~~~~~~~~~~~~~~~~
In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/teb_local_planner_ros.h:68,
from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/teb_local_planner_ros.cpp:39:
/home/hua/laba/rhoban/workspace/src/install/include/costmap_converter/costmap_converter_interface.h:313:119: note: format string is defined here
313
~~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:138:107: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:139:110: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:140:112: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:141:103: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:142:122: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:143:111: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:144:122: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:145:120: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:146:130: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:147:141: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:148:139: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:149:127: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:150:122: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:151:103: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:152:120: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:153:118: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:154:104: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~^~~~~~~~~~~~^ /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/optimal_planner.cpp:155:112: error: cannot convert ‘std::shared_ptr<g2o::HyperGraphElementCreator~~~~~~~~~~~~~^~~~~~~~~~~~^ In file included from /opt/ros/humble/include/pluginlib/pluginlib/class_loader_imp.hpp:57, from /opt/ros/humble/include/pluginlib/pluginlib/class_loader.hpp:334, from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/teb_local_planner_ros.h:42, from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/teb_local_planner_ros.cpp:39: /home/hua/laba/rhoban/workspace/src/install/include/costmap_converter/costmap_converter_interface.h: In member function ‘void costmap_converter::BaseCostmapToPolygons::startWorker(rclcpp::GenericRate~~~~~~ /home/hua/laba/rhoban/workspace/src/install/include/costmap_converter/costmap_converter_interface.h: In member function ‘void costmap_converter::BaseCostmapToDynamicObstacles::loadStaticCostmapConverterPlugin(const string&, rclcpp::Node::SharedPtr)’: /home/hua/laba/rhoban/workspace/src/install/include/costmap_converter/costmap_converter_interface.h:313:32: warning: format ‘%s’ expects argument of type ‘char*’, but argument 5 has type ‘const string’ {aka ‘const std::__cxx11::basic_string~~~~~~~~~~~~~~~~~~~~ In file included from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/include/teb_local_planner/teb_local_planner_ros.h:68, from /home/hua/laba/rhoban/workspace/src/teb_local_planner/teb_local_planner/src/teb_local_planner_ros.cpp:39: /home/hua/laba/rhoban/workspace/src/install/include/costmap_converter/costmap_converter_interface.h:313:119: note: format string is defined here 313gmake[2]: [CMakeFiles/teb_local_planner.dir/build.make:90: CMakeFiles/teb_local_planner.dir/src/optimal_planner.cpp.o] Error 1 gmake[2]: Waiting for unfinished jobs.... gmake[1]: [CMakeFiles/Makefile2:137: CMakeFiles/teb_local_planner.dir/all] Error 2 gmake: [Makefile:146: a