Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

CuUwrRobotics/template-opencv

Repository files navigation

HOW TO SET UP THIS TEMPLATE

  • Click 'Use this template' and create your repository (check our workflow information for more on naming repositories first!)
  • Run the code from file setup/labels.json in Chrome's Inspect Element console while on the GitHub labels page to update all labels
  • If the submodules are not included (if you can't see the folders ros-docker and catkin-setups), run these commands from your console in the repository:
    • git submodule add https://github.com/CuUwrRobotics/ros-docker.git
    • git submodule add https://github.com/CuUwrRobotics/catkin-setups.git
  • Delete setup/* directory and files
  • Update this readme with a description of your program and any particulars of using it

HOW TO USE THIS TEMPLATE

  • cd ros-docker
  • make (creates the Docker container and puts code in it)
  • Once it finishes making the docker container, detach (^P then ^Q where ^ means ctrl-)
  • docker exec -it piranhabot_container bash(This will enter the container for the Linux system)
  • cd ~/catkin_make
  • make (this will build/link the actual code)
  • rosrun template-opencv template-opencv (runs C++ executable that was built by running make)
  • rosrun template-opencv main.py (runs Python code that was linked by running make)
  • An image should show up for both! (Make sure MobaXterm is running.)

This has the code to run a program that will open an image, load it, modify it, and go from there. I highly recommend using the existing code as the starting point for your code! It's all 'boiler plate' code, so there's no reason to rewrite it. I wrote both Python and C++ code that are functionally identical, either one will work for your usage!

Check out the workflow information for how to use our repositories!

About

A template package with working OpenCV code.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published