Skip to content

Fix shared pointer property assignment in MATLAB - #200

Closed
ProfFan wants to merge 1 commit into
masterfrom
fix/matlab-shared-pointer-property-setter
Closed

Fix shared pointer property assignment in MATLAB#200
ProfFan wants to merge 1 commit into
masterfrom
fix/matlab-shared-pointer-property-setter

Conversation

@ProfFan

@ProfFan ProfFan commented Aug 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • distinguish shared-pointer and reference properties from wrapped value properties in MATLAB setter generation
  • assign unwrapped shared ownership handles directly instead of dereferencing them
  • retain value-copy behavior for wrapped value properties
  • add focused regression coverage and update the existing generated fixture

Testing

  • python3 -m pytest -o addopts='' -q tests: 113 passed
  • git diff --check

Assign unwrapped shared-pointer handles directly while continuing to dereference wrapped value properties. Add focused generator coverage for both cases.
ProfFan added a commit to borglab/gtsam that referenced this pull request Aug 21, 2026
Use the wrapper pointer DSL consistently for shared ownership and add named stereo measurement and calibration vector bindings with Python and MATLAB lifetime coverage. The MATLAB generator fix lives upstream in borglab/wrap#200.
@ProfFan
ProfFan requested a review from dellaert August 21, 2026 23:01
@dellaert

Copy link
Copy Markdown
Member

Let’s discuss on the GTSAM PR first?

@ProfFan ProfFan closed this Aug 22, 2026
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.

2 participants