GithubHelp home page GithubHelp logo

Comments (6)

wjwwood avatar wjwwood commented on August 16, 2024

I might also be useful to suggest the reason behind the issue you ran into, something like:

Package 'foo' did not install some required files for an 'ament_cmake' package type:
  - '<prefix>/share/foo/package.xml' was found
  - '<prefix>/share/ament_index/resource_index/packages/foo' is missing
[ ... ]

Did you forget to call `ament_package()` in your `CMakeLists.txt`?

from ament_tools.

dirk-thomas avatar dirk-thomas commented on August 16, 2024

I can see certain packages could be skipping the ament_package() call if e.g. a required dependency is not available (as a graceful fallback for example). In that case the warning would be annoying since it is intended.

from ament_tools.

wjwwood avatar wjwwood commented on August 16, 2024

Well, lots of our code assumes that there is a package file in the ament resource, and potentially other things, so if we don't enforce this we'll have undo those assumptions. For example, @rohbotics' problem was that he had a workspace with only a pair of ament_cmake build type packages, neither of which actually called ament_package() and so the setup file crashed trying to ls the share/ament_index/.../packages folder.

from ament_tools.

wjwwood avatar wjwwood commented on August 16, 2024

That would probably also be a problem if the workspace was empty.

from ament_tools.

rohbotics avatar rohbotics commented on August 16, 2024

In an empty workspace ament build does nothing, no setup.bash is created

rohan@machina:~/test_ws$ ls src
rohan@machina:~/test_ws$ ament build
# Topological order
All selected packages are being skipped. Nothing to do.
rohan@machina:~/test_ws$ ls
src
rohan@machina:~/test_ws$

from ament_tools.

dirk-thomas avatar dirk-thomas commented on August 16, 2024

Closing since the repo is archived.

from ament_tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.