Skip to content

Commit

Permalink
Add TODO notes and assertion of functional turtle
Browse files Browse the repository at this point in the history
  • Loading branch information
haixuanTao committed Aug 10, 2023
1 parent 7e7826d commit 8751a3e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
build_and_examples:

strategy:
matrix:
Expand Down
8 changes: 7 additions & 1 deletion examples/python-ros2-dataflow/random_turtle.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,20 @@
}

print(direction, flush=True)
assert direction["linear"]["x"], "direction should not be 0."
twist_writer.publish(direction)
case "tick":
pose = pose_reader.next()
pose = (
pose_reader.next()
) # TODO: Replace when stream merge is merged

if pose == None:
print("stop", flush=True)
continue

assert (
pose["x"] != 5.544445
), "turtle should not be at initial x axis"
dora_node.send_output(
"turtle_pose",
pa.array(
Expand Down

0 comments on commit 8751a3e

Please sign in to comment.