Time Functions
- ROS.Duration
- ROS.Duration
- ROS.Duration
- ROS.Duration
- ROS.Rate
- ROS.Rate
- ROS.Time
- ROS.Time
- ROS.Time
- ROS.cycleTime
- ROS.expectedCycleTime
- ROS.init
- ROS.isSimTime
- ROS.isSystemTime
- ROS.isValid
- ROS.now
- ROS.reset
- ROS.setNow
- ROS.shutdown
- ROS.sleep
- ROS.sleep
- ROS.sleepUntil
- ROS.toSec
- ROS.toSec
- ROS.useSystemTime
- ROS.waitForValid
ROS.Duration — MethodDuration(sec::Int, nsec::Int)Constructor, creates a Duration.
ROS.Duration — MethodDuration(t::Number)Constructor, creates a Duration.
ROS.Duration — MethodDuration(rate)Constructor, creates a Duration from a Rate.
ROS.Duration — MethodDuration()Default constructor, creates a Duration.
ROS.Rate — MethodRate(frequency::Number)Constructor, creates a Rate.
ROS.Rate — MethodRate(duration)Constructor, creates a Rate from a Duration.
ROS.Time — MethodTime(sec::Int, ncsec::Int)Constructor, creates Time.
ROS.Time — MethodTime(t::Number)Constructor, creates Time.
ROS.Time — MethodTime()Default constructor, creates Time.
ROS.cycleTime — MethodcycleTime(rate)Get the actual run time of a cycle from start to sleep.
ROS.expectedCycleTime — MethodexpectedCycleTime(rate)Get the expected cycle time – one over the frequency passed in to the constructor.
ROS.init — Methodinit(time)Initialise Time.
ROS.isSimTime — MethodisSimTime(time)Returns whether or not sim time is used.
ROS.isSystemTime — MethodisSystemTime(time)Returns whether or not system time is used.
ROS.isValid — MethodisValid(time)Returns whether or not the current time source is valid. Simulation time is valid if it is non-zero.
ROS.now — Methodnow(time)Retrieve the current time. If ROS clock time is in use, this returns the time according to the ROS clock. Otherwise returns the current wall clock time.
ROS.reset — Methodreset(rate)Sets the start time for the rate to now.
ROS.setNow — MethodsetNow(time, now) = @cxx t->setNow(now)Set now to now time.
ROS.shutdown — Methodshutdown(time)Shuts down the Time.
ROS.sleep — Methodsleep(duration)Sleep for the amount of time specified by this Duration. If a signal interrupts the sleep, resleeps for the time remaining.
ROS.sleep — Methodsleep(rate)Sleeps for any leftover time in a cycle. Calculated from the last time sleep, reset, or the constructor was called.
ROS.sleepUntil — MethodsleepUntil(time, _end)Sleep until a specific time has been reached.
ROS.toSec — MethodtoSec(duration)Turn Duration into floating point seconds.
ROS.toSec — MethodtoSec(time)Turn Time into floating point seconds.
ROS.useSystemTime — MethoduseSystemTime(time)Switch to system time.
ROS.waitForValid — MethodwaitForValid(time)Wait for time source to become valid.