CartesianPositionController Class Reference

#include <RobotAPI/libraries/core/CartesianPositionController.h>

Public Member Functions

Eigen::VectorXf calculate (const Eigen::Matrix4f &targetPose, VirtualRobot::IKSolver::CartesianSelection mode) const
 
Eigen::VectorXf calculatePos (const Eigen::Vector3f &targetPos) const
 
 CartesianPositionController (CartesianPositionController &&)=default
 
 CartesianPositionController (const VirtualRobot::RobotNodePtr &tcp, const VirtualRobot::RobotNodePtr &referenceFrame=nullptr)
 
Eigen::Vector3f getOrientationDiff (const Eigen::Matrix4f &targetPose) const
 
float getOrientationError (const Eigen::Matrix4f &targetPose) const
 
Eigen::Vector3f getPositionDiff (const Eigen::Matrix4f &targetPose) const
 
Eigen::Vector3f getPositionDiffVec3 (const Eigen::Vector3f &targetPosition) const
 
float getPositionError (const Eigen::Matrix4f &targetPose) const
 
VirtualRobot::RobotNodePtr getTcp () const
 
CartesianPositionControlleroperator= (CartesianPositionController &&)=default
 
bool reached (const Eigen::Matrix4f &targetPose, VirtualRobot::IKSolver::CartesianSelection mode, float thresholdPosReached, float thresholdOriReached)
 

Static Public Member Functions

static float GetOrientationError (const Eigen::Matrix4f &targetPose, const VirtualRobot::RobotNodePtr &tcp, const VirtualRobot::RobotNodePtr &referenceFrame=nullptr)
 
static float GetPositionError (const Eigen::Matrix4f &targetPose, const VirtualRobot::RobotNodePtr &tcp, const VirtualRobot::RobotNodePtr &referenceFrame=nullptr)
 
static bool Reached (const Eigen::Matrix4f &targetPose, const VirtualRobot::RobotNodePtr &tcp, bool checkOri, float thresholdPosReached, float thresholdOriReached, const VirtualRobot::RobotNodePtr &referenceFrame=nullptr)
 

Public Attributes

float KpOri = 1
 
float KpPos = 1
 
float maxOriVel = -1
 
float maxPosVel = -1
 

Detailed Description

Definition at line 41 of file CartesianPositionController.h.

Constructor & Destructor Documentation

◆ CartesianPositionController() [1/2]

CartesianPositionController ( const VirtualRobot::RobotNodePtr &  tcp,
const VirtualRobot::RobotNodePtr &  referenceFrame = nullptr 
)

Definition at line 31 of file CartesianPositionController.cpp.

◆ CartesianPositionController() [2/2]

Member Function Documentation

◆ calculate()

Eigen::VectorXf calculate ( const Eigen::Matrix4f &  targetPose,
VirtualRobot::IKSolver::CartesianSelection  mode 
) const

Definition at line 37 of file CartesianPositionController.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ calculatePos()

Eigen::VectorXf calculatePos ( const Eigen::Vector3f &  targetPos) const

Definition at line 77 of file CartesianPositionController.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getOrientationDiff()

Eigen::Vector3f getOrientationDiff ( const Eigen::Matrix4f &  targetPose) const

Definition at line 170 of file CartesianPositionController.cpp.

+ Here is the caller graph for this function:

◆ getOrientationError()

float getOrientationError ( const Eigen::Matrix4f &  targetPose) const

Definition at line 98 of file CartesianPositionController.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetOrientationError()

float GetOrientationError ( const Eigen::Matrix4f &  targetPose,
const VirtualRobot::RobotNodePtr &  tcp,
const VirtualRobot::RobotNodePtr &  referenceFrame = nullptr 
)
static

Definition at line 114 of file CartesianPositionController.cpp.

+ Here is the caller graph for this function:

◆ getPositionDiff()

Eigen::Vector3f getPositionDiff ( const Eigen::Matrix4f &  targetPose) const

Definition at line 158 of file CartesianPositionController.cpp.

+ Here is the caller graph for this function:

◆ getPositionDiffVec3()

Eigen::Vector3f getPositionDiffVec3 ( const Eigen::Vector3f &  targetPosition) const

Definition at line 165 of file CartesianPositionController.cpp.

+ Here is the caller graph for this function:

◆ getPositionError()

float getPositionError ( const Eigen::Matrix4f &  targetPose) const

Definition at line 93 of file CartesianPositionController.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPositionError()

float GetPositionError ( const Eigen::Matrix4f &  targetPose,
const VirtualRobot::RobotNodePtr &  tcp,
const VirtualRobot::RobotNodePtr &  referenceFrame = nullptr 
)
static

Definition at line 103 of file CartesianPositionController.cpp.

+ Here is the caller graph for this function:

◆ getTcp()

VirtualRobot::RobotNodePtr getTcp ( ) const

Definition at line 180 of file CartesianPositionController.cpp.

+ Here is the caller graph for this function:

◆ operator=()

◆ Reached()

bool Reached ( const Eigen::Matrix4f &  targetPose,
const VirtualRobot::RobotNodePtr &  tcp,
bool  checkOri,
float  thresholdPosReached,
float  thresholdOriReached,
const VirtualRobot::RobotNodePtr &  referenceFrame = nullptr 
)
static

Definition at line 127 of file CartesianPositionController.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ reached()

bool reached ( const Eigen::Matrix4f &  targetPose,
VirtualRobot::IKSolver::CartesianSelection  mode,
float  thresholdPosReached,
float  thresholdOriReached 
)

Definition at line 138 of file CartesianPositionController.cpp.

+ Here is the call graph for this function:

Member Data Documentation

◆ KpOri

float KpOri = 1

Definition at line 75 of file CartesianPositionController.h.

◆ KpPos

float KpPos = 1

Definition at line 74 of file CartesianPositionController.h.

◆ maxOriVel

float maxOriVel = -1

Definition at line 77 of file CartesianPositionController.h.

◆ maxPosVel

float maxPosVel = -1

Definition at line 76 of file CartesianPositionController.h.


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