Comments (2)
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.
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)
- DOC
- Proposal for reshaping Launch tutorials HOT 4
- WARNING: 'any' reference target not found: latest_release HOT 1
- pip install fails with `error: externally-managed-environment` HOT 3
- Proposal for a ROS 2 Skill Tree on ROS2 Docs HOT 1
- Install ROS 2 on Jetson nano HOT 5
- installation repodata returns 404 (Jazzy) HOT 1
- prebuilt html artifacts can help the review for each PR? HOT 3
- Add artifact availability in contribution guide HOT 3
- Add tutorial how to allow and override the QoS configuration when node starts. HOT 2
- Introducing-Turtlesim seems not to work (Beginner's problem solved?) HOT 4
- Add `Reading from a bag file (Python)` tutorial
- Tutorial CLI Tools - Configuring Environment - Zenoh RMW additions HOT 1
- The following signatures couldn't be verified because the public key is not available: NO_PUBKEY F42ED6FBAB17C654 HOT 1
- Enable bot HTML artifacts comment on PRs from fork HOT 4
- Two issues with Docker tutorial in Jazzy HOT 5
- ros2 service echo is not recognised! HOT 8
- Topics & Services
- Write A Concrete Package Maintainers Guide to build.ros.org
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ros2_documentation.