Comments (1)
I've debugged into this but haven't found the root cause yet. I believe @wjwwood's speculation that it's coming from the duplicately named nodes is correct, but haven't found the code path for the collision.
Digging through the call stack and tracing the values back up here are my notes so far.
KeyError:1
rclpy/rclpy/rclpy/executors.py
Line 255 in 62012d3
future = client._pending_requests[sequence]
sequence is 1 expects 0
Callig coroutine
https://github.com/ros2/rclpy/blob/master/rclpy/rclpy/executors.py#L310
await call_coroutine(entity, arg)
arg comes from
rclpy/rclpy/rclpy/executors.py
Line 303 in 62012d3
arg = take_from_wait_list(entity)
_make_request
take_from_wait_list is invocation of
rclpy/rclpy/rclpy/executors.py
Line 263 in 62012d3
Which calls through to the CAPI
rclpy/rclpy/src/rclpy/_rclpy.c
Line 2504 in 62012d3
/// Take a request from a given service
/**
* Raises ValueError if pyservice is not a service capsule
*
* \param[in] pyservice Capsule pointing to the service to process the request
* \param[in] pyrequest_type Instance of the message type to take
* \return List with 2 elements:
* first element: a Python request message with all fields populated with received request
* second element: a Capsule pointing to the header (rmw_request_id) of the processed request
*/
static PyObject *
rclpy_take_request(PyObject * Py_UNUSED(self), PyObject * args)
from rclpy.
Related Issues (20)
- CMake Error (Non-existent Path) When Building From Source HOT 4
- Cannot log in ROS2 node after building with cython HOT 6
- ReadtheDocs page is missing a lot of documentation for API. HOT 5
- SIGINT signal on parent not terminated Turtlesim GUI application HOT 1
- ros2 topic HZ option is not predictable for report freq values when using default rmw_fastrtps_cpp rmw implementation HOT 3
- MultiThreadExecutor may throw exception after destroying subscription with non-default callback group
- Failed to send request: cannot publish data HOT 5
- Lifecycle node `Transition is not registered` exception kills node HOT 1
- debian12 humble source build: invalid use of incomplete type ‘PyFrameObject’
- failed to create domain error when spawning many python nodes at once from launch file with cyclonedds HOT 3
- Only hold weak internal reference to callbacks HOT 1
- Opinion: MultiThreadedExecutor should not raise exceptions if the Task's exception was retrieved HOT 3
- xmlrpc.client.Fault: <Fault 1: "<class 'RuntimeError'>:!rclpy.ok()"> HOT 5
- [design question] get_parameter exception choice HOT 5
- Timer hanging and high CPU load when using MultiThreadedExecutor HOT 18
- rclpy._rclpy_pybind11 HOT 1
- Feature Request for MultiProcessExecutor HOT 2
- async wait/sleep implementation HOT 4
- KeyError in ActionServer._execute_goal HOT 5
- [Feature] Static Type Checking With ament_mypy HOT 1
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 rclpy.