|
RTAB-Map 0.23.10
Real-Time Appearance-Based Mapping
|
Command sent to RtabmapThread, with its parameters. More...
#include <RtabmapEvent.h>


Public Types | |
| enum | dummy { d } |
| enum | Cmd { kCmdUndef , kCmdInit , kCmdResetMemory , kCmdClose , kCmdUpdateParams , kCmdDumpMemory , kCmdDumpPrediction , kCmdGenerateDOTGraph , kCmdExportPoses , kCmdCleanDataBuffer , kCmdPublish3DMap , kCmdRepublishData , kCmdTriggerNewMap , kCmdPause , kCmdResume , kCmdGoal , kCmdCancelGoal , kCmdLabel , kCmdRemoveLabel } |
| What the receiving RtabmapThread should do. More... | |
Public Member Functions | |
| RtabmapEventCmd (Cmd cmd, const ParametersMap ¶meters=ParametersMap()) | |
| RtabmapEventCmd (Cmd cmd, const UVariant &value1, const ParametersMap ¶meters=ParametersMap()) | |
| RtabmapEventCmd (Cmd cmd, const UVariant &value1, const UVariant &value2, const ParametersMap ¶meters=ParametersMap()) | |
| RtabmapEventCmd (Cmd cmd, const UVariant &value1, const UVariant &value2, const UVariant &value3, const ParametersMap ¶meters=ParametersMap()) | |
| RtabmapEventCmd (Cmd cmd, const UVariant &value1, const UVariant &value2, const UVariant &value3, const UVariant &value4, const ParametersMap ¶meters=ParametersMap()) | |
| Cmd | getCmd () const |
| const UVariant & | value1 () const |
| const UVariant & | value2 () const |
| const UVariant & | value3 () const |
| const UVariant & | value4 () const |
| const ParametersMap & | getParameters () const |
| virtual std::string | getClassName () const |
Public Member Functions inherited from UEvent | |
| int | getCode () const |
Additional Inherited Members | |
Protected Member Functions inherited from UEvent | |
| UEvent (int code=0) | |
Command sent to RtabmapThread, with its parameters.
Posting one to UEventsManager is how the map is controlled from another thread: initializing or closing it, resetting the memory, requesting the graph, setting a goal, labelling a node... The arguments listed for each Cmd are passed as value1 / value2 to the constructor, and parameter maps through parameters.
Definition at line 67 of file RtabmapEvent.h.
| enum rtabmap::RtabmapEventCmd::dummy |
Definition at line 70 of file RtabmapEvent.h.
What the receiving RtabmapThread should do.
| Enumerator | |
|---|---|
| kCmdUndef | No command. |
| kCmdInit | Initialize the map. Params: [string] database path + ParametersMap. |
| kCmdResetMemory | Clear the map and start over from an empty memory. |
| kCmdClose | Close the map. Params: [bool] database saved (default true), [string] output database path (empty=use same database to save, only work when Db/Sqlite3InMemory=true). |
| kCmdUpdateParams | Apply new parameters. Params: ParametersMap. |
| kCmdDumpMemory | Dump the memory content to text files in the working directory. |
| kCmdDumpPrediction | Dump the Bayes filter prediction matrix to a text file. |
| kCmdGenerateDOTGraph | Write the graph as a DOT file. Params: [bool] global, [string] path, if global=false: [int] id, [int] margin. |
| kCmdExportPoses | Export the poses to a file. Params: [bool] global, [bool] optimized, [string] path, [int] type (0=raw format, 1=RGBD-SLAM format, 2=KITTI format, 3=TORO, 4=g2o). |
| kCmdCleanDataBuffer | Drop the frames waiting in the thread's buffer. |
| kCmdPublish3DMap | Ask for the map, answered with a RtabmapEvent3DMap. Params: [bool] global, [bool] optimized, [bool] graphOnly. |
| kCmdRepublishData | Republish the data of some nodes. Params: [vector<int>] ids. |
| kCmdTriggerNewMap | Start a new map session (see Rtabmap::triggerNewMap()). |
| kCmdPause | Stop consuming incoming data. |
| kCmdResume | Resume after a kCmdPause. |
| kCmdGoal | Plan a path to a node. Params: [string] label or [int] location ID. |
| kCmdCancelGoal | Abandon the current goal. |
| kCmdLabel | Label a node. Params: [string] label, [int] location ID. |
| kCmdRemoveLabel | Remove a label. Params: [string] label. |
Definition at line 72 of file RtabmapEvent.h.
|
inline |
Definition at line 94 of file RtabmapEvent.h.
|
inline |
Definition at line 98 of file RtabmapEvent.h.
|
inline |
Definition at line 103 of file RtabmapEvent.h.
|
inline |
Definition at line 109 of file RtabmapEvent.h.
|
inline |
Definition at line 116 of file RtabmapEvent.h.
|
inlinevirtual |
Definition at line 125 of file RtabmapEvent.h.
|
inline |
Definition at line 126 of file RtabmapEvent.h.
|
inline |
Definition at line 128 of file RtabmapEvent.h.
|
inline |
Definition at line 129 of file RtabmapEvent.h.
|
inline |
Definition at line 130 of file RtabmapEvent.h.
|
inline |
Definition at line 131 of file RtabmapEvent.h.
|
inline |
Definition at line 133 of file RtabmapEvent.h.
|
inlinevirtual |
This method is used to get the class name of the event. For example, if a class MouseEvent inherits from UEvent, it must return the "MouseEvent" string.
Implements UEvent.
Definition at line 135 of file RtabmapEvent.h.