class Roby::PosDeltaEvent
An event which emits everytime the robot moves more than a given distance.
Public Instance Methods
delta()
click to toggle source
Returns the distance this the position at the last emission
# File lib/roby/state/events.rb, line 303 def delta; State.pos.distance(last_value) end
has_sample?()
click to toggle source
True if State.pos is set
# File lib/roby/state/events.rb, line 301 def has_sample?; State.pos? end
read()
click to toggle source
Returns the current position
# File lib/roby/state/events.rb, line 305 def read; State.pos.dup end