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

pocketsphinx recognizer.py does not work in ROS indigo and Ubuntu14.04

asked 2015-03-16 11:20:07 -0600

Zhao Cheng gravatar image

Hello, everyone

When I finished sudo apt-get install gstreamer0.10-pocketsphinx sudo apt-get install ros-indigo-pocketsphinx sudo apt-get install ros-indigo-audio-common

and run roslaunch pocketsphinx robocup.launch

then I got some errors below

rocess[master]: started with pid [11838] ROS_MASTER_URI=http://localhost:11311

setting /run_id to 1fe512c6-cbf7-11e4-8467-3417ebabc63d process[rosout-1]: started with pid [11851] started core service [/rosout] process[recognizer-2]: started with pid [11868] [INFO] [WallTime: 1426522298.911547] Launch config: gconfaudiosrc /opt/ros/indigo/lib/pocketsphinx/recognizer.py:68: SyntaxWarning: The publisher should be created with an explicit keyword argument 'queue_size'. Please see http://wiki.ros.org/rospy/Overview/Pu... for more information. self.pub = rospy.Publisher('~output', String) [INFO] [WallTime: 1426522298.920858] Starting recognizer... Traceback (most recent call last): File "/opt/ros/indigo/lib/pocketsphinx/recognizer.py", line 177, in start = recognizer() File "/opt/ros/indigo/lib/pocketsphinx/recognizer.py", line 73, in __init__ self.start_recognizer() File "/opt/ros/indigo/lib/pocketsphinx/recognizer.py", line 80, in start_recognizer self.pipeline = gst.parse_launch(self.launch_config) glib.GError: no element "gconfaudiosrc" Traceback (most recent call last): File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/core.py", line 399, in signal_shutdown h() File "/opt/ros/indigo/lib/pocketsphinx/recognizer.py", line 131, in shutdown gtk.main_quit() RuntimeError: called outside of a mainloop [recognizer-2] process has died [pid 11868, exit code 1, cmd /opt/ros/indigo/lib/pocketsphinx/recognizer.py __name:=recognizer __log:=/home/cheng/.ros/log/1fe512c6-cbf7-11e4-8467-3417ebabc63d/recognizer-2.log]. log file: /home/cheng/.ros/log/1fe512c6-cbf7-11e4-8467-3417ebabc63d/recognizer-2*.log

How to handle this errors? Many thanks for your help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
13

answered 2015-03-17 09:34:56 -0600

Humpelstilzchen gravatar image

Looks like you are missing a GStreamer plugin. Try apt-get install gstreamer0.10-gconf

edit flag offensive delete link more

Comments

Hi Humpelstilzchen

Thank you so much, It can work now when I 'apt-get install gstreamer0.10-gconf'

Zhao Cheng gravatar image Zhao Cheng  ( 2015-03-17 11:55:17 -0600 )edit

Tanks, works for me to

GT gravatar image GT  ( 2016-10-12 20:31:47 -0600 )edit

Question Tools

3 followers

Stats

Asked: 2015-03-16 11:20:07 -0600

Seen: 3,386 times

Last updated: Mar 16 '15