Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding reference_internal tag to function bindings that return raw pointers #6

Merged
merged 1 commit into from
Mar 11, 2021

Conversation

aaronchongth
Copy link
Member

Signed-off-by: Aaron Chong aaronchongth@gmail.com

Bug fix

Fixed bug

#4

Fix applied

The functions that were bound returns a raw pointer, using the fallback return_value_policy::take_ownership, it deletes the item after it goes out of scope in python. Specifying them to use return_value_policy::reference_internal prevents that.

Yadunund
Yadunund previously approved these changes Mar 11, 2021
…inters

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
@Yadunund Yadunund merged commit 9aeb767 into main Mar 11, 2021
@Yadunund Yadunund deleted the fix/pybind_ptr_ownership branch March 11, 2021 05:27
Yadunund pushed a commit that referenced this pull request Mar 19, 2021
…inters (#6)

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Yadunund pushed a commit that referenced this pull request Mar 19, 2021
…inters (#6)

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Yadunund <yadunund@openrobotics.org>
Yadunund added a commit that referenced this pull request Mar 19, 2021
* Added minimal api to generate plan

Signed-off-by: Yadunund <yadunund@openrobotics.org>

* Adding reference_internal tag to function bindings that return raw pointers (#6)

Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
Signed-off-by: Yadunund <yadunund@openrobotics.org>

* planner binding returns waypoints in plan

Signed-off-by: Yadunund <yadunund@openrobotics.org>

* Added use_sim_time function to Node

Signed-off-by: Yadunund <yadunund@openrobotics.org>

* get_plan_waypoints returns empty list if planner was unsuccessful

Signed-off-by: Yadunund <yadunund@openrobotics.org>

* Remove binding for interpolate options

Signed-off-by: Yadunund <yadunund@openrobotics.org>

Co-authored-by: Aaron Chong <aaronchongth@gmail.com>
mxgrey pushed a commit that referenced this pull request Apr 22, 2021
* update gitignore

* resolve lambda capture bug

* refactor to follow ingestor api

* update bindings for new Lane api

* successful build for graph and lane api

* update to use pybind11 2.6

* implement optionals

* fix existing tests

* removing optionals due to built in pybind11 support

* remove compile_commands.json

* formatting touch ups

* appropriate handling of optionals

* proposed modifications to test classes

* update graph labelling

* update constants to use enums directly

* more descriptive assertions

* add python bindings for mockadapter request_loop

* split graph visualization into legend and graph

* implement looprequest test

* refactor into more reusable components

* refactor further to separate tests logically

* implement trace-style waypoint logs rather than count-style

* remove unnecessary field

* add teardown of nodes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants