ImFusion C++ SDK 4.4.0
ImFusion::Robotics::MotionGenerator< PositionType > Class Template Referenceabstract

#include <RoboticsPlugin/Include/ImFusion/Robotics/Control/RobotControl.h>

Online generator for trajectory waypoints Given input parameters (typically including the goal pose) and the initial state of the robot, it will compute intermediate PositionType objects at arbitrary points in time. More...

Inheritance diagram for ImFusion::Robotics::MotionGenerator< PositionType >:

Detailed Description

template<typename PositionType>
class ImFusion::Robotics::MotionGenerator< PositionType >

Online generator for trajectory waypoints Given input parameters (typically including the goal pose) and the initial state of the robot, it will compute intermediate PositionType objects at arbitrary points in time.

It will return a value representing the end of the motion when the generated position reaches the target.

Public Member Functions

 MotionGenerator (std::unique_ptr< MotionGeneratorParametersInterface > params)
 MotionGenerator (const MotionGenerator< PositionType > &other)
bool init (const RobotState &state) override
bool requestStop () override
 Request the motion generator to abort the motion, decelerating to zero velocity as fast as possible.
virtual bool canStart ()
virtual MotionStep< PositionType > operator() (const ControlIterationInfo &controlIterationInfo)=0
MotionGeneratorParametersInterfaceparameters ()
template<typename ParametersType>
ParametersType * typedParameters ()

Protected Member Functions

virtual bool initImpl ()=0
 Should validate the parameters and perform required initialization (including memory preallocation).

Protected Attributes

std::unique_ptr< const RobotStatem_initState
std::unique_ptr< MotionGeneratorParametersInterfacem_parameters
bool m_inited = false
std::atomic< bool > m_isStopRequested = false

Member Function Documentation

◆ init()

template<typename PositionType>
bool ImFusion::Robotics::MotionGenerator< PositionType >::init ( const RobotState & state)
inlineoverridevirtual

◆ requestStop()

template<typename PositionType>
bool ImFusion::Robotics::MotionGenerator< PositionType >::requestStop ( )
inlineoverridevirtual

Request the motion generator to abort the motion, decelerating to zero velocity as fast as possible.

Implements ImFusion::Robotics::MotionGeneratorBase.

Reimplemented in ImFusion::Robotics::RuckigCartesianStreamingMotionGenerator.

◆ initImpl()


The documentation for this class was generated from the following file:
  • RoboticsPlugin/Include/ImFusion/Robotics/Control/RobotControl.h
Search Tab / S to search, Esc to close