ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Is that your whole CMakeLists.txt? I wouldn't expect that to properly build your executables because of missing catkin dependencies at the top. Further, it appears you are missing a call to the catkin_package()
macro (documentation here). One of the things this macro does is tell catkin where to put the compiled executables. If they aren't in the right place, then rospack
(and correspondingly rosrun
) won't be able to find them.
I'm guessing if you run the command
find ~/catkin_ws -name "pcl_create" -executable
it will tell you the compiled binary is located in ~/catkin_ws/build/
, but if you add a call to catkin_package()
before your add_executable
lines then you will find the executable in ~/catkin_ws/devel/lib/
(which is where it should be).