How to add cv_bridge support in code generation ?
23 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
I have a ros2 Gazebo environnement with a camera in it that output its data to a topic and I'm developping a simulink node to process the video. I made a simple simulink block that subscribe to the ROS2 topic, read the image and then ouput the result with a Video Viewer block. When I run it in Simulink there is no problem the Video is stream correctly. However, when I try to generate the ROS2 c++ node with the "Build model" option the colcon build fail with the following error:
CMake Error at CMakeLists.txt:22 (find_package): By not providing "Findcv_bridge.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "cv_bridge", but CMake did not find one. Could not find a package configuration file provided by "cv_bridge" with any of the following names: cv_bridgeConfig.cmake cv_bridge-config.cmake Add the installation prefix of "cv_bridge" to CMAKE_PREFIX_PATH or set "cv_bridge_DIR" to a directory containing one of the above files. If "cv_bridge" provides a separate development package or SDK, be sure it has been installed. -- Configuring incomplete, errors occurred!
First I was thinking that it was just missing the cv-bridge or the opencv package but they seems to be already installed. I'm a beginner in ROS and simulink coder so I don't really get what is the procedure to solve the dependency issue ?
0 Commenti
Risposte (1)
Josh Chen
il 25 Ott 2023
Hi Nicolas,
Since you mentioned that both packages seem to be already installed. I assume you are trying to build and run the model on the remote device where you run the ROS 2 Gazebo environment?
Could you please select "Remote Device" under "ROS" tab > "Deploy to" in your model and configure the device information before generating the code?
Note that both packages are installed on remote device, so local code generation (meaning if you are trying to generate code to local device) will not work.
Let me know if my assumption is not correct.
Josh
6 Commenti
Vedere anche
Categorie
Scopri di più su Network Connection and Exploration in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!