-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ogma-cli
: Allow customizing the ROS application template. Refs #162.
#163
Merged
ivanperez-keera
merged 9 commits into
nasa:develop
from
ivanperez-keera:develop-ros-templates
Nov 21, 2024
Merged
ogma-cli
: Allow customizing the ROS application template. Refs #162.
#163
ivanperez-keera
merged 9 commits into
nasa:develop
from
ivanperez-keera:develop-ros-templates
Nov 21, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The ROS backend used a fixed template to generate the ROS package. That template does not fit all use cases, and users are heavily modifying the output (which is hard to keep up with when there are changes), and or not using ogma altogether for that reason. To make it possible for users to customize the ROS output, we want to support using mustache templates for ROS packages, like we did with the cFS backend. This commit copies the functionality of template generation and expansion using mustache from ogma-core's cFS backend to ogma-extra.
…end. Refs nasa#162. The ROS backend used a fixed template to generate the ROS package. That template does not fit all use cases, and users are heavily modifying the output (which is hard to keep up with when there are changes), and or not using ogma altogether for that reason. To make it possible for users to customize the ROS output, we want to support using mustache templates for ROS packages, like we did with the cFS backend. A prior commit has copied the functionality of template generation and expansion using mustache from ogma-core's cFS backend to ogma-extra. This commit makes the cFS backend depend on that feature on ogma-extra, to avoid duplication.
… Refs nasa#162. The ROS package generation backend has a fixed template that it uses to generate the ROS nodes. That template does not fit all use cases, so we are finding users heavily modifying the output (which is hard to keep up with when there are changes), and or not using ogma altogether for that reason. This commit modifies the ogma-core ros command to use mustache to generate the ROS monitoring package via a template and variable expansion. We adapt the template to also use those variables, and we modify the cabal file to include the new files as data files that are copied over during installation.
…ation. Refs nasa#162. The ROS package generation backend has a fixed template that it uses to generate the ROS package. That template does not fit all use cases, so we are finding users heavily modifying the output (which is hard to keep up with when there are changes), and or not using ogma altogether for that reason. A recent commit introduced the ability to use mustache to expand variables in a template. This commit modifies the ros command to accept an additional argument that points to a user-provided directory with a custom template.
…irectory to ROS app command. Refs nasa#162. The ROS package generation backend has a fixed template that it uses to generate the ROS package. That template does not fit all use cases, so we are finding users heavily modifying the output (which is hard to keep up with when there are changes), and or not using ogma altogether for that reason. A recent commit introduced into ogma-core the ability to use a custom provided template and expand variables using mustache. This commit exposes that new parameter to the user in the CLI.
…n. Refs nasa#162. The ROS package generation backend used a fixed template to generate the ROS package. That template did not fit all use cases, and users are modifying the output (which is hard to keep up with when there are changes), and or not using ogma altogether for that reason. Prior commits have expanded the command to allow for customization of the template using a user-provided directory and expanding variables in the template using mustache. This commit documents the new feature in the README.
Change Manager: Verified that:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adjust
ogma-cli
andogma-core
to allow customizing the ROS application by using custom-provided templates, as prescribed in the solution proposed for #162.