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

roslaunch error - "ERROR: cannot launch node of type"

asked 2013-07-16 12:31:28 -0500

Martin Llofriu gravatar image

When using a launch file in groovy catkin package, roslaunch reports an error:

ERROR: cannot launch node of type [nao_driver/nao_camera_both.py]: nao_driver
ROS path [0]=/opt/ros/groovy/share/ros
ROS path [1]=/home/ludo/workspace/catkin_ws/install/share
ROS path [2]=/home/ludo/workspace/catkin_ws/install/stacks
ROS path [3]=/home/ludo/workspace/catkin_ws/src
ROS path [4]=/opt/ros/groovy/share
ROS path [5]=/opt/ros/groovy/stacks

The contents of the launch file

<node pkg="nao_driver" type="nao_camera_both.py" name="nao_camera_both" required="true" args="--pip=$(arg nao_ip) --pport=$(arg nao_port) fps=5" output="screen">
        <param name="camera_switch" type="int" value="1"/>
        <param name="fps" type="int" value="1"/>
                <!--
                Image quality constants
                        k960p = 3                # 1280*960
                        k4VGA = 3                # 1280*960
                        kVGA = 2                 # 640*480
                        kQVGA = 1                # 320*240
                        kQQVGA = 0               # 160*120
        -->
        <param name="quality" type="int" value="3"/>
        <param name="topCamParams" type="string" value="package://morris_simulation/config/topCamCalibSim.yml"/>
        <param name="bottomCamParams" type="string" value="package://morris_simulation/config/bottomCamCalib.yml"/>
  </node>

rosrun nao_driver nao_camera_both.py works well though.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
3

answered 2013-07-22 23:52:40 -0500

marvin gravatar image

Hi,

I had a similar problem with a rosbuild package. I was able to start the node via rosrun, but roslaunch wasn't able to launch my node, although the ROS_PACKAGE_PATH was set-up correctly. The launch-file worked already a few days ago. I tried to locate my package with rospack find [packagename] and was able to find it at the assumed location.

I made a backup of the corrupted package, deleted it and created it again with roscreate-pkg in my workspace. After that I copied the old files (Source-Files, Manifest.xml, CMakeLists.txt) into the re-created package. Than I rosbuild the package and now everything seems to work again.

Cheers, Georg

edit flag offensive delete link more

Comments

Thanks marvin! Actually regenerating the package made the difference. I could not find the factor that was making the difference. I had already tried erasing devel and install folders. Can someone explain how can regenerating the package make the difference?

Martin Llofriu gravatar image Martin Llofriu  ( 2013-07-23 02:54:50 -0500 )edit

this problem similar to mine,.. but in my case, i can launch other launcher in my package. just one package that has this kind of error. can you help? should i remake the package too?

adelleodel gravatar image adelleodel  ( 2016-06-04 19:43:02 -0500 )edit
2

answered 2015-10-21 16:50:52 -0500

SBenaissa gravatar image

updated 2015-10-21 20:17:39 -0500

ahendrix gravatar image

In the hydro's ROS version, with catkin use this command before rosmake:

source ~/catkin_ws/devel/setup.bash

See the follwing terminal's picture:


Good Luck S.Benaissa

edit flag offensive delete link more

Comments

1

For future reference: don't use rosmake with a catkin workspace, use catkin_make instead.

joq gravatar image joq  ( 2015-10-23 10:33:38 -0500 )edit
0

answered 2015-06-30 09:00:57 -0500

I have the same problem ROS_MASTER_URI=http://localhost:11311

core service [/rosout] found ERROR: cannot launch node of type [playerros_teleop/playerros_teleop_node]: playerros_teleop ROS path [0]=/opt/ros/indigo/share/ros ROS path [1]=/opt/ros/indigo/share ROS path [2]=/opt/ros/indigo/stacks ERROR: cannot launch node of type [playerros/playerros_node]: playerros ROS path [0]=/opt/ros/indigo/share/ros ROS path [1]=/opt/ros/indigo/share ROS path [2]=/opt/ros/indigo/stacks ERROR: cannot launch node of type [amcl/amcl]: amcl ROS path [0]=/opt/ros/indigo/share/ros ROS path [1]=/opt/ros/indigo/share ROS path [2]=/opt/ros/indigo/stacks ERROR: cannot launch node of type [rviz/rviz]: rviz ROS path [0]=/opt/ros/indigo/share/ros ROS path [1]=/opt/ros/indigo/share ROS path [2]=/opt/ros/indigo/stacks ERROR: cannot launch node of type [randomwalk/randomwalk_node]: randomwalk ROS path [0]=/opt/ros/indigo/share/ros ROS path [1]=/opt/ros/indigo/share ROS path [2]=/opt/ros/indigo/stacks ERROR: cannot launch node of type [map_server/map_server]: map_server ROS path [0]=/opt/ros/indigo/share/ros ROS path [1]=/opt/ros/indigo/share ROS path [2]=/opt/ros/indigo/stacks No processes to monitor shutting down processing monitor... ... shutting down processing monitor complete

please help ?

edit flag offensive delete link more

Comments

4

Please open a new question, referring to this one if necessary. Q&A does not work when people use an "answer" to ask a question. Thanks!

joq gravatar image joq  ( 2015-10-23 10:34:59 -0500 )edit

Question Tools

Stats

Asked: 2013-07-16 12:31:28 -0500

Seen: 74,378 times

Last updated: Oct 21 '15