After running colcon build, I encountered the following warning message and made modifications accordingly
`--- stderr: kvaser_interface
In file included from /opt/ros/humble/include/rclcpp/rclcpp/logging.hpp:24,
... ....
from /home/user/work_space/project/src/kvaser_interface/include/kvaser_interface/kvaser_reader_node.hpp:24,
from /home/user/work_space/project/src/kvaser_interface/src/kvaser_reader_node.cpp:21:
/home/user/work_space/project/src/kvaser_interface/src/kvaser_reader_node.cpp: In constructor ‘kvaser_interface::KvaserReaderNode::KvaserReaderNode(rclcpp::NodeOptions)’:
/home/user/work_space/project/src/kvaser_interface/src/kvaser_reader_node.cpp:45:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
45
In file included from /opt/ros/humble/include/rclcpp/rclcpp/logging.hpp:24,
from /home/user/work_space/project/src/kvaser_interface/include/kvaser_interface/kvaser_reader_node.hpp:24,
from /home/user/work_space/project/src/kvaser_interface/src/kvaser_reader_node.cpp:21:
/home/user/work_space/project/src/kvaser_interface/src/kvaser_reader_node.cpp: In member function ‘void kvaser_interface::KvaserReaderNode::read()’:
/home/user/work_space/project/src/kvaser_interface/src/kvaser_reader_node.cpp:137:29: warning: format ‘%s’ expects argument of type ‘char*’, but argument 6 has type ‘std::string’ {aka ‘std::__cxx11::basic_string’} [-Wformat=]
137
this->get_logger(), "Error reading CAN message: %d - %s",
/home/user/work_space/project/src/kvaser_interface/src/kvaser_reader_node.cpp:137:63: note: format string is defined here
137
this->get_logger(), "Error reading CAN message: %d - %s",
~^
char*
In file included from /opt/ros/humble/include/rclcpp/rclcpp/logging.hpp:24,
from /home/user/work_space/project/src/kvaser_interface/include/kvaser_interface/kvaser_writer_node.hpp:24,
from /home/user/work_space/project/src/kvaser_interface/src/kvaser_writer_node.cpp:21:
/home/user/work_space/project/src/kvaser_interface/src/kvaser_writer_node.cpp: In constructor ‘kvaser_interface::KvaserWriterNode::KvaserWriterNode(rclcpp::NodeOptions)’:
/home/user/work_space/project/src/kvaser_interface/src/kvaser_writer_node.cpp:46:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=]
46
After running colcon build, I encountered the following warning message and made modifications accordingly
In file included from /opt/ros/humble/include/rclcpp/rclcpp/logging.hpp:24, ... .... from /home/user/work_space/project/src/kvaser_interface/include/kvaser_interface/kvaser_reader_node.hpp:24, from /home/user/work_space/project/src/kvaser_interface/src/kvaser_reader_node.cpp:21: /home/user/work_space/project/src/kvaser_interface/src/kvaser_reader_node.cpp: In constructor ‘kvaser_interface::KvaserReaderNode::KvaserReaderNode(rclcpp::NodeOptions)’: /home/user/work_space/project/src/kvaser_interface/src/kvaser_reader_node.cpp:45:35: warning: format ‘%d’ expects argument of type ‘int’, but argument 5 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Wformat=] 45
~~~~~~~~In file included from /opt/ros/humble/include/rclcpp/rclcpp/logging.hpp:24,
~~~~~~~138~~~~~~~~~In file included from /opt/ros/humble/include/rclcpp/rclcpp/logging.hpp:24,
~~~~~~~~Finished <<< kvaser_interface [23.9s]`