ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

No such package after catkin_make

asked 2020-09-18 15:15:59 -0500

cjonesy gravatar image

updated 2020-09-19 07:30:37 -0500

gvdhoorn gravatar image

I'm running ROS Noetic on a Raspberry Pi 4 with basic ROS com setup (no rviz, etc). Following the tutorial I run

$ catkin_create_pkg picar std_msgs rospy roscpp
$ cd ~/ros_catkin/ws
$ catkin_make

Sorry I don't have enough points to upload a screenshot of the console. This is an empty package with no added code yet but my understanding is that it should still compile. I ran catkin_make and then the second time I did a whitelist to just compile the picar package. I see the folder and get no error message from catkin_make but roscd and rospack both don't see it and I get No Such Package errors. Am I missing a step?

-- +++ processing catkin package: 'picar'
-- ==> add_subdirectory(picar)
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pi/ros_catkin_ws/build
####
#### Running command: "make -j4 -l4" in "/home/pi/ros_catkin_ws/build"
####
pi@raspberrypi:~/ros_catkin_ws $ rospack depends1 picar
[rospack] Error: no such package picar
pi@raspberrypi:~/ros_catkin_ws $ roscd picar
roscd: No such package/stack 'picar'
pi@raspberrypi:~/ros_catkin_ws $ ls
build  build_isolated  devel  devel_isolated  noetic-ros_comm-wet.rosinstall  src
pi@raspberrypi:~/ros_catkin_ws $ cd src
pi@raspberrypi:~/ros_catkin_ws/src $ ls
catkin        CMakeLists.txt  gencpp  genlisp  gennodejs  message_generation  picar      ros       ros_comm_msgs  roscpp_core      roslisp  std_msgs
class_loader  cmake_modules   geneus  genmsg   genpy      message_runtime     pluginlib  ros_comm  rosconsole     ros_environment  rospack
pi@raspberrypi:~/ros_catkin_ws/src $ cd picar
pi@raspberrypi:~/ros_catkin_ws/src/picar $ ls
CMakeLists.txt  include  package.xml  src
pi@raspberrypi:~/ros_catkin_ws/src/picar $ cd ..
pi@raspberrypi:~/ros_catkin_ws/src $ cd ..
pi@raspberrypi:~/ros_catkin_ws $ ls
build  build_isolated  devel  devel_isolated  noetic-ros_comm-wet.rosinstall  src
pi@raspberrypi:~/ros_catkin_ws $ cd build
pi@raspberrypi:~/ros_catkin_ws/build $ ls
atomic_configure  catkin_make.cache  cmake_install.cmake     CTestTestfile.cmake  genmsg     Makefile            pluginlib      rosconsole       rospack
catkin            class_loader       cmake_modules           gencpp               gennodejs  message_generation  ros            roscpp_core      std_msgs
catkin_generated  CMakeCache.txt     CTestConfiguration.ini  geneus               genpy      message_runtime     ros_comm       ros_environment  test_results
CATKIN_IGNORE     CMakeFiles         CTestCustom.cmake       genlisp              gtest      picar               ros_comm_msgs  roslisp
pi@raspberrypi:~/ros_catkin_ws/build $ cd picar
pi@raspberrypi:~/ros_catkin_ws/build/picar $ ls
catkin_generated  CMakeFiles  cmake_install.cmake  CTestTestfile.cmake  Makefile
pi@raspberrypi:~/ros_catkin_ws/build/picar $
edit retag flag offensive close merge delete

Comments

1

Sorry I don't have enough points to upload a screenshot of the console

Good. You shouldn't post screenshots of terminals, so not being able to do that is actually not that much of a problem in this case.

gvdhoorn gravatar image gvdhoorn  ( 2020-09-19 07:31:19 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-09-19 07:32:44 -0500

gvdhoorn gravatar image

updated 2020-09-19 07:33:17 -0500

Could you clarify whether you've ran a source ~/ros_catkin_ws/devel/setup.bash between running catkin_make and your first rospack command? If you didn't, that would most likely explain why your package cannot be found (it's not on any search path known to rospack in that case).

Also: you appear to be mixing a catkin_make_isolated and a regular catkin_make workspace.

I would recommend you try to avoid that.

edit flag offensive delete link more

Comments

Yes, the issue was setup.bash. I have that resolved now. On to new error messages! Trying to put together some course curriculum for a Masters CS IoT course that will potentially use ROS in it.

cjonesy gravatar image cjonesy  ( 2020-09-19 23:42:23 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-09-18 15:15:59 -0500

Seen: 566 times

Last updated: Sep 19 '20