Commit 8c678da
authored
Fix use_sim_time not modifying clock (#88)
Previously, when attaching a node that has 'use_sim_time' set to true, we
were not setting ROS time on any previously attached clocks or creating a
subscription to the /clock topic. This change fixes that by calling the
TimeSource setter.
Added unit tests that fail without this fix.
Signed-off-by: Jacob Perron <jacob@openrobotics.org>1 parent afde903 commit 8c678da
2 files changed
Lines changed: 10 additions & 1 deletion
File tree
- rcljava/src
- main/java/org/ros2/rcljava/time
- test/java/org/ros2/rcljava/time
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
| 155 | + | |
156 | 156 | | |
157 | 157 | | |
158 | 158 | | |
| |||
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
| 84 | + | |
| 85 | + | |
83 | 86 | | |
84 | 87 | | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
88 | 92 | | |
89 | 93 | | |
| 94 | + | |
90 | 95 | | |
91 | 96 | | |
| 97 | + | |
| 98 | + | |
92 | 99 | | |
93 | 100 | | |
| 101 | + | |
| 102 | + | |
94 | 103 | | |
95 | 104 | | |
96 | 105 | | |
| |||
0 commit comments