Robotics StackExchange | Archived questions

How do we set the parameters for any existing package

Hi,

I am working with the pocketsphinx package. I have managed to download the requied lm and dic files for the same using Sphinx Knowledge Base Tool. However, i am unable to set the path in the paramaeters. I tried looking at the tutorial for rosparam. Since, I recetly started using ROS, I still feel fairly confused. So far, I have created a dump.yaml as follows:

dic: /home/fday562/Downloads/TAR5770/5770.dic
lm: /home/fday562/Downloads/TAR5770/5770.lm
recognizer: {}
rosdistro: 'indigo

  '
roslaunch:
  uris: {host_en_330372__37414: 'http://en-330372:37414/'}
rosversion: '1.11.20

  '
run_id: 0be57b0a-6b36-11e6-9620-3417ebab4615

I have saved this file in ~//src/pocketsphiinx/.

However, upon running rosrun pocketsphinx recognizer.py I always get a warning saying:

<MyWorkspace>/src/pocketsphinx/nodes/recognizer.py:68: SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see http://wiki.ros.org/rospy/Overview/Publishers%20and%20Subscribers for more information.
  self.pub = rospy.Publisher('~output', String)
[WARN] [WallTime: 1472182172.183704] lm and dic parameters need to be set to start recognizer.

I have spent alot of time trying to change the location of the file dump.yaml but all in vain. Is there any step that i am missing?

Asked by dexter05 on 2016-08-25 22:53:16 UTC

Comments

Answers

I searched a bit more and found this website. The guy walks through a very similar tutorial. However, his package seems to have a demo folder which explains a lot. He has simple launch files within which the params lm and dic are specified. I am still curious in finding out ways to edit parameters on the go and using the yaml option.

Asked by dexter05 on 2016-08-26 04:54:43 UTC

Comments

Hi, I have a same problem, but I use this package for ROS Noetic. Did you find answer?

Asked by Sergi_Fateev on 2022-01-13 07:49:51 UTC