# Monitor communication v3/v4 documentation

**URL:** <https://ssim.forum.robocup.org/t/monitor-communication-v3-v4-documentation/87>\
**Category:** 2D\
**Created:** [4 July 2021 21:14 UTC](https://ssim.forum.robocup.org/t/monitor-communication-v3-v4-documentation/87 "2021-07-04T21:14:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![moay](https://ssim.forum.robocup.org/letter_avatar_proxy/v4/letter/m/6f9a4e/32.png) [@moay](https://ssim.forum.robocup.org/u/moay)\
**Post date:** [4 July 2021 21:14 UTC](https://ssim.forum.robocup.org/t/monitor-communication-v3-v4-documentation/87/1 "2021-07-04T21:14:22Z")

</div>

Hi everybody. I’m trying to get started in 2D simulation. I want to build some cool stuff in Go on my M1 mac. Sadly I fail to get the monitor started (seems to be related to some incompatibility with the ARM processor), so I thought I start by writing my own web based monitor (which would then also be able to run in a docker container).

I manage to get connection to rcssserver (v16) via UDP and get a lot of data. Sadly, I cannot find any documentation on what the communication contains. If I connect using `(dispinit version 2)` (or even 1) I don’t get any data at all. With version 3 and 4, my UDP is flooded with stuff. First I get server params, then player params and then player types. Thats fine, I can work with that. But then I just get a lot of messages looking like this:

```auto
(show 6000 (pm 2) (tm Player null 0 0) ((b) 0 0 0 0) ((l 1) 0 0 -3 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((l 2) 0 0 -6 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((l 3) 0 0x1 -9 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((l 4) 0 0 -12 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((l 5) 0 0 -15 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((l 6) 0 0 -18 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((l 7) 0 0 -21 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((l 8) 0 0 -24 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((l 9) 0 0 -27 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((l 10) 0 0 -30 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((l 11) 0 0 -33 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((r 1) 0 0 3 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((r 2) 0 0 6 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((r 3) 0 0 9 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((r 4) 0 0 12 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((r 5) 0 0 15 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((r 6) 0 0 18 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((r 7) 0 0 21 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((r 8) 0 0 24 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((r 9) 0 0 27 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((r 10) 0 0 30 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)) ((r 11) 0 0 33 -37 0 0 0 0 (v h 90) (s 8000 1 1 130600) (c 0 0 0 0 0 0 0 0 0 0 0)))

```

I assume this is the current positions of the players with directions, velocities, and so on.

Is there any kind of documentation on what to expect here and what other things will be sent?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![moay](https://ssim.forum.robocup.org/letter_avatar_proxy/v4/letter/m/6f9a4e/32.png) [@moay](https://ssim.forum.robocup.org/u/moay)\
**Post date:** [4 July 2021 21:27 UTC](https://ssim.forum.robocup.org/t/monitor-communication-v3-v4-documentation/87/2 "2021-07-04T21:27:03Z")

</div>

Addition: I already found some documentation, sadly it’s not very helpful. Things seem to have changed a bit. 🙂

I found:

- [https://github.com/rcsoccersim/rcssserver/blob/master/src/types.h](https://github.com/rcsoccersim/rcssserver/blob/master/src/types.h)
- [https://rcsoccersim.github.io/manual/soccermonitor.html#communication-from-monitor-to-server](https://rcsoccersim.github.io/manual/soccermonitor.html#communication-from-monitor-to-server)

Based on the type definitions I can assume most of the contained parameters/values. Still, some up to date documentation would be helpful.

---

<div class="post-metadata">

**Author:** ![hidehisa.akiyama](https://ssim.forum.robocup.org/user_avatar/ssim.forum.robocup.org/hidehisa.akiyama/32/11_2.png) [@hidehisa.akiyama](https://ssim.forum.robocup.org/u/hidehisa.akiyama)\
**Post date:** [5 July 2021 01:34 UTC](https://ssim.forum.robocup.org/t/monitor-communication-v3-v4-documentation/87/3 "2021-07-05T01:34:41Z")

</div>

Unfortunately, no up-to-date documentation about the monitor. Below is a quick reference of the show protocol. You can find an example implementation of the monitor parser in rcssmonitor/src/rcsslogplayer/parser.cpp. Parser::parseShowLine() is a parser for show message.

(show TIME PLAYMODE TEAM\_INFO BALL PLAYERS)

PLAYMODE := (pm PLAYMODE\_ID)

TEAM\_INFO := (tm LEFT\_TEAMNAME RIGHT\_TEAMNAME LEFT\_SCORE RIGHT\_SCORE[LEFT\_PENALTY\_SCORE LEFT\_PENALTY\_MISS RIGHT\_PENALTY\_SCORE RIGHT\_PENALTY\_MISS])

BALL := ((b) X Y VEL\_X VEL\_Y)

PLAYERS := PLAYER PLAYERS | PLAYER  
PLAYER := ((SIDE UNUM) TYPE STATE X Y VEL\_X VEL\_Y BODY\_DIR NECK\_DIR [POINT\_X POINT\_Y] (v VIEW\_QUALITY VIEW\_WIDTH) (s STAMINA EFFORT RECOVERY[STAMINA\_CAPACITY][(f FOCUS\_SIDE FOCUS\_UNUM)] (c KICK DASH TURN CATCH MOVE TURN\_NECK CHANGE\_VIEW SAY TACKLE POINTTO ATTENTIONTO))

---

<div class="post-metadata">

**Author:** ![moay](https://ssim.forum.robocup.org/letter_avatar_proxy/v4/letter/m/6f9a4e/32.png) [@moay](https://ssim.forum.robocup.org/u/moay)\
**Post date:** [5 July 2021 06:21 UTC](https://ssim.forum.robocup.org/t/monitor-communication-v3-v4-documentation/87/4 "2021-07-05T06:21:57Z")

</div>

Great, thanks you very much. Your help is very much appreciated.

Do the other commands still exist? There seems to still be this dedicated socket for the commands and at least `(dispstart)` seems to still work. Are there any other things I need to keep in mind? How much can I rely on the documentation for the monitor?

---

<div class="post-metadata">

**Author:** ![hidehisa.akiyama](https://ssim.forum.robocup.org/user_avatar/ssim.forum.robocup.org/hidehisa.akiyama/32/11_2.png) [@hidehisa.akiyama](https://ssim.forum.robocup.org/u/hidehisa.akiyama)\
**Post date:** [5 July 2021 07:05 UTC](https://ssim.forum.robocup.org/t/monitor-communication-v3-v4-documentation/87/5 "2021-07-05T07:05:57Z")

</div>

You can use all commands described in the documentation. No major change on the communication from monitor to server.

---

<div class="post-metadata">

**Author:** ![moay](https://ssim.forum.robocup.org/letter_avatar_proxy/v4/letter/m/6f9a4e/32.png) [@moay](https://ssim.forum.robocup.org/u/moay)\
**Post date:** [5 July 2021 07:30 UTC](https://ssim.forum.robocup.org/t/monitor-communication-v3-v4-documentation/87/6 "2021-07-05T07:30:26Z")

</div>

Great, thanks. I’ll get back with questions if I encounter any… 😉

---

<div class="post-metadata">

**Author:** ![2538913539](https://ssim.forum.robocup.org/letter_avatar_proxy/v4/letter/2/f04885/32.png) [@2538913539](https://ssim.forum.robocup.org/u/2538913539)\
**Post date:** [26 January 2022 06:50 UTC](https://ssim.forum.robocup.org/t/monitor-communication-v3-v4-documentation/87/7 "2022-01-26T06:50:16Z")

</div>

现在进展怎么样了，我的是m1 芯片的，也没法安装显示器
