Skip to content

Support constructing CustomJoint and SpatialTransform objects in scripting #4166

@nickbianco

Description

@nickbianco

The following snippet,

spatial_transform = osim.SpatialTransform()
joint = osim.CustomJoint('ground_pelvis', model.getGround(), pelvis, spatial_transform)
model.addJoint(joint)

leads to a segmentation fault in Python, likely because the SpatialTransform is provided as a modifiable reference to the CustomJoint constructor.

I've also had issues creating custom SpatialTransforms from scratch directly in Python. This will be valuable for model building via scripting.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions