Skip to content

Commit

Permalink
Update Learning-About-Tf2-And-Time-Py.rst (ros2#2769) (ros2#2774)
Browse files Browse the repository at this point in the history
Ligne 78 : compile error does not know Duration so replace Duration with rclpy.duration.Duration

(cherry picked from commit e34c96a)

Co-authored-by: Clara Dieudonné <74452893+D-Clara@users.noreply.github.com>
  • Loading branch information
mergify[bot] and D-Clara committed Jun 24, 2022
1 parent d1f17f9 commit 697779b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ To fix this, edit your code on line 76 as shown below (return the ``timeout`` pa
to_frame_rel,
from_frame_rel,
now,
timeout=Duration(seconds=1.0))
timeout=rclpy.duration.Duration(seconds=1.0))
The ``lookup_transform`` can take four arguments, where the last one is an optional timeout.
It will block for up to that duration waiting for it to timeout.
Expand Down

0 comments on commit 697779b

Please sign in to comment.