Ask Your Question

catkin_make --pkg

asked 2019-03-11 06:37:07 -0600

Yehor gravatar image

updated 2019-03-11 06:40:29 -0600


Could please someone explains to me one thing. Currently, I am trying to install pkg for Astra camera from source git: . Firstly, I downloaded the directory by using git clone Next, in the instruction, I have to build it by using catkin_make --pkg. However, as an argument, I am writing astra_camera and not ros_astra_camera (as the pkg name). While I tried to do catkin_make --pkg ros_astra_camera there was an error, that it couldn't find that pkg. So my question is how does that function work catkin_make --pkg and why it couldn't find the right name of the pkg, but only astra_camera (I do not have astra_camera pkg only ros_astra_camera).

While I am running: catkin_make --pkg ros_astra_camera -DFILTER=OFF, it shows me next error: Packages "ros_astra_camera" not found in the workspace


edit retag flag offensive close merge delete


Can you please update your question with a copy and paste of the full error?

jayess gravatar image jayess  ( 2019-03-11 06:38:28 -0600 )edit

I have updated the question

Yehor gravatar image Yehor  ( 2019-03-11 06:41:20 -0600 )edit

now if I am running roscd astra_camera it follows me to ros_astra_camera.

Yehor gravatar image Yehor  ( 2019-03-11 06:44:09 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2019-03-11 06:46:05 -0600

mgruhler gravatar image

The repository/directory name is NOT the package name.

The package name is specified in two places:

  1. in the package.xml
  2. in the CMakeLists.txt

This is why catkin_make --pkg astra_camera is working, but not with ros_astra_camera.

The directory can actually have any name. But it makes sense to have it the same as the package, for obvious reasons...

edit flag offensive delete link more


thank you, for the clarification

Yehor gravatar image Yehor  ( 2019-03-11 06:48:34 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2019-03-11 06:37:07 -0600

Seen: 301 times

Last updated: Mar 11 '19