Please add the full output of catkin_make
(or catkin build
) after building your workspace from scratch to your question. Use the edit button for that.
Similar to your other question, make sure that the node actually gets built and that you source
the devel/setup.bash
when needed.
You typically get these errors if:
- there really is no binary with the name
teleop_twist_joy
under devel|install/lib/$pkg_name
- the (search) path is not setup correctly
- the package cache is stale / not up-to-date
Compilers/linkers failing (or mistakes in build scripts) can cause 1, nr 2 is often forgetting to source devel/setup.bash
. Nr 3 is unfortunately not something that can really be helped (there is no easy way to detect it automatically), but can be remedied by executing rospack profile
(after having made sure that you have source
d the correct setup.bash
).
Edit:
It Worked. Thanks
So every time I basically run into these errors I can solve by finding Compilers/linkers failing (or mistakes in build scripts), or because forgetting of source devel/setup.bash
, or out-of-date rospkg
cache ???
Making sure that your code compiles is a standard thing to make sure, I would say. Nothing ROS specific. If the compiler or linker don't run successfully, you don't get a binary.
If you're sure that is not the case, and your CMakeLists.txt
is correct (which is also important, as you found out in #q264506), then a stale pkg cache is indeed often the cause.
And this is slightly pedantic, but when asking questions I feel it's important to be accurate: 'ROS' isn't throwing any error, it's either
roslaunch
orrosrun
which give you this error.