Basic ROS in c++ course PROBLEM

In ch2-7, I followed the course, and also change the newest code in simple.cpp file.
After that, I exected the instruction: roslaunch my_package my_package_launch_file.launch
However, I can not see the ObiWan NODE in the terminal, What is wrong and what should I do?

Hello @a13e5c2ddf294571 ,

Could you please share your code from simple.cpp and also the output you are getting?

Saddly,I can not execute ‘‘roslaunch my_package my_package_launch_file.launch’’ correctly =(.
Please help me to solve the problem.


This is my CMakeList.txt file.

Hi, it seems like your system is not finding the package my_package. A good way to see this is whether your command roslaunch my_package my_package_launch_file.launch autocompletes while you are typing by hitting tab. If it doesn’t, then you should compile your workspace again and source it:

cd ~/catkin_ws
rm -rf build/ devel/
source devel/setup.bash
rospack profile