roslaunch error: ERROR: cannot launch node of type
Hi all,
I am a beginner to ROS (Indigo and a 14.04 Ubuntu machine) and as a project, I tried to use Pocketsphinx ( https://github.com/mikeferguson/pocke... ) to set a 2D nav goal in RVIZ for a turtlebot simulator. However, when I try launching using roslaunch pocketsphinx goto.launch
it gives an error: ERROR: cannot launch node of type [pocketsphinx/goto.py]: can't locate node [goto.py] in package [pocketsphinx]
I have already sourced devel/setup.bash
and devel/setup.sh
and have done catkin_make
For the python program, goto.py (located at catkin_ws/src/pocketsphinx/nodes
folder), I largely based it off of this: https://github.com/mikeferguson/maxwe...
I then proceeded to make a launch file (located at catkin_ws/src/pocketsphinx/demo
folder):
<launch>
<node name="recognizer" pkg="pocketsphinx" type="recognizer.py">
<param name="lm" value="$(find pocketsphinx)/demo/goto.lm"/>
<param name="dict" value="$(find pocketsphinx)/demo/goto.dic"/>
</node>
<node name="goto" pkg="pocketsphinx" type="goto.py" output="screen">
<remap from="cmd_vel" to="/mobile_base/commands/velocity"/>
</node>
</launch>
If anyone could tell me what I am doing wrong, it would be great!
Thanks, Rithvik
Does your
goto.py
have the execute permission set?goto.py
does not have execute permission set. I changed it and it works now! Thank you very much! :)