Several small fixes

This commit is contained in:
Alex Davies 2024-09-13 12:40:45 -03:00
parent dac7602363
commit dd68457bda
4 changed files with 14 additions and 2 deletions

View File

@ -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.

View File

@ -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'"
}

View File

@ -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 %}

11
src/README.md.jinja Normal file
View File

@ -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.