Enhancement #953

Allow routing of output and progress indication to different streams for bag-{cat,play}

Added by J. Moringen about 12 years ago. Updated almost 12 years ago.

Status:ResolvedStart date:03/15/2012
Priority:LowDue date:
Assignee:J. Moringen% Done:

100%

Category:-
Target version:Robotics Service Bus - rsb-0.7

Description

Currently, the progress indicator of bag-play and the output of bag-cat are sent to standard output.

This should be configurable. In particular, the progress indicator should probably go to standard error by default. This would enable things like:

bag-cat --progress bar --style audio-stream/wav my-log-file.tide | paplay

without interference between "actual" output and progress indication.

Associated revisions

Revision 7cacbb52
Added by J. Moringen almost 12 years ago

Send progress output to info-output in bag-play/main.lisp
refs #953
  • bag-play/main.lisp (print-progress): send output to the value of
    `*info-output*'
    (main): no progress display if `*info-output*' is nil

Revision 126ddf1b
Added by J. Moringen almost 12 years ago

Added info-stream commandline option in common/options.lisp
refs #953
  • common/options.lisp (make-common-options): added info-stream
    commandline option
    (process-commandline-options): store stream indicated by info-stream
    commandline option into info-output
  • common/package.lisp (package rsb.common): added exported symbol
    info-output

Revision 4724a7f7
Added by J. Moringen almost 12 years ago

Added target-stream commandline option in bag-cat/main.lisp
fixes #953
  • bag-cat/main.lisp (update-synopsis): added target-stream commandline
    option
    (main): output events to the stream selected by the target-stream
    commandline option

Revision 521c9989
Added by J. Moringen almost 12 years ago

Added target-stream in bag-cat.rst
refs #953
  • bag-cat.rst: added description of target-stream commandline option

Revision e4d6267b
Added by J. Moringen almost 12 years ago

Added info-stream commandline option in common.rst
refs #953
  • common.rst: added info-stream commandline option

Revision dd0171f8
Added by J. Moringen almost 12 years ago

Fix for previous commit: add common/variables.lisp
refs #953
  • common/variables.lisp: new file; contains variables used in the
    cl-rsb-common system
  • cl-rsb-common.asd (system cl-rsb-common): added file
    common/variables.lisp; added dependency on common/variables.lisp to
    common/options.lisp

History

#1 Updated by J. Moringen almost 12 years ago

  • Status changed from New to Resolved
  • % Done changed from 0 to 100

Applied in changeset r471.

Also available in: Atom PDF