forked from epfl-lasa/modulo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add and install component descriptions (#31)
* Add and install component descriptions * 2.2.6 -> 2.2.7 * Update CHANGELOG * Reword parameter description --------- Co-authored-by: Enrico Eberhard <32450951+eeberhard@users.noreply.github.com>
- Loading branch information
Showing
10 changed files
with
88 additions
and
6 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.2.6 | ||
2.2.7 |
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
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
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
31 changes: 31 additions & 0 deletions
31
source/modulo_components/component_descriptions/modulo_component.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "Component", | ||
"description": { | ||
"brief": "A wrapper for rclcpp::Node to simplify application composition through unified component interfaces.", | ||
"details": "This class is intended for direct inheritance to implement custom components that perform one-shot or externally triggered operations." | ||
}, | ||
"virtual": true, | ||
"registration": "modulo_components::Component", | ||
"inherits": "", | ||
"parameters": [ | ||
{ | ||
"display_name": "Period", | ||
"description": "The time interval in seconds for all periodic callbacks", | ||
"parameter_name": "period", | ||
"parameter_type": "double", | ||
"default_value": "0.1" | ||
} | ||
], | ||
"predicates": [ | ||
{ | ||
"display_name": "In error state", | ||
"description": "True if the component is in error state", | ||
"predicate_name": "in_error_state" | ||
}, | ||
{ | ||
"display_name": "Is finished", | ||
"description": "True if the on_execute_callback() method of one-shot components successfully finished", | ||
"predicate_name": "is_finished" | ||
} | ||
] | ||
} |
46 changes: 46 additions & 0 deletions
46
source/modulo_components/component_descriptions/modulo_lifecycle_component.json
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "Lifecycle Component", | ||
"description": { | ||
"brief": "A wrapper for rclcpp_lifecycle::LifecycleNode to simplify application composition through unified component interfaces while supporting lifecycle states and transitions.", | ||
"details": "This class is intended for direct inheritance to implement custom state-based components that perform different behaviors based on their state and on state transitions." | ||
}, | ||
"virtual": true, | ||
"registration": "modulo_components::LifecycleComponent", | ||
"inherits": "", | ||
"parameters": [ | ||
{ | ||
"display_name": "Period", | ||
"description": "The time interval in seconds for all periodic callbacks", | ||
"parameter_name": "period", | ||
"parameter_type": "double", | ||
"default_value": "0.1" | ||
} | ||
], | ||
"predicates": [ | ||
{ | ||
"display_name": "In error state", | ||
"description": "True if the component is in error state", | ||
"predicate_name": "in_error_state" | ||
}, | ||
{ | ||
"display_name": "Is unconfigured", | ||
"description": "True if the component is in an unconfigured state, either through construction or cleanup transition", | ||
"predicate_name": "is_unconfigured" | ||
}, | ||
{ | ||
"display_name": "Is inactive", | ||
"description": "True if the component is in an inactive state, either through the configuration or deactivation transition", | ||
"predicate_name": "is_inactive" | ||
}, | ||
{ | ||
"display_name": "Is active", | ||
"description": "True if the component is in an active state, executing the step function periodically", | ||
"predicate_name": "is_active" | ||
}, | ||
{ | ||
"display_name": "Is finalized", | ||
"description": "True if component is in a finalized state, either through the shutdown or error transition", | ||
"predicate_name": "is_finalized" | ||
} | ||
] | ||
} |
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
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
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