Skip to content

Commit 697779b

Browse files
Update Learning-About-Tf2-And-Time-Py.rst (ros2#2769) (ros2#2774)
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é <[email protected]>
1 parent d1f17f9 commit 697779b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Tutorials/Intermediate/Tf2/Learning-About-Tf2-And-Time-Py.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ To fix this, edit your code on line 76 as shown below (return the ``timeout`` pa
7575
to_frame_rel,
7676
from_frame_rel,
7777
now,
78-
timeout=Duration(seconds=1.0))
78+
timeout=rclpy.duration.Duration(seconds=1.0))
7979
8080
The ``lookup_transform`` can take four arguments, where the last one is an optional timeout.
8181
It will block for up to that duration waiting for it to timeout.

0 commit comments

Comments
 (0)