@@ -118,7 +118,7 @@ PYBIND11_MODULE(marker_tracking, m) {
118118 " __repr__" ,
119119 [](const momentum::CalibrationConfig& self) {
120120 return fmt::format (
121- " CalibrationConfig(min_vis_percent={}, loss_alpha={}, max_iter={}, regularization={}, debug={}, calib_frames={}, major_iter={}, global_scale_only={}, locators_only={}, greedy_sampling={}, enforce_floor_in_first_frame={}, first_frame_pose_constraint_set=\" {}\" )" ,
121+ " CalibrationConfig(min_vis_percent={}, loss_alpha={}, max_iter={}, regularization={}, debug={}, calib_frames={}, major_iter={}, global_scale_only={}, locators_only={}, greedy_sampling={}, enforce_floor_in_first_frame={}, first_frame_pose_constraint_set=\" {}\" , calib_shape={} )" ,
122122 self.minVisPercent ,
123123 self.lossAlpha ,
124124 self.maxIter ,
@@ -130,7 +130,8 @@ PYBIND11_MODULE(marker_tracking, m) {
130130 boolToString (self.locatorsOnly ),
131131 self.greedySampling ,
132132 boolToString (self.enforceFloorInFirstFrame ),
133- self.firstFramePoseConstraintSet );
133+ self.firstFramePoseConstraintSet ,
134+ boolToString (self.calibShape ));
134135 })
135136 .def (
136137 py::init<
@@ -145,7 +146,8 @@ PYBIND11_MODULE(marker_tracking, m) {
145146 bool ,
146147 size_t ,
147148 bool ,
148- std::string>(),
149+ std::string,
150+ bool >(),
149151 R"( Create a CalibrationConfig with specified parameters.
150152
151153 :param min_vis_percent: Minimum percentage of visible markers to be used
@@ -171,7 +173,8 @@ PYBIND11_MODULE(marker_tracking, m) {
171173 py::arg (" locators_only" ) = false ,
172174 py::arg (" greedy_sampling" ) = 0 ,
173175 py::arg (" enforce_floor_in_first_frame" ) = false ,
174- py::arg (" first_frame_pose_constraint_set" ) = " " )
176+ py::arg (" first_frame_pose_constraint_set" ) = " " ,
177+ py::arg (" calib_shape" ) = false )
175178 .def_readwrite (
176179 " calib_frames" ,
177180 &momentum::CalibrationConfig::calibFrames,
@@ -199,7 +202,11 @@ PYBIND11_MODULE(marker_tracking, m) {
199202 .def_readwrite (
200203 " first_frame_pose_constraint_set" ,
201204 &momentum::CalibrationConfig::firstFramePoseConstraintSet,
202- " Name of pose constraint set to use in first frame" );
205+ " Name of pose constraint set to use in first frame" )
206+ .def_readwrite (
207+ " calib_shape" ,
208+ &momentum::CalibrationConfig::calibShape,
209+ " Calibrate shape parameters" );
203210
204211 auto trackingConfig =
205212 py::class_<momentum::TrackingConfig, momentum::BaseConfig>(
0 commit comments