RobWorkProject  23.9.11-
Static Public Member Functions | List of all members
TaskUtils Class Reference

Collection of utility function associated to tasks. More...

#include <TaskUtils.hpp>

Static Public Member Functions

template<class T , class M >
static Task< T >::Ptr pathToTask (const std::vector< T > &path)
 Constructs a task with type T from a path. More...
 

Detailed Description

Collection of utility function associated to tasks.

Member Function Documentation

◆ pathToTask()

static Task<T>::Ptr pathToTask ( const std::vector< T > &  path)
inlinestatic

Constructs a task with type T from a path.

The first template argument T specifies the type of task, e.g. rw::math::Q or rw::math::Transform3D. The second template argument M specifies which type of motion, e.g. P2PMotion or LinearMotion. It is required that the motion M has a constructor taking two arguments of type T.

Parameters
path[in] Path to convert to task
Returns
The Task constructed

The documentation for this class was generated from the following file: