Error:cannot launch node of type[test/test]:cannot locate node test in package test
Hi, i have created a new pkg called test to test out the sound_play pkg . If i could use it to make my own pkg for my project. Thus , i created a simple pkg with just 1 launch file and 1 cpp file with a package and cmake file. The package is able to compile but when i roslaunch it give the eroor of not being able of launch the node type and it is because it cant locate the node. Anyone have any help? Is it because my launch file wrote wrongly?
my launch file:
<launch>
<node name="soundplay_node" pkg="sound_play" type="soundplay_node.py"
<node name="test" pkg="test' type="test"/>
<launch>
I know that my package is called test but for node name , is it declared under the the add executable isn't it? For that i wrote : add_executable (test src/test.cpp)
for the dependencies : add_dependencies (test ${catkin_EXPORTED_TARGETS})
for link_target libraries target_link_libraries (test ${catkin_LIBRARIES})
My error is: ERROR: cannot launch node of type [test/test]: can't locate node [test] in package [test]