Skip to content

Commit

Permalink
simplified exercise template
Browse files Browse the repository at this point in the history
  • Loading branch information
afdaniele committed Oct 14, 2022
1 parent b1e5d67 commit 13cdbb4
Show file tree
Hide file tree
Showing 17 changed files with 32 additions and 197 deletions.
12 changes: 0 additions & 12 deletions .dockerignore

This file was deleted.

84 changes: 0 additions & 84 deletions Dockerfile

This file was deleted.

48 changes: 2 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,47 +1,3 @@
# Template: template-exercise
# Exercise: <EXERCISE_NAME_HERE>

This template provides a boilerplate repository
for developing ROS-based software in Duckietown.

**NOTE:** If you want to develop software that does not use
ROS, check out [this template](https://github.com/duckietown/template-basic).


## How to use it

### 1. Fork this repository

Use the fork button in the top-right corner of the github page to fork this template repository.


### 2. Create a new repository

Create a new repository on github.com while
specifying the newly forked template repository as
a template for your new repository.


### 3. Define dependencies

List the dependencies in the files `dependencies-apt.txt` and
`dependencies-py3.txt` (apt packages and pip packages respectively).


### 4. Place your code

Place your code in the directory `/packages/` of
your new repository.


### 5. Setup launchers

The directory `/launchers` can contain as many launchers (launching scripts)
as you want. A default launcher called `default.sh` must always be present.

If you create an executable script (i.e., a file with a valid shebang statement)
a launcher will be created for it. For example, the script file
`/launchers/my-launcher.sh` will be available inside the Docker image as the binary
`dt-launcher-my-launcher`.

When launching a new container, you can simply provide `dt-launcher-my-launcher` as
command.
TODO: write documentation about the exercise here
File renamed without changes.
3 changes: 0 additions & 3 deletions configurations.yaml

This file was deleted.

1 change: 0 additions & 1 deletion dependencies-apt.txt

This file was deleted.

1 change: 0 additions & 1 deletion dependencies-py3.txt

This file was deleted.

40 changes: 21 additions & 19 deletions docs/config.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,28 @@
docs_config_version: v1

# CONFIGURE THESE TO MATCH YOUR PROJECT:
project: "REPOSITORY_NAME_HERE"

# TODO: these should be provided by `dts devel docs build ...`
#project: "EXERCISE_NAME_HERE"
#author: "YOUR_NAME_HERE"
#version: "-"

copyright: "Duckietown"
author: "YOUR_NAME_HERE"
version: "daffy"
custom_sections: [
"Configuration",
"Subscribers",
"Subscriber",
"Publishers",
"Publisher",
"Services",
"Service",
"Fields",
"Attribute",
"Attributes",
"inputs",
"input",
"outputs",
"output"
custom_sections: [
"Configuration",
"Subscribers",
"Subscriber",
"Publishers",
"Publisher",
"Services",
"Service",
"Fields",
"Attribute",
"Attributes",
"inputs",
"input",
"outputs",
"output"
]

# REFRAIN FROM CHANGING THESE SPHINX-SPECIFIC CONFIGURATION SETTINGS:
Expand Down Expand Up @@ -55,4 +58,3 @@ html_theme_options:
navigation_depth: 4
includehidden: False
titles_only: False

4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to REPOSITORY_NAME_HERE documentation!
==============================================
Documentation
=============

.. toctree::
:maxdepth: 1
Expand Down
Empty file removed docs/mock_imports
Empty file.
4 changes: 2 additions & 2 deletions docs/packages.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Duckietown Module: REPOSITORY_NAME_HERE
=======================================
Packages
========

.. toctree::
:glob:
Expand Down
6 changes: 3 additions & 3 deletions docs/packages/example.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Python Package: example
=======================
Documentation: example
======================

.. contents::

TODO: This is a placeholder description of the Python Package.
Write your documentation here.
1 change: 0 additions & 1 deletion html/HTML_DOCS_WILL_BE_GENERATED_HERE

This file was deleted.

23 changes: 0 additions & 23 deletions launchers/default.sh

This file was deleted.

File renamed without changes.
1 change: 1 addition & 0 deletions packages/PLACE_YOUR_CODE_HERE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# INTENTIONALLY LEFT BLANK
1 change: 1 addition & 0 deletions tests/PLACE_YOUR_TESTS_HERE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# INTENTIONALLY LEFT BLANK

0 comments on commit 13cdbb4

Please sign in to comment.