This repository was archived by the owner on Aug 11, 2023. It is now read-only.
Commit 591f71d
committed
simtime: use time=0 by default
This is the behaviour documented here:
http://wiki.ros.org/Clock#Using_Simulation_Time_from_the_.2BAC8-clock_Topic
If the /use_sim_time parameter is set, the ROS Time API will return
time=0 until it has received a value from the /clock topic. Then,
the time will only be updated on receipt of a message from the
/clock topic, and will stay constant between updates.
This resolves a NullPointerException when a node logs from its onStart
method and use_sim_time is true.1 parent e92b7b7 commit 591f71d
File tree
1 file changed
+6
-1
lines changed- rosjava/src/main/java/org/ros/time
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
61 | 66 | | |
62 | 67 | | |
63 | 68 | | |
| |||
0 commit comments