This project contains code examples created in Visual Studio Code for Computer Vision using C++ & OpenCV & Point Cloud Library (PCL) in ROS 2. These examples are created for the Computer Vision Subject of Robotics Software Engineering Degree at URJC.
This package is recommended to use with the TIAGO simulator. *Under migration
You need to have previously installed ROS 2. Please follow this guide if you don't have it.
source /opt/ros/jazzy/setup.bash
Clone the repository to your workspace:
mkdir -p ~/cv_ws/src
cd ~/cv_ws/src/
git clone https://github.com/jmguerreroh/computer_vision.git
cd ~/cv_ws/
rosdep install --from-paths src --ignore-src -r -y
colcon build --symlink-install --cmake-args -DBUILD_TESTING=OFF
Execute:
ros2 launch computer_vision cv.launch.py
If you want to use your own robot, in the launcher, change the topic names to match the robot topics.
- /usr/bin/ld shows libraries conflicts between two versions:
Probably you have installed and built your own OpenCV version, rename your local folder:
mv /usr/local/lib/cmake/opencv4 /usr/local/lib/cmake/oldopencv4
This project was made by José Miguel Guerrero, Associate Professor at Universidad Rey Juan Carlos.
Copyright © 2024.
This work is licensed under the terms of the MIT license.