[Rock-dev] [rock] #292: rock-reply: always replays the first sample

rock noreply at opendfki.de
Tue Jul 9 21:25:47 CEST 2013


#292: rock-reply: always replays the first sample
----------------------------+-----------------------------------
 Reporter:  Alexander.Duda  |      Owner:  rock-dev-mailing-list
     Type:  defect          |     Status:  new
 Priority:  major           |  Milestone:
Component:  base            |   Keywords:
----------------------------+-----------------------------------
 The following code always replays the first sample before seeking to the
 right position. The reason is that seek calls align replaying the first
 sample.

 A better behaviour would be to not replay any sample until run (step) is
 called.

 replay = Orocos::Log::Replay.open(ARGV)
 port = replay.task.port
 port.on_data do |sample|
     ...
 end
 replay.seek(60)
 replay.run

-- 
Ticket URL: <https://rock.opendfki.de/ticket/292>
rock <https://rock.opendfki.de>
rock: the robot construction kit


More information about the Rock-dev mailing list