Giter Site home page Giter Site logo

Comments (2)

mikaelarguedas avatar mikaelarguedas commented on September 26, 2024

Looking at that demo it looks like expected behavior.
The lifecycle_listener is not a lifecycle node, just a node:

class LifecycleListener : public rclcpp::Node

So it doesnt have a get state service. So the call hangs forever.

What we can do about it:

  • Modifiy ros2 service call to timeout rather than waiting for service forever
  • Make it clear that the demo it just to show the use of a lifecycle talker and that the listener is NOT a lifecycle node
  • something we suggested last release: get rid of lifecycle_service_client_py.py completely and make people use the ros2 service calls listed below

from demos.

Karsten1987 avatar Karsten1987 commented on September 26, 2024

Where it is indeed the expected behavior, I agree, it's certainly not user friendly. #214 introduces a call to wait_for_service which would eventually time out when the services are not available and thus cleanup nicely.

from demos.

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.