How to create a mock publisher in ROS2 using gmock?
Hello
I would like to create a mock publisher for my ROS2 publisher unit tests. But apparently, there is no pure virtual Publisher interface class in rclcpp that I can implement in order to create a mock publisher: https://docs.ros2.org/foxy/api/rclcpp...
Whereas I am able to create a mock node by implementing rclcpp::node_interfaces::NodeBaseInterface class.
Is there a way to create a mock publisher in ROS2?
Thanks in advance.
Hey, I am trying to use gmock to mock some calls to rclcpp, something very similar to what you were doing. Did you solve this isue?