This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
dora-rs
/
dora
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
124
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
Send random direction in control node as float array
tags/v0.2.5-alpha.3
Philipp Oppermann
2 years ago
parent
3508898a31
commit
045983330f
Failed to extract signature
2 changed files
with
4 additions
and
4 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
examples/python-ros2-dataflow/control_node.py
+2
-2
examples/python-ros2-dataflow/random_turtle.py
+ 2
- 2
examples/python-ros2-dataflow/control_node.py
View File
@@ -21,7 +21,7 @@ for i in range(500):
node.send_output(
"direction",
pa.array(
[
1, 0, 0, 0, 0, 1
],
type=pa.
uint8
(),
[
random.random() + 1, 0, 0, 0, 0, (random.random() - 0.5) * 5
],
type=pa.
float32
(),
),
)
+ 2
- 2
examples/python-ros2-dataflow/random_turtle.py
View File
@@ -44,10 +44,10 @@ for i in range(500):
case "direction":
direction = {
"linear": {
"x": event["
data
"][0],
"x": event["
value
"][0],
},
"angular": {
"z": event["
data
"][5],
"z": event["
value
"][5],
},
}
Write
Preview
Loading…
Cancel
Save