![]() |
RobWorkProject
23.9.11-
|
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... | |
Collection of utility function associated to tasks.
|
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.
path | [in] Path to convert to task |