Giter VIP home page Giter VIP logo

Comments (2)

fujitatomoya avatar fujitatomoya commented on August 15, 2024

Since this is beginner's tutorial and minimal example, i think it intentionally uses spin_until_future_complete to wait for the specific future. i think this also makes sense as a minimal tutorial and https://github.com/ros2/rclpy/blob/88ce194b723594ccfcb42aacc3bfc4c405bbde95/rclpy/rclpy/executors.py#L315 explains well.

I am not necessarily against changing this, but i really like to hear more feedback.

from ros2_documentation.

wjwwood avatar wjwwood commented on August 15, 2024

We talked about this in the "waffle" issue triage meeting and the conclusion was that spin_until_future_complete is the right thing to use here, since that's the main purpose of this function is to help simplify situations like this example, but it would be a good idea to move the spin out of the send_request() method and into the main function, to better separate sending the request and waiting for it to complete. Also moving the spin activity to the main function will let them replace it in-place with spin if they decide to make it more complex.

from ros2_documentation.

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.