@@ -98,7 +98,12 @@ void declareTypesSixDofExpmap(py::module& m) {
98
98
.def (" compute_error" , &EdgeSE3ProjectXYZOnlyPose::computeError)
99
99
.def (" is_depth_positive" , &EdgeSE3ProjectXYZOnlyPose::isDepthPositive)
100
100
.def (" linearize_oplus" , &EdgeSE3ProjectXYZOnlyPose::linearizeOplus)
101
- .def (" cam_project" , &EdgeSE3ProjectXYZOnlyPose::cam_project);
101
+ .def (" cam_project" , &EdgeSE3ProjectXYZOnlyPose::cam_project)
102
+ .def_readwrite (" fx" , &EdgeSE3ProjectXYZOnlyPose::fx)
103
+ .def_readwrite (" fy" , &EdgeSE3ProjectXYZOnlyPose::fy)
104
+ .def_readwrite (" cx" , &EdgeSE3ProjectXYZOnlyPose::cx)
105
+ .def_readwrite (" cy" , &EdgeSE3ProjectXYZOnlyPose::cy)
106
+ .def_readwrite (" Xw" , &EdgeSE3ProjectXYZOnlyPose::Xw);
102
107
103
108
// Projection using focal_length in x and y directions stereo
104
109
py::class_<EdgeStereoSE3ProjectXYZ,
@@ -109,7 +114,12 @@ void declareTypesSixDofExpmap(py::module& m) {
109
114
.def (" compute_error" , &EdgeStereoSE3ProjectXYZ::computeError)
110
115
.def (" is_depth_positive" , &EdgeStereoSE3ProjectXYZ::isDepthPositive)
111
116
.def (" linearize_oplus" , &EdgeStereoSE3ProjectXYZ::linearizeOplus)
112
- .def (" cam_project" , &EdgeStereoSE3ProjectXYZ::cam_project);
117
+ .def (" cam_project" , &EdgeStereoSE3ProjectXYZ::cam_project)
118
+ .def_readwrite (" fx" , &EdgeStereoSE3ProjectXYZ::fx)
119
+ .def_readwrite (" fy" , &EdgeStereoSE3ProjectXYZ::fy)
120
+ .def_readwrite (" cx" , &EdgeStereoSE3ProjectXYZ::cx)
121
+ .def_readwrite (" cy" , &EdgeStereoSE3ProjectXYZ::cy)
122
+ .def_readwrite (" bf" , &EdgeStereoSE3ProjectXYZ::bf);
113
123
114
124
// Edge to optimize only the camera pose stereo
115
125
templatedBaseUnaryEdge<3 , Vector3, VertexSE3Expmap>(
0 commit comments