Feature #2096

Allow looping replay in bag-play

Added by J. Moringen over 9 years ago. Updated over 9 years ago.

Status:ResolvedStart date:11/19/2014
Priority:LowDue date:
Assignee:J. Moringen% Done:

100%

Category:Commandline Tools
Target version:Robotics Service Bus - rsb-0.11

Associated revisions

Revision a83f4395
Added by J. Moringen over 9 years ago

Support repeated replay in common/*.lisp, bag-{cat,play}/main.lisp

fixes #2096

  • common/options.lisp (header): updated copyright
    (make-replay-options): added loop commandline option
  • common/help.lisp (header): updated copyright
    (make-replay-strategy-help-string): added :num-repetitions to
    blacklisted replay strategy initargs
  • bag-cat/main.lisp (header): updated copyright
    (main): pass value of loop commandline option to replay strategy
  • bag-play/main.lisp (main): likewise
  • CMakeLists.txt: added tests for loop commandline option for
    bag-{cat,play} binaries

Revision 0e58e80a
Added by J. Moringen over 9 years ago

Added repetitions in src/rsb/replay/*.lisp

refs #2096

  • src/rsb/replay/strategy-mixins.lisp (repetitions-mixin): new class;
    stores a number of times a replay should be repeated
    (call-repeatedly): new function; call a thunk a specified number of
    times or forever
    (sequential-mixin): added superclass `repetitions-mixin'
    (replay replay-bag-connection sequential-mixin): use `call-repeatedly'
    to repeat replaying the event sequence num-repetitions times or
    infinitely
  • src/rsb/replay/interactive.lisp (header): updated copyright
    (replay replay-bag-connection interactive): use `call-repeatedly' to
    achieve requested number of repetitions
  • src/rsb/replay/remote-controlled.lisp
    (replay replay-bag-connection remote-controlled): likewise
  • src/rsb/replay/package.lisp (package rsbag.rsb.replay): added exported
    symbol repetitions-mixin

History

#1 Updated by J. Moringen over 9 years ago

  • Status changed from New to In Progress

#2 Updated by J. Moringen over 9 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

#3 Updated by J. Moringen over 9 years ago

Manual commit is rsbag-manual|f0d635a4.

Also available in: Atom PDF