Ask Your Question
0

catkin_make --pkg

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

Yehor gravatar image

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

Hello,

Could please someone explains to me one thing. Currently, I am trying to install pkg for Astra camera from source git: https://github.com/orbbec/ros_astra_c... . Firstly, I downloaded the directory by using git clone https://github.com/orbbec/ros_astra_camera. 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

Thanks

edit retag flag offensive close merge delete

Comments

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 -0500 )edit

I have updated the question

Yehor gravatar image Yehor  ( 2019-03-11 06:41:20 -0500 )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 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

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

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

Comments

thank you, for the clarification

Yehor gravatar image Yehor  ( 2019-03-11 06:48:34 -0500 )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

Stats

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

Seen: 151 times

Last updated: Mar 11 '19