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

Martelogie's profile - activity

2019-05-20 02:02:10 -0500 marked best answer Pocketsphinx recognizer.py does not work

Hello, everyone! I'm trying to work with pocketsphinx for speech recognition and im currently using this Tutorial

but i have some troubles:

when i run this command roslaunch pocketsphinx turtlebot_voice_cmd.launch

then i got some errors:

Traceback (most recent call last):
  File "/home/meow/catkin_ws/src/pocketsphinx/nodes/recognizer.py", line 177, in <module>
  start = recognizer()
  File "/home/meow/catkin_ws/src/pocketsphinx/nodes/recognizer.py", line 73, in __init__
  self.start_recognizer()
  File "/home/meow/catkin_ws/src/pocketsphinx/nodes/recognizer.py", line 80, in start_recognizer
  self.pipeline = gst.parse_launch(self.launch_config)
  glib.GError: no element «vader»
Traceback (most recent call last):
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/core.py", line 467, in signal_shutdown
  h()
  File "/home/meow/catkin_ws/src/pocketsphinx/nodes/recognizer.py", line 131, in shutdown
  gtk.main_quit()
  RuntimeError: called outside of a mainloop
[recognizer-2] process has died [pid 15287, exit code 1, cmd /home/meow/catkin_ws/src/pocketsphinx/nodes/recognizer.py __name:=recognizer __log:=/home/meow/.ros/log/ec640724-686e-11e7-adcd-08d40c6bd6ea/recognizer-2.log].
log file: /home/meow/.ros/log/ec640724-686e-11e7-adcd-08d40c6bd6ea/recognizer-2*.log
2019-05-20 02:01:28 -0500 marked best answer Pocketsphinx fatal error

when i run this commandroslaunch pocketsphinx robocup.launch

then it gives me error:

FATAL_ERROR: "fe_sigproc.c", line 405: Failed to create filterbank, frequency range does not match. Sample rate 8000.000000, FFT size 512, lowerf 4765.625000 < freq -15.625000 > upperf 4218.750000.

full :

started roslaunch server http://YourSoulisMine:44601/

SUMMARY
========

PARAMETERS
* /recognizer/dict: /home/meow/catkin...
* /recognizer/lm: /home/meow/catkin...
* /rosdistro: kinetic
* /rosversion: 1.12.7

NODES
/
recognizer (pocketsphinx/recognizer.py)
voice_cmd_vel (pocketsphinx/voice_cmd_vel.py)

auto-starting new master
process[master]: started with pid [3437]
ROS_MASTER_URI=http://localhost:11311

setting /run_id to 20ce8556-6898-11e7-88b0-08d40c6bd6ea
process[rosout-1]: started with pid [3450]
started core service [/rosout]
process[recognizer-2]: started with pid [3454]
process[voice_cmd_vel-3]: started with pid [3461]
INFO: cmd_ln.c(691): Parsing command line:
gst-pocketsphinx \
-samprate 8000 \
-cmn prior \
-fwdflat no \
-bestpath no \
-maxhmmpf 2000 \
-maxwpf 20 

