Robotics StackExchange | Archived questions

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

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

parth@parth007:~/catkinws/src/pkgrosbasics/scripts$ cd ~/catkinws parth@parth007:~/catkinws$ rosrun pkgrosbasics nodehelloros.py [rospack] Error: package 'pkgrosbasics' not found parth@parth007:~/catkinws$ cd ~/catkinws/src parth@parth007:~/catkinws/src$ rosrun pkgrosbasics nodehelloros.py [rospack] Error: package 'pkgrosbasics' 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

Asked by perth on 2020-10-10 01:48:19 UTC

Comments

Answers