[ playerstage-Patches-2960374 ] New driver (speechcmd) and new option to inhibitor

"SourceForge.net" <[email protected]>
Newsgroups gmane.science.robotics.playerstage
Message-ID <[email protected]>
Patches item #2960374, was opened at 2010-02-27 21:29
Message generated for change (Tracker Item Submitted) made by newchief
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433166&aid=2960374&group_id=42445

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Player
Group: Release-3.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Paul Osmialowski (newchief)
Assigned to: Brian Gerkey (gerkey)
Summary: New driver (speechcmd) and new option to inhibitor

Initial Comment:
This patch adds new driver: speechcmd that keeps on sending configured speech command (a message to speak). It can be combined with imgcmp and inhibitor drivers: when motion is detected on camera image, a message can be heard from speakers. Unfortunately, this involved slight change to inhibitor driver: new option had to be added: msg_interval - speech driver needs some time for the message to be spoken, therefore speech commands shouldn't be sent too frequently. Example of use:
driver
(
 name "festival"
 provides ["speech:0"]
 libdir "/usr/share/festival"
)
driver
(
  name "inhibitor"
  provides ["switch:::dio:10" "comm:::speech:10"]
  requires ["comm:::speech:0"]
  init_state 0
  bitmask "1"
  msg_interval 0.7
# 0.7 sec, enough time to say "blurp"
)
driver
(
  name "imgcmp"
  provides ["output:::camera:0" "dio:0" "diff:::camera:10"]
  requires ["camera:1" "dio:10"]
  max_lum_dist 7
  max_diff_pixels 10
  skip_lines 16
  keep_buffer 0
  alwayson 1
)
driver
(
  name "cvcam"
  provides ["camera:1"]
)
driver
(
  name "speechcmd"
  provides ["opaque:0"]
  requires ["speech:10"]
  message "blurp"
  alwayson 1
)


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=433166&aid=2960374&group_id=42445

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.