Current configuration:
[NAME]      [DEFLT]     [VALUE]
-agc        none        none
-agcthresh  2.0     2.000000e+00
-alpha      0.97        9.700000e-01
-ascale     20.0        2.000000e+01
-aw     1       1
-backtrace  no      no
-beam       1e-48       1.000000e-48
-bestpath   yes     no
-bestpathlw 9.5     9.500000e+00
-bghist     no      no
-ceplen     13      13
-cmn        current     prior
-cmninit    8.0     8.0
-compallsen no      no
-debug              0
-dict               
-dictcase   no      no
-dither     no      no
-doublebw   no      no
-ds     1       1
-fdict              
-feat       1s_c_d_dd   1s_c_d_dd
-featparams         
-fillprob   1e-8        1.000000e-08
-frate      100     100
-fsg                
-fsgusealtpron  yes     yes
-fsgusefiller   yes     yes
-fwdflat    yes     no
-fwdflatbeam    1e-64       1.000000e-64
-fwdflatefwid   4       4
-fwdflatlw  8.5     8.500000e+00
-fwdflatsfwin   25      25
-fwdflatwbeam   7e-29       7.000000e-29
-fwdtree    yes     yes
-hmm                
-input_endian   little      little
-jsgf               
-kdmaxbbi   -1      -1
-kdmaxdepth 0       0
-kdtree             
-latsize    5000        5000
-lda                
-ldadim     0       0
-lextreedump    0       0
-lifter     0       0
-lm             
-lmctl              
-lmname     default     default
-logbase    1.0001      1.000100e+00
-logfn              
-logspec    no      no
-lowerf     133.33334   1.333333e+02
-lpbeam     1e-40       1.000000e-40
-lponlybeam 7e-29       7.000000e-29
-lw     6.5     6.500000e+00 
-maxhmmpf   -1      2000  
-maxnewoov  20      20
-maxwpf     -1      20
-mdef               
-mean                
-mfclogdir          
-min_endfr  0       0
-mixw               
-mixwfloor  0.0000001   1.000000e-07
-mllr               
-mmap       yes     yes
-ncep       13      13
-nfft       512     512 
-nfilt      40      40
-nwpen      1.0     1.000000e+00
-pbeam      1e-48       1.000000e-48
-pip        1.0     1.000000e+00
-pl_beam    1e-10       1.000000e-10
-pl_pbeam   1e-5        1.000000e-05
-pl_window  0       0
-rawlogdir          
-remove_dc  no      no
-round_filters  yes     yes
-samprate   16000       8.000000e+03
-seed       -1      -1
-sendump            
-senlogdir          
-senmgau            
-silprob    0.005       5.000000e-03
-smoothspec no      no
-svspec             
-tmat               
-tmatfloor  0.0001      1.000000e-04
-topn       4       4
-topn_beam  0       0
-toprule            
-transform  legacy      legacy
-unit_area  yes     yes
-upperf     6855.4976   6.855498e+03
-usewdphones    no      no
-uw     1.0     1.000000e+00
-var                
-varfloor   0.0001      1.000000e-04
-varnorm    no      no
-verbose    no      no
-warp_params            
-warp_type  inverse_linear  inverse_linear
-wbeam      7e-29       7.000000e-29
-wip        0.65        6.500000e-01
-wlen       0.025625    2.562500e-02

FATAL_ERROR: "fe_sigproc.c", line 405: Failed to create filterbank, frequency range does not match. Sample rate 
8000.000000, FFT size 512, lowerf 4765.625000 < freq -15.625000 > upperf 4218.750000 ...
(more)
2019-05-20 01:49:31 -0500 marked best answer ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies

OS ubuntu 17.10 i'm using this manual. When executing the following command rosdep install --from-paths src --ignore-src --rosdistro lunar -y I get the following:

ERROR: the following packages/stacks could not have their rosdep keys resolved
to system dependencies:
rosconsole: No definition of [boost] for OS version []
pcl_conversions: No definition of [libpcl-all-dev] for OS version []
camera_info_manager: No definition of [boost] for OS version []
catkin: No definition of [python-nose] for OS version []
class_loader: No definition of [boost] for OS version []
rosgraph: No definition of [python-mock] for OS version []
resource_retriever: No definition of [python-rospkg] for OS version []
webkit_dependency: No definition of [python-qt5-bindings-webkit] for OS version []
nodelet_topic_tools: No definition of [boost] for OS version []
rqt_graph: No definition of [python-rospkg] for OS version []
rostest: No definition of [boost] for OS version []
rqt_console: No definition of [python-rospkg] for OS version []
qt_gui: No definition of [python-rospkg] for OS version []
rospack: No definition of [python-coverage] for OS version []
depth_image_proc: No definition of [boost] for OS version []
pcl_ros: No definition of [libvtk-java] for OS version []
rqt_runtime_monitor: No definition of [python-rospkg] for OS version []
python_qt_binding: No definition of [python-qt5-bindings] for OS version []
laser_geometry: No definition of [python-numpy] for OS version []
image_proc: No definition of [boost] for OS version []
rviz: No definition of [yaml-cpp] for OS version []
collada_parser: No definition of [collada-dom] for OS version []
rqt_plot: No definition of [python-rospkg] for OS version []
rqt_bag_plugins: No definition of [python-imaging] for OS version []
rqt_bag: No definition of [python-rospkg] for OS version []
actionlib: No definition of [boost] for OS version []
roslib: No definition of [python-rospkg] for OS version []
qt_gui_py_common: No definition of [python-rospkg] for OS version []
python_orocos_kdl: No definition of [python-sip] for OS version []
rosparam: No definition of [python-yaml] for OS version []
diagnostic_common_diagnostics: No definition of [python-psutil] for OS version []
roslaunch: No definition of [python-yaml] for OS version []
camera_calibration_parsers: No definition of [yaml-cpp] for OS version []
rqt_publisher: No definition of [python-rospkg] for OS version []
roswtf: No definition of [python-rospkg] for OS version []
geometric_shapes: No definition of [boost] for OS version []
stage_ros: No definition of [boost] for OS version []
rqt_robot_steering: No definition of [python-rospkg] for OS version []
rqt_web: No definition of [python-rospkg] for OS version []
genpy: No definition of [python-yaml] for OS version []
roslisp: No definition of [boost] for OS version []  
message_filters: No definition of [boost] for OS version []
rosmake: No definition of [python-rospkg] for OS version []
rosbag: No definition of [python-rospkg] for OS version []
rqt_shell: No definition of [python-rospkg] for OS version []
rostime: No definition of [boost] for OS version []
roscreate: No definition of [python-rospkg] for OS version []
rqt_py_console: No definition of [python-rospkg] for OS version []
rqt_topic: No definition of [python-rospkg] for OS version []
opencv3: No definition of [python-numpy] for OS version []
rospy: No definition of [python-yaml] for OS version []
rosunit: No definition of [python-rospkg] for OS version []
qt_dotgraph: No definition of [python-pygraphviz] for OS version []
rqt_top: No definition of [python-psutil] for OS version []
rqt_service_caller: No definition of [python-rospkg] for OS version []
cv_bridge: No definition of [python-numpy] for OS version []
rqt_rviz: No definition of [boost] for OS version []
rosbag_storage: No definition ...
(more)
2018-12-04 05:04:12 -0500 received badge  Taxonomist
2017-12-01 03:09:51 -0500 received badge  Famous Question (source)
2017-10-31 09:03:00 -0500 received badge  Notable Question (source)
2017-10-31 05:43:21 -0500 received badge  Popular Question (source)
2017-10-31 02:38:05 -0500 commented answer ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies

