Go to the documentation of this file.
27 #include <RobotAPI/interface/units/GraspCandidateProviderInterface.h>
30 #include <VirtualRobot/Robot.h>
65 Eigen::Vector3f approachVector;
66 Eigen::Vector3f inwardsVector;
73 s.graspPose =
defrost(candidate->graspPoseLeft);
74 s.approachVector =
defrost(candidate->approachVectorLeft);
75 s.inwardsVector =
defrost(candidate->inwardsVectorLeft);
82 s.graspPose =
defrost(candidate->graspPoseRight);
83 s.approachVector =
defrost(candidate->approachVectorRight);
84 s.inwardsVector =
defrost(candidate->inwardsVectorRight);
93 Eigen::Vector3f
defrost(
const Vector3BasePtr& base)
const
95 return Vector3Ptr::dynamicCast(base)->toEigen();
99 return PosePtr::dynamicCast(base)->toEigen();
103 grasping::BimanualGraspCandidatePtr candidate;
BimanualGraspCandidateHelper(const grasping::BimanualGraspCandidatePtr &candidate, VirtualRobot::RobotPtr robot)
const grasping::BimanualGraspCandidatePtr getGraspCandidate() const
Eigen::Vector3f getGraspPositionInGlobal() const
Eigen::Matrix4f getPrePoseInRobotRoot(float approachDistance) const
Eigen::Matrix3f getGraspOrientationInGlobal() const
Eigen::Vector3f getApproachVector() const
Eigen::Vector3f defrost(const Vector3BasePtr &base) const
Eigen::Matrix3f getGraspOrientationInRobotRoot() const
Eigen::Matrix4f getGraspPoseInRobotRoot() const
Eigen::Matrix4f defrost(const PoseBasePtr &base) const
MatrixXX< 3, 3, float > Matrix3f
MatrixXX< 4, 4, float > Matrix4f
BimanualGraspCandidateHelper & operator=(const BimanualGraspCandidateHelper &)=default
Eigen::Vector3f getGraspPositionInRobotRoot() const
std::shared_ptr< class BimanualGraspCandidateHelper > BimanualGraspCandidateHelperPtr
Eigen::Matrix4f getGraspPoseInGlobal() const
double s(double t, double s0, double v0, double a0, double j)
This file offers overloads of toIce() and fromIce() functions for STL container types.
std::shared_ptr< class Robot > RobotPtr