← Back


Lab Session Week-07 – “Introduce OpenCV”

Last Update: 2024-10-21


0. Setup VSCode for ROS Developing

  • Make sure you installe the C/C++ extension:

pic0

  • ctrl+shift+p to open vscode control panel,click C/C++: Edit Configurations (JSON), then a folder named .vscode will be generated.

pic1

  • open .vscode/c_cpp_properties.json, add ROS Path in the includePath section; Then you can enjoy the ROS code completion with vscode!

pic2

1. Basci API and Useful Scripts

Download the code materials and explore the provided codes in introduce_opencv folder by yourself

2. Integrate OpenCV to ROS2

Place the opencv_pkg in the provided code materials into a ROS2 colcon workspace, then build the workspace, explore codes in opencv_pkg