Skip to content

Commit c1f84de

Browse files
jimmy-mcelwainmergify[bot]
authored andcommitted
Add info to duration message and time message comments (#176)
Signed-off-by: jimmy-mcelwain <[email protected]> (cherry picked from commit 355006b)
1 parent 7d568ce commit c1f84de

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

builtin_interfaces/msg/Duration.msg

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@
22
# Messages of this datatype are of ROS Time following this design:
33
# https://design.ros2.org/articles/clock_and_time.html
44

5-
# Seconds component, range is valid over any possible int32 value.
5+
# The seconds component, valid over all int32 values.
66
int32 sec
77

8-
# Nanoseconds component in the range of [0, 1e9).
8+
# The nanoseconds component, valid in the range [0, 1e9), to be added to the seconds component.
9+
# e.g.
10+
# The duration -1.7 seconds is represented as {sec: -2, nanosec: 3e8}
11+
# The duration 1.7 seconds is represented as {sec: 1, nanosec: 7e8}
912
uint32 nanosec

builtin_interfaces/msg/Time.msg

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,8 @@
44
# The seconds component, valid over all int32 values.
55
int32 sec
66

7-
# The nanoseconds component, valid in the range [0, 1e9).
7+
# The nanoseconds component, valid in the range [0, 1e9), to be added to the seconds component.
8+
# e.g.
9+
# The time -1.7 seconds is represented as {sec: -2, nanosec: 3e8}
10+
# The time 1.7 seconds is represented as {sec: 1, nanosec: 7e8}
811
uint32 nanosec

0 commit comments

Comments
 (0)