I was getting the following types of errors when trying to colcon build this package on my Ubuntu 22.04 system with ROS2 Humble:
/home/mfe/scout_ws/src/scout_ros2/scout_base/src/scout_base_ros.cpp:28:26: error: no matching function for call to ‘westonrobot::ScoutBaseRos::declare_parameter(const char [13])’
28 | this->declare_parameter("control_rate");
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
I wasn't sure how to fix this, but the errors went away when I provided a default value on each of the this->declare_parameter calls, e.g., this->declare_parameter("port_name", "can0");
I was getting the following types of errors when trying to
colcon build
this package on my Ubuntu 22.04 system with ROS2 Humble:I wasn't sure how to fix this, but the errors went away when I provided a default value on each of the
this->declare_parameter
calls, e.g.,this->declare_parameter("port_name", "can0");