You can get the source code of the example sample_cv_bridge_node.cpp from the cv_bridge_tutorial_pkg/src folder.
Step 2 – Creating source files
Get Mastering ROS for Robotics Programming - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.