Initially, in Unit 2 part 1, we created a package with roscpp and std_msgs dependencies. And the exercise in that unit asked to change the message type to geometry_msgs and publish to cmd_vel, and I changed both of these things in that initial set up only.

So the question is, how did it manage the geometry_msgs dependency because we only had the std_msgs dependency in the initial set up and if it can manage this way somehow, what is the point in creating a package with any dependency?

asked 05 Aug, 01:06

shrinand.thakkar%40stonybrook.ed's gravatar image

shrinand.tha...
0
accept rate: 0%


Hello @shrinand,

The idea is that you don't need to modify CMakeLists.txt or package.xml when you create the package with all dependencies it may need.

But you can always change the dependencies modifying these files, it's not something that must be set only at first moment.

You can create a package without any dependency or set some of them. Anyway, you can set it later.

Hope it could clarify your question.

Cheers

permanent link

answered 16 Aug, 17:35

marcoarruda's gravatar image

marcoarruda ♦♦
1764
accept rate: 20%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×19

question asked: 05 Aug, 01:06

question was seen: 94 times

last updated: 16 Aug, 17:35

powered by OSQA