提供与时间相关的功能。 该类的存在是为了在真实硬件和仿真环境(可能比实时快或慢)下使用相同的脚本逻辑。 在真实硬件上运行时,该类可使用ROS的时间函数;在仿真环境中不依赖ROS。
更多...
提供与时间相关的功能。 该类的存在是为了在真实硬件和仿真环境(可能比实时快或慢)下使用相同的脚本逻辑。 在真实硬件上运行时,该类可使用ROS的时间函数;在仿真环境中不依赖ROS。
Object containing all time-related functionality.
This class mainly exists to support both real hardware and (potentially
faster or slower than realtime) simulation with the same script.
When running on real hardware, this class uses ROS time functions.
The simulation equivalent does not depend on ROS.
Attributes:
visualizer: No-op object conforming to the Visualizer API used in
simulation scripts. Maintains the property that scripts should not
know/care if they are running in simulation or not.