Skip to content

Commit

Permalink
Fix getPose() returning arrays of length 3 in Java. (cyberbotics#6556)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
brettle authored May 30, 2024
1 parent 06cb82a commit fdaa208
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/reference/changelog-r2024.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ Released on December **th, 2023.
- Removed deprecated `windowPosition`, `pixelSize` fields of [Display](display.md) node ([#6327](https://github.com/cyberbotics/webots/pull/6327)).
- Bug Fixes
- Fixed error message on Windows when `libssl-3-x64.dll` was added to `PATH` ([#6553](https://github.com/cyberbotics/webots/pull/6553)).

- Fixed length of arrays returned by `getPose()` in Java ([#6556](https://github.com/cyberbotics/webots/pull/6556)).
4 changes: 2 additions & 2 deletions src/controller/java/controller.i
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ using namespace std;
$result = SWIG_JavaArrayOutDouble(jenv, $1, 6);
else if (test == "getOrientation" || test == "virtualRealityHeadsetGetOrientation")
$result = SWIG_JavaArrayOutDouble(jenv, $1, 9);
else if (test == "getPose")
$result = SWIG_JavaArrayOutDouble(jenv, $1, 16);
else if (test != "getLookupTable")
$result = SWIG_JavaArrayOutDouble(jenv, $1, 3);
else if (test != "getPose")
$result = SWIG_JavaArrayOutDouble(jenv, $1, 16);
}
%apply double[] {double *};

Expand Down

0 comments on commit fdaa208

Please sign in to comment.