cannot launch node.. but the node is correctly built! [closed]
Hello,
I am trying to run a simple test (on Stage); however, I am not able to roslaunch
my c++ code.
My node test_navigation
is correctly built: [100%] Built target test_navigation
. My CMakeLists.txt is as follows:
cmake_minimum_required(VERSION 2.8.3)
project(test_navigation)
find_package(catkin REQUIRED COMPONENTS
actionlib
actionlib_msgs
move_base
move_base_msgs
roscpp
rospy
std_msgs
)
include_directories(
${catkin_INCLUDE_DIRS}
${python_INCLUDE_DIRS}
)
catkin_package(
DEPENDS actionlib actionlib_msgs move_base move_base_msgs roscpp rospy std_msgs
)
add_executable(test_navigation src/my_math.cpp src/robot_pose.cpp src/robot_manager.cpp src/monitor.cpp src/test_navigation.cpp)
target_link_libraries(test_navigation boost_program_options ${catkin_LIBRARIES})
However, by using
<node name="test_navigation" pkg="test_navigation" type="test_navigation" output="screen" args="--init-pose-x $(arg init_pose_x) --init-pose-y $(arg init_pose_y) --init-pose-th $(arg init_pose_th) --goal-pose-x $(arg goal_pose_x) --goal-pose-y $(arg goal_pose_y) --goal-pose-th $(arg goal_pose_th) --instance-id $(arg instance_id)"/>
in my launch file and calling roslaunch
the result I obtain is
ERROR: cannot launch node of type [test_navigation/test_navigation]: can't locate node [test_navigation] in package [test_navigation]
I should say that I am a complete newbie to catkin and definitely not an expert in rosbuild either.
Does anybody have a hint?
EDIT: this is the output of rospack profile
:
marco@marco-PC ~/catkin_ws $ rospack profile
Full tree crawl took 0.013673 seconds.
Directories marked with (*) contain no manifest. You may
want to delete these directories.
To get just of list of directories without manifests,
re-run the profile with --zombie-only
-------------------------------------------------------------
0.011649 /opt/ros/indigo/share
0.000842 /home/marco/catkin_ws/install/share
0.000016 * /opt/ros/indigo/share/doc
0.000002 * /opt/ros/indigo/share/doc/liborocos-kdl
Did you source the resulting
setup.bash
file? How did you build your package?Yes, I have executed
source /catkin_ws/install/setup.bash
; is this the file you mean? Also, I noticed that when I typeroslaunch test_navigation
and I press the Tab key, no suggestion comes, while if I typeroslaunch amcl
and I press Tab, I see the suggestions for amcl.I also noticed that
catkin_make
creates the foldersdevel
andbuild
in my other package subfolder, but intest_navigation
the only folder issrc
.I built my package by running
catkin_make test_navigation
. Does this answer your question?Just do
catkin_make
instead ofcatkin_make test_navigation
and try again?I've done as you suggest, but the result is the same.
Can you post the output of
rospack profile
after sourcing thesetup.bash
file.I added the output in the original question.