While running rosrun pkg_ros_basics node_hello_ros.py it's showing pkg_ros_basics not found

asked 2020-10-10 01:48:19 -0500

perth gravatar image

While running ROS node it's showing the following output.

parth@parth007:~/catkin_ws/src/pkg_ros_basics/scripts$ cd ~/catkin_ws parth@parth007:~/catkin_ws$ rosrun pkg_ros_basics node_hello_ros.py [rospack] Error: package 'pkg_ros_basics' not found parth@parth007:~/catkin_ws$ cd ~/catkin_ws/src parth@parth007:~/catkin_ws/src$ rosrun pkg_ros_basics node_hello_ros.py [rospack] Error: package 'pkg_ros_basics' not found


roscore tested in both catkin_ws and src dir separately

Workspace cmd

cd ~/catkin_ws catkin build.

Installed pkgs

Catkin Tools sudo apt-get install ros-melodic-catkin python-catkin-tools std_msg package
sudo apt install ros-melodic-std-msgs turtlesim
sudo apt-get install ros-melodic-ros-tutorials

All cmd for workspace and pkg creation ran successfully only, ros node output not getting.

Thanks in advance

edit retag flag offensive close merge delete