diff --git a/copier.yml b/copier.yml index eba1c39..f9a902f 100644 --- a/copier.yml +++ b/copier.yml @@ -4,6 +4,7 @@ _answers_file: .copier/answers.service-ros1-catkin.yml RUN_COMMAND: /launch video_stream_opencv stereo_cameras.launch port_camera_device:="/dev/video0" starboard_camera_device:="/dev/video1" #Source can be either a local folder or a git repo, if you path starts with `git+` SOURCE: ./ +PROJECT_NAME: My sample project #This just checks if it can contact the ROS master, ideally we'd check for something specific to your ROS node. #This can be tricky when you set ROS node paramaters from environment variables or the like, you may need to write a shell script. # I'll try to make auto-generating health checks a bit easier in the future. diff --git a/src/.devcontainer/devcontainer.json b/src/.devcontainer/devcontainer.json index b714ece..00908b7 100644 --- a/src/.devcontainer/devcontainer.json +++ b/src/.devcontainer/devcontainer.json @@ -13,5 +13,5 @@ }, "forwardPorts": [ ], - "postCreateCommand": "/bin/bash -c 'source /opt/ros/noetic/setup.bash && catkin_make install'" + //"postCreateCommand": "/bin/bash -c 'source /opt/ros/noetic/setup.bash && catkin_make install'" } diff --git a/src/Dockerfile.jinja b/src/Dockerfile.jinja index 483e412..eecc0fe 100644 --- a/src/Dockerfile.jinja +++ b/src/Dockerfile.jinja @@ -11,7 +11,7 @@ RUN apt-get install --yes python3-rosdep python3-rosinstall python3-rosinstall-g WORKDIR /root/catkin_ws/src {% if SOURCE.startswith("git+") %} -RUN git clone {{source}} +RUN git clone {{SOURCE}} {% elif source %} COPY {{SOURCE}} . {% endif %} diff --git a/src/README.md.jinja b/src/README.md.jinja new file mode 100644 index 0000000..b3ebf6f --- /dev/null +++ b/src/README.md.jinja @@ -0,0 +1,11 @@ +# {{PROJECT_NAME}} + + + +### Spiri SDK and development workflows + +This project is intended to be used as part of the Spiri Robotics SDK +with VSCode and devcontainers. + +Please refer to the spiri SDK documentation for a quickstart guide on +how to develop this project.