Ask Your Question
1

How do I remove a dependency of a package?

asked 2021-05-21 15:23:15 -0500

Praveen Nellihela gravatar image

I created a new package using the catkin_create_pkg command that depends on std_msgs rospy roscpp. If I want to remove the roscpp dependency from this package, how can it be done? Can it be done through a terminal command ideally? If not, should it be done by editing package.xml and CMakeLists.txt or something like that?

I am using ROS1 noetic on Ubuntu 20.04 kernel 5.8.0-53-generic

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
5

answered 2021-05-21 15:55:14 -0500

Orhan gravatar image

Can it be done through a terminal command ideally?

AFAIK, no.

Just remove them from package.xml and CMakeLists.txt as you described and the next time you are building it, catkin won't check for those packages.

edit flag offensive delete link more

Comments

Thank you!

Praveen Nellihela gravatar image Praveen Nellihela  ( 2021-05-27 13:43:58 -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

2 followers

Stats

Asked: 2021-05-21 15:23:15 -0500

Seen: 133 times

Last updated: May 21 '21