You’re reading an older version of the Slamcore SDK documenation. The latest one is 23.01.

Class slamcore::SLAMAsyncTasksInterface

class SLAMAsyncTasksInterface

Access to asynchronous tasks.

Subclassed by SLAMSystemInterface

Public Functions

virtual ~SLAMAsyncTasksInterface() = default
virtual IDT launchAsyncTask(TaskType task, const std::map<std::string, std::string> &params) = 0

Launch asynchronous task.

Note

This is asynchronous API, the task might start after this call returns.

Parameters
  • task – Type of task to launch.

  • params – Map of key-value pairs describing task-specific parameters.

Returns

Returned unique identifier to distinguish tasks of the same type.

virtual void cancelAsyncTask(TaskType task, IDT id) = 0

Cancel an existing asynchronous task.

Note

This is asynchronous API, the task might not be cancelled immediately.

Parameters
  • task – Type of task to cancel.

  • id – Unique identifier of the tasks to cancel.

virtual TaskStatusInterface::Ptr getTaskStatus(TaskType task, IDT id) = 0

Get task status.

Parameters
  • task – Type of task to check.

  • id – Unique identifier of the tasks to check.