Skip to content

Use Pybind11 for rclpy Python Bindings #665

Closed

Description

@sloretz

Feature request

@azeey @IanTheEngineer @cottsay FYI

Feature description

This is a ticket to use Pybind11 for the CPython extension instead of manually writing code to interact with the CPython API.

Implementation considerations

Plan: https://docs.google.com/document/d/1BsTlxgzAkpX-5Q7FW6_Hyw1fszDEQef_OEvYmdnrBrE/edit?usp=sharing

Refactor order: Arrows point from a type that needs to be refactored before the type it points to. Types with no arrows pointing them can be done as soon as all methods using them are converted to pybind11.

pybind11_conversion_graph

dot graph of order
digraph order_of_conversions {
rcl_time_point_t
rcl_wait_set_t
rmw_qos_profile_t
rmw_request_id_t
rmw_service_info_t
rcl_duration_t
action_client -> rcl_node_t
action_server -> rcl_node_t
rcl_action_goal_handle_t -> action_server
rcl_node_t -> context
subscription -> rcl_node_t
publisher -> rcl_node_t
service -> rcl_node_t
client -> rcl_node_t
timer -> context
timer -> clock
clock
guard_condition -> context
rcl_event_t -> publisher
rcl_event_t -> subscription
}

Activity

  1. added
    enhancement
    on Jan 21, 2021
  2. self-assigned this
    on Jan 21, 2021
  3. clalancette commented on Apr 8, 2021

    @clalancette
    Contributor

    @sloretz Given that we've gone as far as we are going to go with this in Galactic, should we remove this ticket from the Galactic Project board and move it to the H-Turtle one?

  4. sloretz commented on Apr 8, 2021

    @sloretz
    ContributorAuthor

    @sloretz Given that we've gone as far as we are going to go with this in Galactic, should we remove this ticket from the Galactic Project board and move it to the H-Turtle one?

    I would keep it in Galactic. Our current plan is to backport the remainder of the work to Galactic for the first patch release.

  5. wjwwood commented on Apr 17, 2021

    @wjwwood
    Member

    I would keep it in Galactic. Our current plan is to backport the remainder of the work to Galactic for the first patch release.

    Should we (created and then) move it to a 'Galactic Patch Release 1' project board? I think we've done something like that in the past.

  6. clalancette commented on Apr 19, 2021

    @clalancette
    Contributor

    Should we (created and then) move it to a 'Galactic Patch Release 1' project board? I think we've done something like that in the past.

    That makes sense to me. @cottsay Mind doing that?

  7. ahcorde commented on May 5, 2021

    @ahcorde
    Contributor

    Related work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions