Ask Your Question
0

ERROR: cannot launch node of type : can't locate node in package

asked 2019-01-17 06:18:39 -0500

QLTech gravatar image

updated 2019-01-17 08:07:12 -0500

gvdhoorn gravatar image

I have installed Ubuntu 18 04 and ROS melodic. I have installed moveit using these instructions: https://ros-planning.github.io/moveit...

Te section i have linked instructs the following:

Open two shells. In the first shell start RViz and wait for everything to finish loading:

roslaunch panda_moveit_config demo.launch

In the second shell, run the launch file:

roslaunch moveit_tutorials move_group_interface_tutorial.launch

The second instruction failed with:

ERROR: cannot launch node of type [moveit_tutorials/move_group_interface_tutorial]: can't locate node [move_group_interface_tutorial] in package [moveit_tutorials]

If i do :

rosrun moveit_tutorials

and tab for autocomplete i don't see the 'move_group_interface_tutorial node'.

I get:

build_locally.sh                         collision_scene_example.py               move_group_python_interface_tutorial.py

I ran:

locate move_group_interface_tutorial

here is the output:

/home/anthony/ws_moveit/build/moveit_tutorials/doc/move_group_interface/CMakeFiles/move_group_interface_tutorial.dir
/home/anthony/ws_moveit/build/moveit_tutorials/doc/move_group_interface/CMakeFiles/move_group_interface_tutorial.dir/CXX.includecache
/home/anthony/ws_moveit/build/moveit_tutorials/doc/move_group_interface/CMakeFiles/move_group_interface_tutorial.dir/DependInfo.cmake
/home/anthony/ws_moveit/build/moveit_tutorials/doc/move_group_interface/CMakeFiles/move_group_interface_tutorial.dir/build.make
/home/anthony/ws_moveit/build/moveit_tutorials/doc/move_group_interface/CMakeFiles/move_group_interface_tutorial.dir/cmake_clean.cmake
/home/anthony/ws_moveit/build/moveit_tutorials/doc/move_group_interface/CMakeFiles/move_group_interface_tutorial.dir/depend.internal
/home/anthony/ws_moveit/build/moveit_tutorials/doc/move_group_interface/CMakeFiles/move_group_interface_tutorial.dir/depend.make
/home/anthony/ws_moveit/build/moveit_tutorials/doc/move_group_interface/CMakeFiles/move_group_interface_tutorial.dir/flags.make
/home/anthony/ws_moveit/build/moveit_tutorials/doc/move_group_interface/CMakeFiles/move_group_interface_tutorial.dir/link.txt
/home/anthony/ws_moveit/build/moveit_tutorials/doc/move_group_interface/CMakeFiles/move_group_interface_tutorial.dir/progress.make
/home/anthony/ws_moveit/build/moveit_tutorials/doc/move_group_interface/CMakeFiles/move_group_interface_tutorial.dir/src
/home/anthony/ws_moveit/build/moveit_tutorials/doc/move_group_interface/CMakeFiles/move_group_interface_tutorial.dir/src/move_group_interface_tutorial.cpp.o
/home/anthony/ws_moveit/devel/.private/moveit_tutorials/lib/moveit_tutorials/move_group_interface_tutorial
/home/anthony/ws_moveit/devel/lib/moveit_tutorials/move_group_interface_tutorial
/home/anthony/ws_moveit/src/moveit_tutorials/doc/move_group_interface/move_group_interface_tutorial.rst
/home/anthony/ws_moveit/src/moveit_tutorials/doc/move_group_interface/move_group_interface_tutorial_robot_with_box.png
/home/anthony/ws_moveit/src/moveit_tutorials/doc/move_group_interface/move_group_interface_tutorial_start_screen.png
/home/anthony/ws_moveit/src/moveit_tutorials/doc/move_group_interface/launch/move_group_interface_tutorial.launch
/home/anthony/ws_moveit/src/moveit_tutorials/doc/move_group_interface/src/move_group_interface_tutorial.cpp

I have 2 workspaces. I created this workspace specifically for moveit!.

here is the text i ahve added to my .bashrc

# added by A Wilson to .bashrc file
source /opt/ros/melodic/setup.bash
source /home/anthony/catkin_ws/devel/setup.bash
source /home/anthony/ws_moveit/devel/setup.bash
source /home/anthony/catkin_ws/src/MYNT-EYE-S-SDK/wrappers/ros/devel/setup.bash
export ROS_PACKAGE_PATH=/home/anthony/catkin_ws/src/MYNT-EYE-S-SDK/wrappers/ros/src:/home/anthony/catkin_ws/src:/opt/ros/melodic/share:/home/anthony/catkin_ws/src/MYNT-EYE-ORB-SLAM2-Sample/Examples/ROS/ORB_SLAM2:/home/anthony/ws_moveit/src

echo "ROS package path:" $ROS_PACKAGE_PATH

if i do:

locate move_group_interface_tutorial

I ran locate

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2019-01-18 05:43:25 -0500

QLTech gravatar image

I worked around this by adding a symbolic link to the file location in the devel directory

edit flag offensive delete link more

Comments

1

You seem to be sourceing multiple workspaces. Unless those workspaces are overlays (and in the order listed in your .bashrc that you show, that is not going to work.

All Catkin workspaces are stand-alone and you can only have a single one active at a time.

If you need multiple workspaces, ..

gvdhoorn gravatar imagegvdhoorn ( 2019-01-18 05:55:12 -0500 )edit
1

.. and want/need packages from all of those, look into workspace overlaying.

Making symlinks between workspaces is not a good idea.

gvdhoorn gravatar imagegvdhoorn ( 2019-01-18 05:56:01 -0500 )edit
1

Thanks. Although im sure you are right i dont thibk that is why i have the problem. I have 2 workspaces, catkin_ws and ws_moveit. I did try removing catkin_ws and only sourcing ws_moveit (the one with issue). This made no difference till i created the symbolic link.

QLTech gravatar imageQLTech ( 2019-01-18 08:07:27 -0500 )edit

Hey Jan, what exactly is a symbolic link and where did you add it to?

macrot51 gravatar imagemacrot51 ( 2019-08-14 04:09:09 -0500 )edit

i have the same problem i fixed it by removing the workspace that containing the same node

houssem trabelsi gravatar imagehoussem trabelsi ( 2019-08-22 23:50:24 -0500 )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

Stats

Asked: 2019-01-17 06:18:39 -0500

Seen: 1,143 times

Last updated: Jan 18