- 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
andcatkin-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
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^
meansctrl-
) 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 runningmake
)rosrun template-opencv main.py
(runs Python code that was linked by runningmake
)- 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!