when i type the following command sudo apt-get install ros-lunar-desktop-full i get that Unable to locate package ros-lu

2017-10-30 20:56:26 -0500 edited question ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies

ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies OS ubuntu 17.10 i'

2017-10-30 20:51:26 -0500 asked a question ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies

ERROR: the following packages/stacks could not have their rosdep keys resolved to system dependencies OS ubuntu 17.10 Wh

2017-10-14 11:42:03 -0500 received badge  Famous Question (source)
2017-08-07 15:50:41 -0500 received badge  Famous Question (source)
2017-08-06 13:13:17 -0500 received badge  Notable Question (source)
2017-08-05 21:18:43 -0500 received badge  Popular Question (source)
2017-07-17 06:01:30 -0500 received badge  Supporter (source)
2017-07-17 01:59:19 -0500 received badge  Enthusiast
2017-07-16 22:53:33 -0500 received badge  Notable Question (source)
2017-07-16 06:56:56 -0500 received badge  Popular Question (source)
2017-07-15 17:17:11 -0500 commented answer Pocketsphinx fatal error

i'm sorry for the stupid question but in which file i need to change rate?

2017-07-15 15:52:42 -0500 edited question Pocketsphinx fatal error

Pocketsphinx fatal error when i run this commandroslaunch pocketsphinx robocup.launch then it gives me error: FATAL_ER

2017-07-15 15:51:31 -0500 asked a question Pocketsphinx fatal error

Pocketsphinx fatal error when i run this commandroslaunch pocketsphinx robocup.launch then it gives me error: FATAL_ER

2017-07-14 05:12:57 -0500 received badge  Editor (source)
2017-07-14 05:12:57 -0500 edited question Pocketsphinx recognizer.py does not work

Pocketsphinx recognizer.py does not work Hello, everyone! I'm trying to work with pocketsphinx for speech recognition an

2017-07-14 03:57:37 -0500 edited question Pocketsphinx recognizer.py does not work

Pocketsphinx recognizer.py does not work Hello, everyone! I'm trying to work with pocketsphinx for speech recognition an

2017-07-14 03:56:52 -0500 asked a question Pocketsphinx recognizer.py does not work

Pocketsphinx recognizer.py does not work Hello, everyone! I'm trying to work with pocketsphinx for speech recognition an

2017-07-12 07:21:45 -0500 asked a question Google speech recognition

Google speech recognition I need help. Im trying to do speech recognition for ROS(kinetic) via "gspeech" but when i rosr