Git Product home page Git Product logo

Comments (12)

sloretz avatar sloretz commented on July 4, 2024 1

I think this feature already exists as rclpy.ok()

from rclpy.utilities import ok # noqa: F401 forwarding to this module

Implementation

def ok(*, context=None):
if context is None:
context = get_default_context()
return context.ok()

from rclpy.

fujitatomoya avatar fujitatomoya commented on July 4, 2024 1

@EricCousineau-TRI it would be appreciated if you could review #1198

from rclpy.

hemantku avatar hemantku commented on July 4, 2024

I can help on this. Do you want to assign this to me?

from rclpy.

sloretz avatar sloretz commented on July 4, 2024

Thanks @hemantku

I'm not able to assign you to the ticket, but go ahead and start on it anyways. I would be happy to answer questions you may have if you encounter issues.

from rclpy.

hemantku avatar hemantku commented on July 4, 2024

#224

from rclpy.

hemantku avatar hemantku commented on July 4, 2024

@sloretz : Is there an reference architecture doc for rclpy just like launch: https://github.com/ros2/launch/blob/master/launch/doc/source/architecture.rst ? For example, How is the state stored in each node, using the lifecycle node? or is it something else

from rclpy.

sloretz avatar sloretz commented on July 4, 2024

Is there an reference architecture doc for rclpy just like launch

Not that I know of. There are slides about the architecture leading up to rclpy py starting at slide 30 here: https://roscon.ros.org/2016/presentations/ROSCon%202016%20-%20ROS%202%20Update.pdf

For example, How is the state stored in each node, using the lifecycle node

What kind of state? There is a pycapsule holding a pointer to an rcl_node_t on node._handle.

from rclpy.

suab321321 avatar suab321321 commented on July 4, 2024

I would like to help on this @sloretz

from rclpy.

pr-db avatar pr-db commented on July 4, 2024

@wjwwood Hello, I'm new to open source and love working with ros. How can I approach this issue?

from rclpy.

wjwwood avatar wjwwood commented on July 4, 2024

Sorry @pr-db, this got lost. If you, or anyone else, wants to work on this...

We need a function to check if rclpy is already initialized or not, or perhaps just a more specific exception being raise. You can see from here:

ros2/launch#75 (comment)

That we're catching a generic exception and comparing the error string to see if it is the already initialized error, which is very fragile.

from rclpy.

EricCousineau-TRI avatar EricCousineau-TRI commented on July 4, 2024

Yeah, I think @sloretz is right - worth closing this issue now?

from rclpy.

sloretz avatar sloretz commented on July 4, 2024

Closing this issue as complete

from rclpy.

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.