Coder Social home page Coder Social logo

Comments (3)

ivanpauno avatar ivanpauno commented on August 15, 2024

I can't reproduce the issue, it works well for me.
Could you explain it further?
Also, add system details (Installed from source or binaries, etc).

from launch_ros.

rotu avatar rotu commented on August 15, 2024

I'm on master branch. Closing this ticket as user error - it was not clear to me whether you could use Node action to launch a LifecycleNode. Turns out it works just fine, though I'm not sure whether this is by design or by accident.

from launch_ros.

ivanpauno avatar ivanpauno commented on August 15, 2024

It is be design. LifecycleNode action does the same that Node action, and also emits some events that can be handled by user added event handlers in the launch file. If you are not using that, you can just use Node.
I would always use LifecycleNode action for lifecycle nodes, just for clarity.

See:

"""
Construct a LifecycleNode action.
Almost all of the arguments are passed to :class:`Node` and eventually
to :class:`launch.actions.ExecuteProcess`, so see the documentation of
those classes for additional details.
This action additionally emits some event(s) in certain circumstances:
- :class:`launch.events.lifecycle.StateTransition`:
- this event is emitted when a message is published to the
"/<node_name>/transition_event" topic, indicating the lifecycle
node represented by this action changed state
This action also handles some events related to lifecycle:
- :class:`launch.events.lifecycle.ChangeState`
- this event can be targeted to a single lifecycle node, or more than
one, or even all lifecycle nodes, and it requests the targeted nodes
to change state, see its documentation for more details.
"""

from launch_ros.

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.