3.3 KiB
3.3 KiB
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp: In function ‘int main(int, char**)’:
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:93:27: error: no matching function for call to ‘rclcpp::Node::get_parameter_or(const char [11], double&, int)’
93 | node->get_parameter_or("thre_z_min", thre_z_min,-10); // 0.5 changed
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:302:1: note: candidate: ‘template<class ParameterT> bool rclcpp::Node::get_parameter_or(const string&, ParameterT&, const ParameterT&) const’
302 | Node::get_parameter_or(
| ^~~~
/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:302:1: note: template argument deduction/substitution failed:
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:93:27: note: deduced conflicting types for parameter ‘const ParameterT’ (‘double’ and ‘int’)
93 | node->get_parameter_or("thre_z_min", thre_z_min,-10); // 0.5 changed
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:721:3: note: candidate: ‘template<class ParameterT> ParameterT rclcpp::Node::get_parameter_or(const string&, const ParameterT&) const’
721 | get_parameter_or(
| ^~~~~~~~~~~~~~~~
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp:721:3: note: template argument deduction/substitution failed:
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:93:27: note: candidate expects 2 arguments, 3 provided
93 | node->get_parameter_or("thre_z_min", thre_z_min,-10); // 0.5 changed
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:93:27: error: no matching function for call to ‘rclcpp::Node::get_parameter_or(const char [11], double&, int)’
93 | node->get_parameter_or("thre_z_min", thre_z_min,-10); // 0.5 changed
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:302:1: note: candidate: ‘template<class ParameterT> bool rclcpp::Node::get_parameter_or(const string&, ParameterT&, const ParameterT&) const’
302 | Node::get_parameter_or(
| ^~~~
/opt/ros/humble/include/rclcpp/rclcpp/node_impl.hpp:302:1: note: template argument deduction/substitution failed:
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:93:27: note: deduced conflicting types for parameter ‘const ParameterT’ (‘double’ and ‘int’)
93 | node->get_parameter_or("thre_z_min", thre_z_min,-10); // 0.5 changed
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:721:3: note: candidate: ‘template<class ParameterT> ParameterT rclcpp::Node::get_parameter_or(const string&, const ParameterT&) const’
721 | get_parameter_or(
| ^~~~~~~~~~~~~~~~
/opt/ros/humble/include/rclcpp/rclcpp/node.hpp:721:3: note: template argument deduction/substitution failed:
/home/firmament/codes/24navigation/src/pcdmap2pgm/src/pcd2pgm.cpp:93:27: note: candidate expects 2 arguments, 3 provided
93 | node->get_parameter_or("thre_z_min", thre_z_min,-10); // 0.5 changed
| ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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