[rospack] Error: package 'my_first_ros_pkg' not found
Hello dear members! I am a beginner to ROS. I am following a book named "ROS Robot Programming" written by Turtlebot3 developers. i am writing my code according the book. first i type these commands for creating CPP file.
$ cd ~/catkin_ws/src/my_first_ros_pkg/src/
$ gedit hello_world_node.cpp
then build the package. then i go to Catkin workspace to build the package.
$ cd ~/catkin_ws && catkin_make
till here everything goes well. but when i try to run the node then it says Could not read parameters..
ibrahim@ibrahim-Aspire-V5-591G:~$ cd catkin_ws
ibrahim@ibrahim-Aspire-V5-591G:~/catkin_ws$ source devel/setup.bash
ibrahim@ibrahim-Aspire-V5-591G:~/catkin_ws$ rosrun ros_package_template ros_pack
[ERROR] [1520428539.543254493]: Could not read parameters.
ibrahim@ibrahim-Aspire-V5-591G:~/catkin_ws$
Your help will be appreciated. Please comment about it. Thanks.
Have you run
source ~/catkin_ws/devel/setup.bash
aftercatkin_make
completed? If not,rospack
cannot find the package(s) in yourcatkin_ws
.@Ibrahim_aerospace Welcome! I believe doing what @gvdhoorn says should help you. However, it's always a good idea to include a copy and paste of the full error using the
101010
(preformatted text) button vs saying paraphrasing the error.sir thank you very much for your precious reply. you are right i didnt include all the details actually i just made this account, a few ago moments ago. i wanted to upload the pictures. but as my account is new and i have no votes to upload the picture. sorry for this.
@gvdhoom thanks i will try with this.
No worries. The site blocking you from posting screenshots of the error worked in everyone's favor. Images aren't the best medium for text. You should copy and paste code, errors, and terminal output using the preformatted text (
101010
) button.@gvdhoorn your help is needed please. I changed the code now.