File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,3 +11,5 @@ Released on December **th, 2023.
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 ) ).
1313 - Fixed length of arrays returned by ` getPose() ` in Java ([ #6556 ] ( https://github.com/cyberbotics/webots/pull/6556 ) ).
14+ - Fixed length of arrays returned by ` CameraRecognitionObject.getColors() ` in Java ([ #6564 ] ( https://github.com/cyberbotics/webots/pull/6564 ) )
15+
Original file line number Diff line number Diff line change @@ -85,11 +85,15 @@ using namespace std;
8585 $result = SWIG_JavaArrayOutDouble (jenv, $1 , 9 );
8686 else if (test == " getPose" )
8787 $result = SWIG_JavaArrayOutDouble (jenv, $1 , 16 );
88- else if (test != " getLookupTable" )
88+ else if (test != " colors " && test != " getLookupTable" )
8989 $result = SWIG_JavaArrayOutDouble (jenv, $1 , 3 );
9090}
9191%apply double [] {double *};
9292
93+ %typemap(out) double *colors {
94+ $result = SWIG_JavaArrayOutDouble (jenv, (double *) $1 , arg1->number_of_colors *3 );
95+ }
96+
9397%typemap(out) const double *getLookupTable {
9498 $result = SWIG_JavaArrayOutDouble (jenv, (double *) $1 , arg1->getLookupTableSize ()*3 );
9599}
You can’t perform that action at this time.
0 commit comments