fix template typo, add nvidia_gpu

This commit is contained in:
Burak Ozter 2024-10-16 08:12:33 -03:00
parent 16d32be258
commit 6a1f8139a7
1 changed files with 14 additions and 5 deletions

View File

@ -1,6 +1,6 @@
_subdirectory: src _subdirectory: src
_answers_file: .copier/answers.service-ros2-ament_cmake.yml _answers_file: .copier/answers.service-ros2-ament_cmake.yml
PACKAGE_NAME: PACKAGE_NAME:
default: myproject default: myproject
type: str type: str
help: The folder your package lives in. Please avoid spaces. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes. help: The folder your package lives in. Please avoid spaces. It should start with a lower case letter and only contain lower case letters, digits, underscores, and dashes.
@ -22,11 +22,20 @@ LANGUAGES:
- Python - Python
- CPP - CPP
RUN_COMMAND: ros2 run {{ PACKAGE_NAME }} {{ "my_python_node.py" if 'Python' in LANGUAGES else "my_node" if "CPP" in LANGUAGES else "yourcommandGoes here" }} RUN_COMMAND: ros2 run {{ PACKAGE_NAME }} {{ "my_python_node" if 'Python' in LANGUAGES else "my_node" if "CPP" in LANGUAGES else "yourcommandGoes here" }}
ENABLE_NVIDIA_GPU:
default: False
type: bool
help: |
ENABLE_NVIDIA_GPU
Enabling nvidia gpus make deployment much more complicated.
Ensure you have the nvidia container toolkit installed and
working properly.
HEALTHCHECK: HEALTHCHECK:
defualt: HEALTHCHECK --start-period=60s --start-interval=1s CMD /ros_entrypoint.sh ros2 topic list default: HEALTHCHECK --start-period=60s --start-interval=1s CMD /ros_entrypoint.sh ros2 topic list
type: str type: str
help: | help: |
Set a health check. Set a health check.
This stub health check just sees if we can talk to the ROS master This stub health check just sees if we can talk to the ROS master