Skip to content

Commit 87d616b

Browse files
Merge pull request #125 from rcsoccersim/develop
Official Release 18.1.2
2 parents 5b509d2 + 99057d3 commit 87d616b

File tree

5 files changed

+19
-6
lines changed

5 files changed

+19
-6
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
cmake_minimum_required(VERSION 3.5.1)
22

3-
project(RCSSServer VERSION 18.1.1)
3+
project(RCSSServer VERSION 18.1.2)
44

55
set(CMAKE_CXX_STANDARD 17)
66
set(CMAKE_CXX_STANDARD_REQUIRED ON)

ChangeLog

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2023-03-17 Hidehisa Akiyama <hidehisaakiyama@users.noreply.github.com>
2+
3+
* CMakeLists.txt:
4+
* NEWS:
5+
* configure.ac:
6+
- update a point version number. Official release 18.1.2.
7+
- Fix a problem of v18 observation noise model.
8+
19
2023-03-15 Hidehisa Akiyama <hidehisaakiyama@users.noreply.github.com>
210

311
* CMakeLists.txt:

NEWS

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
[18.1.2]
2+
* Fix a problem of v18 observation noise model. Quantized distance
3+
values affected by the focus point are now rounded to one decimal
4+
place.
5+
16
[18.1.1]
27
* Fix a problem in which the focus point is sometimes not updated.
38

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
AC_PREREQ([2.69])
55
LT_PREREQ([2.2])
6-
AC_INIT([RCSSServer],[18.1.1],[https://github.com/rcsoccersim/],[rcssserver])
6+
AC_INIT([RCSSServer],[18.1.2],[https://github.com/rcsoccersim/],[rcssserver])
77

88
#AM_INIT_AUTOMAKE([gnu 1.7.2 check-news dist-bzip2 dist-zip])
99
AM_INIT_AUTOMAKE([gnu 1.7.2 check-news foreign])

src/visualsenderplayer.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -1156,7 +1156,7 @@ VisualSenderPlayerV18::sendHighBall( const MPObject & ball )
11561156
un_quant_dist,
11571157
self().distQStep() );
11581158
if ( std::fabs( ang ) < self().visibleAngle() * 0.5
1159-
&& un_quant_dist < self().playerType()->ballMaxObservationLength())
1159+
&& un_quant_dist < self().playerType()->ballMaxObservationLength() )
11601160
{
11611161
double prob = 0.0;
11621162
if ( self().playerType()->ballVelTooFarLength() > self().playerType()->ballVelFarLength() )
@@ -1325,10 +1325,10 @@ VisualSenderPlayerV18::calcQuantDistFocusPoint( const PObject & obj,
13251325
const double unquant_dist,
13261326
const double qstep )
13271327
{
1328-
const double dist_focus_point = obj.pos().distance( M_focus_point );
1329-
const double quant_dist_focus_point = calcQuantDist( dist_focus_point, qstep );
1328+
const double unquant_dist_focus_point = obj.pos().distance( M_focus_point );
1329+
const double quant_dist_focus_point = std::exp( Quantize( std::log( unquant_dist_focus_point + EPS ), qstep ) );
13301330

1331-
return std::max( 0.0, unquant_dist - ( dist_focus_point - quant_dist_focus_point ) );
1331+
return Quantize( std::max( 0.0, unquant_dist - ( unquant_dist_focus_point - quant_dist_focus_point ) ), 0.1 );
13321332
}
13331333

13341334
/*!

0 commit comments

Comments
 (0)