-
-
Notifications
You must be signed in to change notification settings - Fork 61
feat: add ros2 bindings #582
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
Merged
+197
−1
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
e1191d9
feat: add ros2 bindings
amparo-siemens f0e5c17
fix(bindings): add bindingVersion to ros2 bindings
amparo-siemens 03507d8
Merge branch 'master' into master
Pakisan 8ffd623
fix: ROS 2 operation binding
Pakisan 78eefdf
fix: update ROS 2 server binding
Pakisan 95e5a3b
feat: register ROS 2 server binging
Pakisan 091bcf0
chore: remove extra line from serverBindingsObject
Pakisan cf31e9e
feat: register ROS 2 operation binding
Pakisan 5bed98f
chore: remove extra new line from serverBindingsObject
Pakisan b285fda
test: register ROS 2 server and operation bindings
Pakisan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,88 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-07/schema#", | ||
| "$id": "http://asyncapi.com/bindings/ros2/0.1.0/operation.json", | ||
| "description": "This object contains information about the operation representation in ROS 2.", | ||
| "examples": [ | ||
| { | ||
| "node": "/turtlesim", | ||
| "qosPolicies": { | ||
| "deadline": "-1", | ||
| "durability": "volatile", | ||
| "history": "unknown", | ||
| "leaseDuration": "-1", | ||
| "lifespan": "-1", | ||
| "liveliness": "automatic", | ||
| "reliability": "reliable" | ||
| }, | ||
| "role": "subscriber" | ||
| } | ||
| ], | ||
| "type": "object", | ||
| "required": [ "role", "node" ], | ||
| "properties": { | ||
| "bindingVersion": { | ||
| "description": "The version of this binding. If omitted, 'latest' MUST be assumed.", | ||
| "type": "string", | ||
| "enum": [ "0.1.0" ] | ||
| }, | ||
| "node": { | ||
| "description": "The name of the ROS 2 node that implements this operation.", | ||
| "type": "string" | ||
| }, | ||
| "qosPolicies": { | ||
| "type": "object", | ||
| "properties": { | ||
| "deadline": { | ||
| "description": "The expected maximum amount of time between subsequent messages being published to a topic. -1 means infinite.", | ||
| "type": "integer" | ||
| }, | ||
| "durability": { | ||
| "description": "Persistence specification that determines message availability for late-joining subscribers", | ||
| "type": "string", | ||
| "enum": [ "transient_local", "volatile" ] | ||
| }, | ||
| "history": { | ||
| "description": "Policy parameter that defines the maximum number of samples maintained in the middleware queue", | ||
| "type": "string", | ||
| "enum": [ "keep_last", "keep_all", "unknown" ] | ||
| }, | ||
| "leaseDuration": { | ||
| "description": "The maximum period of time a publisher has to indicate that it is alive before the system considers it to have lost liveliness. -1 means infinite.", | ||
| "type": "integer" | ||
| }, | ||
| "lifespan": { | ||
| "description": "The maximum amount of time between the publishing and the reception of a message without the message being considered stale or expired. -1 means infinite.", | ||
| "type": "integer" | ||
| }, | ||
| "liveliness": { | ||
| "description": "Defines the mechanism by which the system monitors and determines the operational status of communication entities within the network.", | ||
| "type": "string", | ||
| "enum": [ "automatic", "manual" ] | ||
| }, | ||
| "reliability": { | ||
| "description": "Specifies the communication guarantee model that determines whether message delivery confirmation between publisher and subscriber is required.", | ||
| "type": "string", | ||
| "enum": [ "best_effort", "realiable" ] | ||
| } | ||
| } | ||
| }, | ||
| "role": { | ||
| "description": "Specifies the ROS 2 type of the node for this operation.", | ||
| "type": "string", | ||
| "enum": [ | ||
| "publisher", | ||
| "action_client", | ||
| "service_client", | ||
| "subscriber", | ||
| "action_server", | ||
| "service_server" | ||
| ] | ||
| } | ||
| }, | ||
| "patternProperties": { | ||
| "^x-[\\w\\d\\.\\x2d_]+$": { | ||
| "$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json" | ||
| } | ||
| }, | ||
| "additionalProperties": false | ||
| } | ||
This file contains hidden or 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,35 @@ | ||
| { | ||
| "$schema": "http://json-schema.org/draft-07/schema#", | ||
| "$id": "http://asyncapi.com/bindings/ros2/0.1.0/server.json", | ||
| "description": "This object contains information about the server representation in ROS 2.", | ||
| "examples": [ | ||
| { | ||
| "domainId": "0", | ||
| "rmwImplementation": "rmw_fastrtps_cpp" | ||
| } | ||
| ], | ||
| "type": "object", | ||
| "required": [ "host", "protocol" ], | ||
| "properties": { | ||
| "bindingVersion": { | ||
| "description": "The version of this binding. If omitted, 'latest' MUST be assumed.", | ||
| "type": "string", | ||
| "enum": [ "0.1.0" ] | ||
| }, | ||
| "domainId": { | ||
| "description": "All ROS 2 nodes use domain ID 0 by default. To prevent interference between different groups of computers running ROS 2 on the same network, a group can be set with a unique domain ID.", | ||
| "type": "integer", | ||
| "maximum": 231, | ||
| "minimum": 0 | ||
| }, | ||
| "rmwImplementation": { | ||
| "description": "Specifies the ROS 2 middleware implementation to be used. This determines the underlying middleware implementation that handles communication.", | ||
| "type": "string" | ||
| } | ||
| }, | ||
amparo-siemens marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "patternProperties": { | ||
| "^x-[\\w\\d\\.\\x2d_]+$": { | ||
| "$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json" | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.