ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

How do we set the parameters for any existing package

asked 2016-08-25 22:53:16 -0600

dexter05 gravatar image


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

  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 ~/<myworkspace>/src/pocketsphiinx/.

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

<MyWorkspace>/src/pocketsphinx/nodes/ SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see for more information. = 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?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-08-26 04:54:43 -0600

dexter05 gravatar image

updated 2016-08-26 04:55:35 -0600

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.

edit flag offensive delete link more


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

Sergi_Fateev gravatar image Sergi_Fateev  ( 2022-01-13 06:49:51 -0600 )edit

Question Tools



Asked: 2016-08-25 22:53:16 -0600

Seen: 334 times

Last updated: Aug 26 '16