Coder Social home page Coder Social logo

Comments (13)

psigen avatar psigen commented on April 20, 2024

One option might be to use the following option to ExternalProject:

If UPDATE_DISCONNECTED is set, the update step is not executed automatically when building the
main target. The update step can still be added as a step target and called manually. This is
useful if you want to allow to build the project when you are disconnected from the network (you
might still need the network for the download step). This is disabled by default. The directory
property EP_UPDATE_DISCONNECTED can be used to change the default value for all the external
projects in the current directory and its subdirectories.

https://cmake.org/cmake/help/v3.2/module/ExternalProject.html

from apriltags.

davelkan-zz avatar davelkan-zz commented on April 20, 2024

This is only a valid option with Cmake 3.2 or later. People using indigo for example cannot use this option. I would argue therefore that this is still an issue. There is no real reason Apriltags users should need internet to build.

from apriltags.

andre-nguyen avatar andre-nguyen commented on April 20, 2024

This is indeed a problem for me since sometimes I do tests in the field without internet access. Any idea how to fix this easily?

from apriltags.

andre-nguyen avatar andre-nguyen commented on April 20, 2024

I ended up doing a quick and dirty hack to catkinize https://github.com/swatbotics/apriltags-cpp and put it as a dependency of this repo. I doubt this is the direction you guys seem to be aiming for though.

from apriltags.

psigen avatar psigen commented on April 20, 2024

Actually, in discussions with @mkoval, we concluded that catkin-izing the apriltags upstream library is probably The Right Thing for this case.

@andre-nguyen can you make a PR for the catkinization over at https://github.com/swatbotics/apriltags-cpp ?

@ClintLiddick, if you and @mkoval can help check it over and give it the OK, I'll merge it up there. Then we can change this package to simply use CMake to FindApriltags(), and change the directions to have people check out both packages together.

This may be useful as a step towards #19 anyway.

from apriltags.

davelkan-zz avatar davelkan-zz commented on April 20, 2024

This sounds like a great plan to me.

from apriltags.

mkoval avatar mkoval commented on April 20, 2024

I agree with @psigen that The Right Thing is to build the upstream library as a separate package. All we need to do is modify the upstream repository to follow REP-136 by:

  1. adding a package.xml file with <build_type>cmake</build_type>
  2. adding an install(FILES) rule for the package.xml file
  3. using configure_package_config_file() to generate a ApriltagsConfig.cmake file

You can see an example of this in Aikido's package.xml and CMakeLists.txt files.

Once this is done, this package can depend on Apriltags using find_package(Apriltags). The two packages may be built in the same workspace using catkin_make_isolated or catkin build.

from apriltags.

andre-nguyen avatar andre-nguyen commented on April 20, 2024

I see.

This isn't quite how I did it here swatbotics/apriltags-cpp#8 but your method seems cleaner. I'll leave it up for anyone who just want's to have the quick fix.

from apriltags.

davelkan-zz avatar davelkan-zz commented on April 20, 2024

Any updates on this?

from apriltags.

psigen avatar psigen commented on April 20, 2024

Not at the moment, I think everyone's just been pretty busy recently.

from apriltags.

Asukamax avatar Asukamax commented on April 20, 2024

Excuse me .I'm a newbie.
I don't know how to use this package ,even I could build it ,run the launch file successful...
When I run the apriltags.launch ,it seem like doing nothing?
Is that I should run some node to make my camera active and publish the image imformation to topic?
If is that , which package I could use?

Thanks a lot

from apriltags.

psigen avatar psigen commented on April 20, 2024

@Asukamax: It's normally useful to create a new issue for different topics, so I've created one here for you #23. Feel free to post followup questions there.

from apriltags.

psigen avatar psigen commented on April 20, 2024

Fixed in #25

from apriltags.

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.