mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-12 07:19:50 +08:00
Fix distortion parameter bugs, see #15
This commit is contained in:
Generated
+14
@@ -0,0 +1,14 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<code_scheme name="Project" version="173">
|
||||||
|
<clangFormatSettings>
|
||||||
|
<option name="ENABLED" value="true" />
|
||||||
|
</clangFormatSettings>
|
||||||
|
<codeStyleSettings language="CMake">
|
||||||
|
<indentOptions>
|
||||||
|
<option name="INDENT_SIZE" value="2" />
|
||||||
|
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
||||||
|
<option name="TAB_SIZE" value="2" />
|
||||||
|
</indentOptions>
|
||||||
|
</codeStyleSettings>
|
||||||
|
</code_scheme>
|
||||||
|
</component>
|
||||||
Generated
+5
@@ -0,0 +1,5 @@
|
|||||||
|
<component name="ProjectCodeStyleConfiguration">
|
||||||
|
<state>
|
||||||
|
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
|
||||||
|
</state>
|
||||||
|
</component>
|
||||||
@@ -28,9 +28,9 @@ sensor_msgs::msg::CameraInfo convertToCameraInfo(OBCameraIntrinsic intrinsic,
|
|||||||
info.d.resize(5, 0.0);
|
info.d.resize(5, 0.0);
|
||||||
info.d[0] = distortion.k1;
|
info.d[0] = distortion.k1;
|
||||||
info.d[1] = distortion.k2;
|
info.d[1] = distortion.k2;
|
||||||
info.d[2] = distortion.k3;
|
info.d[2] = distortion.p1;
|
||||||
info.d[3] = distortion.k4;
|
info.d[3] = distortion.p2;
|
||||||
info.d[4] = distortion.k5;
|
info.d[4] = distortion.k3;
|
||||||
|
|
||||||
info.k.fill(0.0);
|
info.k.fill(0.0);
|
||||||
info.k[0] = intrinsic.fx;
|
info.k[0] = intrinsic.fx;
|
||||||
|
|||||||
Reference in New Issue
Block a user