|
#include <RobotAPI/libraries/diffik/GraspTrajectory.h>
Classes | |
class | Keypoint |
struct | Length |
Public Types | |
using | Keypoint = GraspTrajectoryKeypoint |
typedef std::shared_ptr< Keypoint > | KeypointPtr |
using | KeypointPtr = std::shared_ptr< Keypoint > |
Public Member Functions | |
void | addKeypoint (const Eigen::Matrix4f &tcpTarget, const armarx::NameValueMap &handJointsTarget, float dt, const std::optional< std::string > &shape=std::nullopt) |
void | addKeypoint (const Eigen::Matrix4f &tcpTarget, const Eigen::VectorXf &handJointsTarget, float dt) |
Length | calculateLength () const |
Length | calculateLength () const |
SimpleDiffIK::Reachability | calculateReachability (VirtualRobot::RobotNodeSetPtr rns, VirtualRobot::RobotNodePtr tcp=VirtualRobot::RobotNodePtr(), SimpleDiffIK::Parameters params=SimpleDiffIK::Parameters()) |
SimpleDiffIK::Reachability | calculateReachability (VirtualRobot::RobotNodeSetPtr rns, VirtualRobot::RobotNodePtr tcp=VirtualRobot::RobotNodePtr(), SimpleDiffIK::Parameters params=SimpleDiffIK::Parameters()) |
std::vector< Eigen::Matrix3f > | getAllKeypointOrientations () |
std::vector< Eigen::Matrix3f > | getAllKeypointOrientations () const |
std::vector< Eigen::Matrix4f > | getAllKeypointPoses () |
std::vector< Eigen::Matrix4f > | getAllKeypointPoses () const |
std::vector< Eigen::Vector3f > | getAllKeypointPositions () |
std::vector< Eigen::Vector3f > | getAllKeypointPositions () const |
const std::vector< KeypointPtr > & | getAllKeypoints () const |
GraspTrajectoryPtr | getClone () |
GraspTrajectoryPtr | getClone () const |
float | getDuration () const |
float | getDuration () const |
const std::optional< std::string > & | getFrame () const |
int | GetHandJointCount () const |
Eigen::VectorXf | GetHandJointsDerivative (float t) |
Eigen::Vector3f | GetHandJointsDerivative (float t) const |
Eigen::VectorXf | GetHandValues (float t) |
armarx::NameValueMap | GetHandValues (float t) const |
void | getIndex (float t, int &i1, int &i2, float &f) |
void | getIndex (float t, int &i1, int &i2, float &f) const |
KeypointPtr & | getKeypoint (int i) |
const KeypointPtr & | getKeypoint (int i) const |
size_t | getKeypointCount () const |
size_t | getKeypointCount () const |
Eigen::Matrix3f | GetOrientation (float t) |
Eigen::Matrix3f | GetOrientation (float t) const |
Eigen::Vector3f | GetOrientationDerivative (float t) |
Eigen::Vector3f | GetOrientationDerivative (float t) const |
Eigen::Matrix4f | GetPose (float t) |
Eigen::Matrix4f | GetPose (float t) const |
Eigen::Vector3f | GetPosition (float t) |
Eigen::Vector3f | GetPosition (float t) const |
Eigen::Vector3f | GetPositionDerivative (float t) |
Eigen::Vector3f | GetPositionDerivative (float t) const |
std::optional< std::string > | GetShape (float t) const |
Eigen::Matrix4f | getStartPose () |
Eigen::Matrix4f | getStartPose () const |
Eigen::Vector6f | GetTcpDerivative (float t) |
Eigen::Matrix< float, 6, 1 > | GetTcpDerivative (float t) const |
GraspTrajectoryPtr | getTransformed (const Eigen::Matrix4f &transform) |
GraspTrajectoryPtr | getTransformed (const Eigen::Matrix4f &transform) const |
GraspTrajectoryPtr | getTransformedToGraspPose (const Eigen::Matrix4f &target, const Eigen::Vector3f &handForward=Eigen::Vector3f::UnitZ()) |
GraspTrajectoryPtr | getTransformedToGraspPose (const Eigen::Matrix4f &target, const Eigen::Vector3f &handForward=Eigen::Vector3f::UnitZ()) const |
GraspTrajectoryPtr | getTransformedToOtherHand () const |
GraspTrajectoryPtr | getTranslatedAndRotated (const Eigen::Vector3f &translation, const Eigen::Matrix3f &rotation) |
GraspTrajectoryPtr | getTranslatedAndRotated (const Eigen::Vector3f &translation, const Eigen::Matrix3f &rotation) const |
GraspTrajectory ()=default | |
GraspTrajectory (const Eigen::Matrix4f &tcpStart, const armarx::NameValueMap &handJointsStart, const std::optional< std::string > &shape=std::nullopt) | |
GraspTrajectory (const Eigen::Matrix4f &tcpStart, const Eigen::VectorXf &handJointsStart) | |
GraspTrajectory (const std::vector< Keypoint > &keypoints) | |
void | insertKeypoint (size_t index, const Eigen::Matrix4f &tcpTarget, const armarx::NameValueMap &handJointsTarget, float dt, const std::optional< std::string > &shape=std::nullopt) |
void | insertKeypoint (size_t index, const Eigen::Matrix4f &tcpTarget, const Eigen::VectorXf &handJointsTarget, float dt) |
KeypointPtr & | lastKeypoint () |
const KeypointPtr & | lastKeypoint () const |
void | removeKeypoint (size_t index) |
void | removeKeypoint (size_t index) |
void | replaceKeypoint (size_t index, const Eigen::Matrix4f &tcpTarget, const armarx::NameValueMap &handJointsTarget, float dt, const std::optional< std::string > &shape=std::nullopt) |
void | replaceKeypoint (size_t index, const Eigen::Matrix4f &tcpTarget, const Eigen::VectorXf &handJointsTarget, float dt) |
void | setFrame (const std::string &frame) |
void | setKeypointDt (size_t index, float dt) |
void | setKeypointDt (size_t index, float dt) |
void | writeToFile (const std::string &filename) |
void | writeToFile (const std::string &filename) |
Static Public Member Functions | |
static GraspTrajectoryPtr | ReadFromFile (const grasping::GraspCandidatePtr &cnd) |
static GraspTrajectoryPtr | ReadFromFile (const std::string &filename) |
static GraspTrajectoryPtr | ReadFromFile (const std::string &filename) |
static GraspTrajectoryPtr | ReadFromJSON (const std::string &filename) |
static GraspTrajectoryPtr | ReadFromReader (const RapidXmlReaderPtr &reader) |
static GraspTrajectoryPtr | ReadFromReader (const RapidXmlReaderPtr &reader) |
static GraspTrajectoryPtr | ReadFromString (const std::string &xml) |
static GraspTrajectoryPtr | ReadFromString (const std::string &xml) |
Definition at line 53 of file GraspTrajectory.h.
using Keypoint = GraspTrajectoryKeypoint |
Definition at line 80 of file GraspTrajectory.h.
typedef std::shared_ptr<Keypoint> KeypointPtr |
Definition at line 56 of file GraspTrajectory.h.
using KeypointPtr = std::shared_ptr<Keypoint> |
Definition at line 81 of file GraspTrajectory.h.
GraspTrajectory | ( | const Eigen::Matrix4f & | tcpStart, |
const Eigen::VectorXf & | handJointsStart | ||
) |
Definition at line 80 of file GraspTrajectory.cpp.
|
default |
GraspTrajectory | ( | const std::vector< Keypoint > & | keypoints | ) |
GraspTrajectory | ( | const Eigen::Matrix4f & | tcpStart, |
const armarx::NameValueMap & | handJointsStart, | ||
const std::optional< std::string > & | shape = std::nullopt |
||
) |
Definition at line 237 of file GraspTrajectory.cpp.
void addKeypoint | ( | const Eigen::Matrix4f & | tcpTarget, |
const armarx::NameValueMap & | handJointsTarget, | ||
float | dt, | ||
const std::optional< std::string > & | shape = std::nullopt |
||
) |
void addKeypoint | ( | const Eigen::Matrix4f & | tcpTarget, |
const Eigen::VectorXf & | handJointsTarget, | ||
float | dt | ||
) |
Definition at line 87 of file GraspTrajectory.cpp.
GraspTrajectory::Length calculateLength | ( | ) | const |
Length calculateLength | ( | ) | const |
SimpleDiffIK::Reachability calculateReachability | ( | VirtualRobot::RobotNodeSetPtr | rns, |
VirtualRobot::RobotNodePtr | tcp = VirtualRobot::RobotNodePtr() , |
||
SimpleDiffIK::Parameters | params = SimpleDiffIK::Parameters() |
||
) |
SimpleDiffIK::Reachability calculateReachability | ( | VirtualRobot::RobotNodeSetPtr | rns, |
VirtualRobot::RobotNodePtr | tcp = VirtualRobot::RobotNodePtr() , |
||
SimpleDiffIK::Parameters | params = SimpleDiffIK::Parameters() |
||
) |
std::vector< Eigen::Matrix3f > getAllKeypointOrientations | ( | ) |
Definition at line 251 of file GraspTrajectory.cpp.
std::vector<Eigen::Matrix3f> getAllKeypointOrientations | ( | ) | const |
std::vector< Eigen::Matrix4f > getAllKeypointPoses | ( | ) |
std::vector<Eigen::Matrix4f> getAllKeypointPoses | ( | ) | const |
std::vector< Eigen::Vector3f > getAllKeypointPositions | ( | ) |
Definition at line 241 of file GraspTrajectory.cpp.
std::vector<Eigen::Vector3f> getAllKeypointPositions | ( | ) | const |
const std::vector< GraspTrajectory::KeypointPtr > & getAllKeypoints | ( | ) | const |
Definition at line 289 of file GraspTrajectory.cpp.
GraspTrajectoryPtr getClone | ( | ) |
GraspTrajectoryPtr getClone | ( | ) | const |
float getDuration | ( | ) | const |
float getDuration | ( | ) | const |
const std::optional< std::string > & getFrame | ( | ) | const |
Definition at line 777 of file GraspTrajectory.cpp.
int GetHandJointCount | ( | ) | const |
Eigen::VectorXf GetHandJointsDerivative | ( | float | t | ) |
Eigen::Vector3f GetHandJointsDerivative | ( | float | t | ) | const |
Eigen::VectorXf GetHandValues | ( | float | t | ) |
armarx::NameValueMap GetHandValues | ( | float | t | ) | const |
Definition at line 392 of file GraspTrajectory.cpp.
GraspTrajectory::KeypointPtr & getKeypoint | ( | int | i | ) |
const GraspTrajectory::KeypointPtr & getKeypoint | ( | int | i | ) | const |
Definition at line 378 of file GraspTrajectory.cpp.
size_t getKeypointCount | ( | ) | const |
size_t getKeypointCount | ( | ) | const |
Eigen::Matrix3f GetOrientation | ( | float | t | ) |
Definition at line 211 of file GraspTrajectory.cpp.
Eigen::Matrix3f GetOrientation | ( | float | t | ) | const |
Eigen::Vector3f GetOrientationDerivative | ( | float | t | ) |
Definition at line 278 of file GraspTrajectory.cpp.
Eigen::Vector3f GetOrientationDerivative | ( | float | t | ) | const |
Eigen::Matrix4f GetPose | ( | float | t | ) |
Eigen::Matrix4f GetPose | ( | float | t | ) | const |
Eigen::Vector3f GetPosition | ( | float | t | ) |
Definition at line 203 of file GraspTrajectory.cpp.
Eigen::Vector3f GetPosition | ( | float | t | ) | const |
Eigen::Vector3f GetPositionDerivative | ( | float | t | ) |
Definition at line 270 of file GraspTrajectory.cpp.
Eigen::Vector3f GetPositionDerivative | ( | float | t | ) | const |
std::optional< std::string > GetShape | ( | float | t | ) | const |
Eigen::Matrix4f getStartPose | ( | ) |
Definition at line 174 of file GraspTrajectory.cpp.
Eigen::Matrix4f getStartPose | ( | ) | const |
Eigen::Vector6f GetTcpDerivative | ( | float | t | ) |
Eigen::Matrix< float, 6, 1 > GetTcpDerivative | ( | float | t | ) | const |
GraspTrajectoryPtr getTransformed | ( | const Eigen::Matrix4f & | transform | ) |
Definition at line 343 of file GraspTrajectory.cpp.
GraspTrajectoryPtr getTransformed | ( | const Eigen::Matrix4f & | transform | ) | const |
GraspTrajectoryPtr getTransformedToGraspPose | ( | const Eigen::Matrix4f & | target, |
const Eigen::Vector3f & | handForward = Eigen::Vector3f::UnitZ() |
||
) |
GraspTrajectoryPtr getTransformedToGraspPose | ( | const Eigen::Matrix4f & | target, |
const Eigen::Vector3f & | handForward = Eigen::Vector3f::UnitZ() |
||
) | const |
GraspTrajectoryPtr getTransformedToOtherHand | ( | ) | const |
GraspTrajectoryPtr getTranslatedAndRotated | ( | const Eigen::Vector3f & | translation, |
const Eigen::Matrix3f & | rotation | ||
) |
GraspTrajectoryPtr getTranslatedAndRotated | ( | const Eigen::Vector3f & | translation, |
const Eigen::Matrix3f & | rotation | ||
) | const |
void insertKeypoint | ( | size_t | index, |
const Eigen::Matrix4f & | tcpTarget, | ||
const armarx::NameValueMap & | handJointsTarget, | ||
float | dt, | ||
const std::optional< std::string > & | shape = std::nullopt |
||
) |
void insertKeypoint | ( | size_t | index, |
const Eigen::Matrix4f & | tcpTarget, | ||
const Eigen::VectorXf & | handJointsTarget, | ||
float | dt | ||
) |
const GraspTrajectory::KeypointPtr & lastKeypoint | ( | ) |
const KeypointPtr& lastKeypoint | ( | ) | const |
|
static |
|
static |
|
static |
|
static |
|
static |
Definition at line 401 of file GraspTrajectory.cpp.
|
static |
|
static |
|
static |
void removeKeypoint | ( | size_t | index | ) |
void removeKeypoint | ( | size_t | index | ) |
void replaceKeypoint | ( | size_t | index, |
const Eigen::Matrix4f & | tcpTarget, | ||
const armarx::NameValueMap & | handJointsTarget, | ||
float | dt, | ||
const std::optional< std::string > & | shape = std::nullopt |
||
) |
void replaceKeypoint | ( | size_t | index, |
const Eigen::Matrix4f & | tcpTarget, | ||
const Eigen::VectorXf & | handJointsTarget, | ||
float | dt | ||
) |
void setFrame | ( | const std::string & | frame | ) |
Definition at line 771 of file GraspTrajectory.cpp.
void setKeypointDt | ( | size_t | index, |
float | dt | ||
) |
void setKeypointDt | ( | size_t | index, |
float | dt | ||
) |
void writeToFile | ( | const std::string & | filename | ) |
void writeToFile | ( | const std::string & | filename | ) |