Ask Your Question
0

roslaunch error: ERROR: cannot launch node of type

asked 2016-08-14 02:36:03 -0600

Rithvik.Chuppala gravatar image

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

edit retag flag offensive close merge delete

Comments

Does your goto.py have the execute permission set?

ahendrix gravatar imageahendrix ( 2016-08-14 12:07:00 -0600 )edit

goto.py does not have execute permission set. I changed it and it works now! Thank you very much! :)

Rithvik.Chuppala gravatar imageRithvik.Chuppala ( 2016-08-14 13:14:55 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-08-14 13:20:54 -0600

Rithvik.Chuppala gravatar image

As ahendrix suggested, goto.py didn't have execute permission set. To set execute permission I used: chmod +x ./goto.py. Now it seems to working fine!

edit flag offensive delete link more

Comments

Where did you get the files goto.lm and goto.dic? I am using your question as a guide to get pocketsphinx running. I'm on 14.04 but with Jade. Any help really appreciated.

billy gravatar imagebilly ( 2016-08-16 00:32:36 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2016-08-14 02:36:03 -0600

Seen: 2,212 times

Last updated: Aug 14 '16