forked from opencog/opencog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprogMapTools.dox
73 lines (60 loc) · 2.24 KB
/
progMapTools.dox
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
namespace opencog {
namespace spatial {
/**
\page progMapTools MapTools program
To build it use:
@code
make MapTools
@endcode
This page is a high level overview of the program; to dig into the details
read \ref grp_spatial "the comprehensive overview".
Dependencies:
- \ref libspatial "SpaceMap"
- \ref libcogutil "cogutil"
- sdl
- sdlgfx
- opengl
- boost program options
This is a tool designed for debugging purpose. It can be used by a developer
that want to "see" what the agent is perceiving in real time. Each agent
contains a MapExplorerServer inside it. A MapExplorerServer is a service that
capture the latest version of the map, managed by the agent, and sends it to
each client that is connected to it. A MapExplorerServer is a network service
that accepts at most 5 clients per agent. MapTools contains a visualizer that
renders the map, sent by the MapExplorereServer, in a graphical 3D space. Once
an agent is running inside OpenCog, MapTools, switched in "remote" mode, can be
used as a map browser.
There are three parameters that must be configured in the
embodiment.conf file:
1. VISUAL_DEBUGGER_ACTIVE = true
2. VISUAL_DEBUGGER_HOST = localhost
3. VISUAL_DEBUGGER_PORT = 6000
where, parameter 1 is responsible for activating or
deactivating MapExplorerServer; parameter 2 and 3 define
the address and port used by the MapExplorerServer to communicate
with the clients.
It is important to note that each loaded agent binds the
MapExplorerServer in a different port. Supposing that the port
was set to 6000, the first loaded agent will use the port 6000
in its MapExplorerServer service. The second will use 6001 the
third 6002, and so on.
Once an agent is running, it is possible to use MapTools to
visualize the agent's map, for instance:
@code
$ ./MapTools --mode remote --host localhost --port 6000 --video-mode 1
@endcode
Type "MapTools --help" for more informations about this tool.
\if MARKER_TREE_START
ignored by doxygen; used as markers for update-links.py;
\endif
<TABLE width="100%" border="0"><TR>
<TD>\ref progcogserver "Previous"</TD>
<TD width="100%"></TD>
<TD>\ref fsstructure "Next"</TD>
</TR></TABLE>
\if MARKER_TREE_END
ignored by doxygen; used as markers for update-links.py;
\endif
*/
} //~namespace spatial
} //~namespace opencog