Skip to content

Commit fdaa208

Browse files
authored
Fix getPose() returning arrays of length 3 in Java. (cyberbotics#6556)
* Fix getPose() returning arrays of length 3 in Java. * Update the changelog. * Fix the PR number in the changelog. * Fix PR number *text* in changelog.
1 parent 06cb82a commit fdaa208

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

docs/reference/changelog-r2024.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Released on December **th, 2023.
1010
- Removed deprecated `windowPosition`, `pixelSize` fields of [Display](display.md) node ([#6327](https://github.com/cyberbotics/webots/pull/6327)).
1111
- Bug Fixes
1212
- Fixed error message on Windows when `libssl-3-x64.dll` was added to `PATH` ([#6553](https://github.com/cyberbotics/webots/pull/6553)).
13-
13+
- Fixed length of arrays returned by `getPose()` in Java ([#6556](https://github.com/cyberbotics/webots/pull/6556)).

src/controller/java/controller.i

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ using namespace std;
8383
$result = SWIG_JavaArrayOutDouble(jenv, $1, 6);
8484
else if (test == "getOrientation" || test == "virtualRealityHeadsetGetOrientation")
8585
$result = SWIG_JavaArrayOutDouble(jenv, $1, 9);
86+
else if (test == "getPose")
87+
$result = SWIG_JavaArrayOutDouble(jenv, $1, 16);
8688
else if (test != "getLookupTable")
8789
$result = SWIG_JavaArrayOutDouble(jenv, $1, 3);
88-
else if (test != "getPose")
89-
$result = SWIG_JavaArrayOutDouble(jenv, $1, 16);
9090
}
9191
%apply double[] {double *};
9292

0 commit comments

Comments
 (0)