-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the new node syntax for examples dataflow (#643)
Hi! I took a look at our `examples` directory, and while reading through some dataflows, I noticed that there are a lot of outdated node syntaxes: ```YML nodes: - id: rust-node custom: build: cargo build -p benchmark-example-node --release source: ../../target/release/benchmark-example-node ``` I think it would be better if we avoided using deprecated syntax in our example folder, as it will be one of the first things people look at.
- Loading branch information
Showing
12 changed files
with
138 additions
and
141 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
nodes: | ||
- id: rust-node | ||
custom: | ||
build: cargo build -p benchmark-example-node --release | ||
source: ../../target/release/benchmark-example-node | ||
outputs: | ||
- latency | ||
- throughput | ||
build: cargo build -p benchmark-example-node --release | ||
path: ../../target/release/benchmark-example-node | ||
outputs: | ||
- latency | ||
- throughput | ||
|
||
- id: rust-sink | ||
custom: | ||
build: cargo build -p benchmark-example-sink --release | ||
source: ../../target/release/benchmark-example-sink | ||
inputs: | ||
latency: rust-node/latency | ||
throughput: rust-node/throughput | ||
build: cargo build -p benchmark-example-sink --release | ||
path: ../../target/release/benchmark-example-sink | ||
inputs: | ||
latency: rust-node/latency | ||
throughput: rust-node/throughput |
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,8 +1,7 @@ | ||
nodes: | ||
- id: cxx-node-rust-api | ||
custom: | ||
source: build/node_rust_api | ||
inputs: | ||
tick: dora/timer/millis/500 | ||
outputs: | ||
- pose | ||
path: build/node_rust_api | ||
inputs: | ||
tick: dora/timer/millis/500 | ||
outputs: | ||
- pose |
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
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,17 +1,15 @@ | ||
nodes: | ||
- id: turtle | ||
custom: | ||
source: ./random_turtle.py | ||
inputs: | ||
direction: control/direction | ||
outputs: | ||
- turtle_pose | ||
path: ./random_turtle.py | ||
inputs: | ||
direction: control/direction | ||
outputs: | ||
- turtle_pose | ||
|
||
- id: control | ||
custom: | ||
source: ./control_node.py | ||
inputs: | ||
turtle_pose: turtle/turtle_pose | ||
tick: dora/timer/millis/500 | ||
outputs: | ||
- direction | ||
path: ./control_node.py | ||
inputs: | ||
turtle_pose: turtle/turtle_pose | ||
tick: dora/timer/millis/500 | ||
outputs: | ||
- direction |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,30 @@ | ||
nodes: | ||
- id: rust-node | ||
custom: | ||
build: cargo build -p rust-dataflow-example-node | ||
source: ../../target/debug/rust-dataflow-example-node | ||
inputs: | ||
tick: dora/timer/millis/100 | ||
outputs: | ||
- random | ||
build: cargo build -p rust-dataflow-example-node | ||
path: ../../target/debug/rust-dataflow-example-node | ||
inputs: | ||
tick: dora/timer/millis/100 | ||
outputs: | ||
- random | ||
|
||
- id: rust-status-node | ||
custom: | ||
build: cargo build -p rust-dataflow-example-status-node | ||
source: ../../target/debug/rust-dataflow-example-status-node | ||
inputs: | ||
tick: dora/timer/millis/100 | ||
random: rust-node/random | ||
outputs: | ||
- status | ||
build: cargo build -p rust-dataflow-example-status-node | ||
path: ../../target/debug/rust-dataflow-example-status-node | ||
inputs: | ||
tick: dora/timer/millis/100 | ||
random: rust-node/random | ||
outputs: | ||
- status | ||
|
||
- id: rust-sink-dynamic | ||
custom: | ||
build: cargo build -p rust-dataflow-example-sink-dynamic | ||
source: dynamic | ||
inputs: | ||
message: rust-status-node/status | ||
build: cargo build -p rust-dataflow-example-sink-dynamic | ||
path: dynamic | ||
inputs: | ||
message: rust-status-node/status | ||
|
||
- id: dora-record | ||
custom: | ||
build: cargo build -p dora-record | ||
source: ../../target/debug/dora-record | ||
inputs: | ||
message: rust-status-node/status | ||
random: rust-node/random | ||
build: cargo build -p dora-record | ||
path: ../../target/debug/dora-record | ||
inputs: | ||
message: rust-status-node/status | ||
random: rust-node/random |
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,10 +1,9 @@ | ||
nodes: | ||
- id: rust-node | ||
custom: | ||
build: cargo build -p rust-ros2-dataflow-example-node --features ros2 | ||
source: ../../target/debug/rust-ros2-dataflow-example-node | ||
inputs: | ||
tick: dora/timer/millis/500 | ||
service_timer: dora/timer/secs/1 | ||
outputs: | ||
- pose | ||
build: cargo build -p rust-ros2-dataflow-example-node --features ros2 | ||
path: ../../target/debug/rust-ros2-dataflow-example-node | ||
inputs: | ||
tick: dora/timer/millis/500 | ||
service_timer: dora/timer/secs/1 | ||
outputs: | ||
- pose |