|
#include <RobotAPI/libraries/RobotStatechartHelpers/PositionControllerHelper.h>
Classes | |
struct | NullspaceOptimizationArgs |
Public Member Functions | |
void | addWaypoint (const Eigen::Matrix4f &waypoint) |
void | clearFeedForwardVelocity () |
const Eigen::Matrix4f & | getCurrentTarget () const |
const Eigen::Vector3f | getCurrentTargetPosition () const |
float | getOrientationError () const |
float | getPositionError () const |
std::string | getStatusText () |
void | immediateHardStop (bool clearTargets=true) |
bool | isCurrentTargetNear () const |
bool | isCurrentTargetReached () const |
bool | isFinalTargetNear () const |
bool | isFinalTargetReached () const |
bool | isLastWaypoint () const |
PositionControllerHelper (const VirtualRobot::RobotNodePtr &tcp, const VelocityControllerHelperPtr &velocityControllerHelper, const Eigen::Matrix4f &target) | |
PositionControllerHelper (const VirtualRobot::RobotNodePtr &tcp, const VelocityControllerHelperPtr &velocityControllerHelper, const std::vector< Eigen::Matrix4f > &waypoints) | |
PositionControllerHelper (const VirtualRobot::RobotNodePtr &tcp, const VelocityControllerHelperPtr &velocityControllerHelper, const std::vector< PosePtr > &waypoints) | |
void | readConfig (const CartesianPositionControllerConfigBase &config) |
void | readConfig (const CartesianPositionControllerConfigBasePtr &config) |
void | setFeedForwardVelocity (const Eigen::Vector3f &feedForwardVelocityPos, const Eigen::Vector3f &feedForwardVelocityOri) |
void | setFeedForwardVelocity (const Eigen::Vector6f &feedForwardVelocity) |
void | setNewWaypoints (const std::vector< Eigen::Matrix4f > &waypoints) |
void | setNewWaypoints (const std::vector< PosePtr > &waypoints) |
void | setNullSpaceControl (bool enabled) |
void | setTarget (const Eigen::Matrix4f &target) |
size_t | skipToClosestWaypoint (float rad2mmFactor) |
void | update () |
void | updateRead () |
void | updateWrite () |
Static Public Member Functions | |
static bool | OptimizeNullspace (const VirtualRobot::RobotNodePtr &tcp, const VirtualRobot::RobotNodeSetPtr &rns, const Eigen::Matrix4f &target, const NullspaceOptimizationArgs &args=NullspaceOptimizationArgs()) |
OptimizeNullspace. More... | |
Public Attributes | |
bool | autoClearFeedForward = true |
size_t | currentWaypointIndex = 0 |
Eigen::Vector6f | feedForwardVelocity = Eigen::Vector6f::Zero() |
CartesianPositionController | posController |
float | thresholdOrientationNear = 0 |
float | thresholdOrientationReached = 0 |
float | thresholdPositionNear = 0 |
float | thresholdPositionReached = 0 |
VelocityControllerHelperPtr | velocityControllerHelper |
std::vector< Eigen::Matrix4f > | waypoints |
Definition at line 47 of file PositionControllerHelper.h.
PositionControllerHelper | ( | const VirtualRobot::RobotNodePtr & | tcp, |
const VelocityControllerHelperPtr & | velocityControllerHelper, | ||
const Eigen::Matrix4f & | target | ||
) |
Definition at line 35 of file PositionControllerHelper.cpp.
PositionControllerHelper | ( | const VirtualRobot::RobotNodePtr & | tcp, |
const VelocityControllerHelperPtr & | velocityControllerHelper, | ||
const std::vector< Eigen::Matrix4f > & | waypoints | ||
) |
Definition at line 41 of file PositionControllerHelper.cpp.
PositionControllerHelper | ( | const VirtualRobot::RobotNodePtr & | tcp, |
const VelocityControllerHelperPtr & | velocityControllerHelper, | ||
const std::vector< PosePtr > & | waypoints | ||
) |
Definition at line 46 of file PositionControllerHelper.cpp.
void addWaypoint | ( | const Eigen::Matrix4f & | waypoint | ) |
Definition at line 113 of file PositionControllerHelper.cpp.
void clearFeedForwardVelocity | ( | ) |
Definition at line 136 of file PositionControllerHelper.cpp.
const Eigen::Matrix4f & getCurrentTarget | ( | ) | const |
Definition at line 185 of file PositionControllerHelper.cpp.
const Eigen::Vector3f getCurrentTargetPosition | ( | ) | const |
Definition at line 190 of file PositionControllerHelper.cpp.
float getOrientationError | ( | ) | const |
Definition at line 155 of file PositionControllerHelper.cpp.
float getPositionError | ( | ) | const |
Definition at line 150 of file PositionControllerHelper.cpp.
std::string getStatusText | ( | ) |
Definition at line 219 of file PositionControllerHelper.cpp.
void immediateHardStop | ( | bool | clearTargets = true | ) |
Definition at line 141 of file PositionControllerHelper.cpp.
bool isCurrentTargetNear | ( | ) | const |
Definition at line 165 of file PositionControllerHelper.cpp.
bool isCurrentTargetReached | ( | ) | const |
Definition at line 160 of file PositionControllerHelper.cpp.
bool isFinalTargetNear | ( | ) | const |
Definition at line 175 of file PositionControllerHelper.cpp.
bool isFinalTargetReached | ( | ) | const |
Definition at line 170 of file PositionControllerHelper.cpp.
bool isLastWaypoint | ( | ) | const |
Definition at line 180 of file PositionControllerHelper.cpp.
|
static |
OptimizeNullspace.
tcp | |
rns | |
target | target pose in root frame of the robot |
args |
Definition at line 227 of file PositionControllerHelper.cpp.
void readConfig | ( | const CartesianPositionControllerConfigBase & | config | ) |
Definition at line 55 of file PositionControllerHelper.cpp.
void readConfig | ( | const CartesianPositionControllerConfigBasePtr & | config | ) |
Definition at line 67 of file PositionControllerHelper.cpp.
void setFeedForwardVelocity | ( | const Eigen::Vector3f & | feedForwardVelocityPos, |
const Eigen::Vector3f & | feedForwardVelocityOri | ||
) |
Definition at line 130 of file PositionControllerHelper.cpp.
void setFeedForwardVelocity | ( | const Eigen::Vector6f & | feedForwardVelocity | ) |
Definition at line 125 of file PositionControllerHelper.cpp.
void setNewWaypoints | ( | const std::vector< Eigen::Matrix4f > & | waypoints | ) |
Definition at line 97 of file PositionControllerHelper.cpp.
void setNewWaypoints | ( | const std::vector< PosePtr > & | waypoints | ) |
Definition at line 103 of file PositionControllerHelper.cpp.
void setNullSpaceControl | ( | bool | enabled | ) |
Definition at line 214 of file PositionControllerHelper.cpp.
void setTarget | ( | const Eigen::Matrix4f & | target | ) |
Definition at line 118 of file PositionControllerHelper.cpp.
size_t skipToClosestWaypoint | ( | float | rad2mmFactor | ) |
Definition at line 195 of file PositionControllerHelper.cpp.
void update | ( | ) |
Definition at line 72 of file PositionControllerHelper.cpp.
void updateRead | ( | ) |
Definition at line 78 of file PositionControllerHelper.cpp.
void updateWrite | ( | ) |
Definition at line 86 of file PositionControllerHelper.cpp.
bool autoClearFeedForward = true |
Definition at line 127 of file PositionControllerHelper.h.
size_t currentWaypointIndex = 0 |
Definition at line 120 of file PositionControllerHelper.h.
Eigen::Vector6f feedForwardVelocity = Eigen::Vector6f::Zero() |
Definition at line 126 of file PositionControllerHelper.h.
CartesianPositionController posController |
Definition at line 116 of file PositionControllerHelper.h.
float thresholdOrientationNear = 0 |
Definition at line 125 of file PositionControllerHelper.h.
float thresholdOrientationReached = 0 |
Definition at line 123 of file PositionControllerHelper.h.
float thresholdPositionNear = 0 |
Definition at line 124 of file PositionControllerHelper.h.
float thresholdPositionReached = 0 |
Definition at line 122 of file PositionControllerHelper.h.
VelocityControllerHelperPtr velocityControllerHelper |
Definition at line 117 of file PositionControllerHelper.h.
std::vector<Eigen::Matrix4f> waypoints |
Definition at line 119 of file PositionControllerHelper.h.