3.6 KiB
3.6 KiB
Consolidate compiler generated dependencies of target convert_pcd2pgm
[ 50%] Building CXX object CMakeFiles/convert_pcd2pgm.dir/src/pcd2pgm.cpp.o
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp: In function ‘int main(int, char**)’:
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:102:24: error: no matching function for call to ‘rclcpp::Node::get_parameter(const char [15], std::string&, std::string)’
102 | node->get_parameter("map_topic_name", map_topic_name, std::string("map"));
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321,
from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:1:
/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:1: note: candidate: ‘template<class ParameterT> bool rclcpp::Node::get_parameter(const string&, ParameterT&) const’
286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const
| ^~~~
/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:1: note: template argument deduction/substitution failed:
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:102:24: note: candidate expects 2 arguments, 3 provided
102 | node->get_parameter("map_topic_name", map_topic_name, std::string("map"));
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:1:
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp:647:3: note: candidate: ‘rclcpp::Parameter rclcpp::Node::get_parameter(const string&) const’
647 | get_parameter(const std::string & name) const;
| ^~~~~~~~~~~~~
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp:647:3: note: candidate expects 1 argument, 3 provided
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp:666:3: note: candidate: ‘bool rclcpp::Node::get_parameter(const string&, rclcpp::Parameter&) const’
666 | get_parameter(const std::string & name, rclcpp::Parameter & parameter) const;
| ^~~~~~~~~~~~~
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp:666:3: note: candidate expects 2 arguments, 3 provided
gmake[2]: *** [CMakeFiles/convert_pcd2pgm.dir/build.make:76: CMakeFiles/convert_pcd2pgm.dir/src/pcd2pgm.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/convert_pcd2pgm.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
[ 50%] Building CXX object CMakeFiles/convert_pcd2pgm.dir/src/pcd2pgm.cpp.o
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp: In function ‘int main(int, char**)’:
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:102:24: error: no matching function for call to ‘rclcpp::Node::get_parameter(const char [15], std::string&, std::string)’
102 | node->get_parameter("map_topic_name", map_topic_name, std::string("map"));
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/humble/include/rclcpp/rclcpp/node.hpp:1321,
from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:1:
/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:1: note: candidate: ‘template<class ParameterT> bool rclcpp::Node::get_parameter(const string&, ParameterT&) const’
286 | Node::get_parameter(const std::string & name, ParameterT & parameter) const
| ^~~~
/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:286:1: note: template argument deduction/substitution failed:
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:102:24: note: candidate expects 2 arguments, 3 provided
102 | node->get_parameter("map_topic_name", map_topic_name, std::string("map"));
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /opt/ros/humble/include/rclcpp/rclcpp/executors/single_threaded_executor.hpp:28,
from /opt/ros/humble/include/rclcpp/rclcpp/executors.hpp:22,
from /opt/ros/humble/include/rclcpp/rclcpp/rclcpp.hpp:155,
from /home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:1:
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp:647:3: note: candidate: ‘rclcpp::Parameter rclcpp::Node::get_parameter(const string&) const’
647 | get_parameter(const std::string & name) const;
| ^~~~~~~~~~~~~
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp:647:3: note: candidate expects 1 argument, 3 provided
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp:666:3: note: candidate: ‘bool rclcpp::Node::get_parameter(const string&, rclcpp::Parameter&) const’
666 | get_parameter(const std::string & name, rclcpp::Parameter & parameter) const;
| ^~~~~~~~~~~~~
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp:666:3: note: candidate expects 2 arguments, 3 provided
gmake[2]: *** [CMakeFiles/convert_pcd2pgm.dir/build.make:76: CMakeFiles/convert_pcd2pgm.dir/src/pcd2pgm.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:137: CMakeFiles/convert_pcd2pgm.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2