Grasp contact.
More...
#include <Contact.h>
|
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | GraspContact (const std::string &name, double fricCoeff, const std::vector< sva::PTransformd > &localVertices, const sva::PTransformd &pose, std::optional< sva::ForceVecd > maxWrench=std::nullopt) |
| Constructor. More...
|
|
| GraspContact (const mc_rtc::Configuration &mcRtcConfig) |
| Constructor. More...
|
|
virtual std::string | type () const override |
| Get type of contact. More...
|
|
void | updateLocalVertices (const std::vector< sva::PTransformd > &localVertices) |
| Update localVertices_ and localGraspMat_ according to the input pose. More...
|
|
virtual void | updateGlobalVertices (const sva::PTransformd &pose) override |
| Update graspMat_ and vertexWithRidgeList_ according to the input pose. More...
|
|
virtual void | addToGUI (mc_rtc::gui::StateBuilder &gui, const std::vector< std::string > &category, double forceScale=constants::defaultForceScale, double fricPyramidScale=constants::defaultFricPyramidScale, const Eigen::VectorXd &wrenchRatio=Eigen::VectorXd::Zero(0)) override |
| Add markers to GUI. More...
|
|
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | Contact (const std::string &name, std::optional< sva::ForceVecd > maxWrench=std::nullopt) |
| Constructor. More...
|
|
int | ridgeNum () const |
| Get the number of ridges. More...
|
|
sva::ForceVecd | calcWrench (const Eigen::VectorXd &wrenchRatio, const Eigen::Vector3d &momentOrigin=Eigen::Vector3d::Zero()) const |
| Calculate wrench. More...
|
|
sva::ForceVecd | calcLocalWrench (const Eigen::VectorXd &wrenchRatio) const |
| Calculate the local wrench. More...
|
|
|
static void | loadVerticesMap (const mc_rtc::Configuration &mcRtcConfig) |
| Load map of grasp vertices in local coordinates. More...
|
|
static std::shared_ptr< Contact > | makeSharedFromConfig (const mc_rtc::Configuration &mcRtcConfig) |
| Make shared pointer from mc_rtc configuration. More...
|
|
|
static std::unordered_map< std::string, std::vector< sva::PTransformd > > | verticesMap |
| Map of grasp vertices in local coordinates. More...
|
|
Grasp contact.
Definition at line 230 of file Contact.h.
◆ GraspContact() [1/2]
EIGEN_MAKE_ALIGNED_OPERATOR_NEW ForceColl::GraspContact::GraspContact |
( |
const std::string & |
name, |
|
|
double |
fricCoeff, |
|
|
const std::vector< sva::PTransformd > & |
localVertices, |
|
|
const sva::PTransformd & |
pose, |
|
|
std::optional< sva::ForceVecd > |
maxWrench = std::nullopt |
|
) |
| |
Constructor.
- Parameters
-
name | name of contact |
fricCoeff | friction coefficient |
localVertices | grasp vertices in local coordinates |
pose | pose of contact |
maxWrench | maximum wrench in local frame (absolute value) that can be accepted by this contact |
◆ GraspContact() [2/2]
ForceColl::GraspContact::GraspContact |
( |
const mc_rtc::Configuration & |
mcRtcConfig | ) |
|
Constructor.
- Parameters
-
mcRtcConfig | mc_rtc configuration |
◆ addToGUI()
Add markers to GUI.
- Parameters
-
gui | GUI |
category | category of GUI entries |
forceScale | scale of force markers (set non-positive for no visualization) |
fricPyramidScale | scale of friction pyramid markers (set non-positive for no visualization) |
wrenchRatio | wrench ratio of each ridge |
Reimplemented from ForceColl::Contact.
◆ loadVerticesMap()
static void ForceColl::GraspContact::loadVerticesMap |
( |
const mc_rtc::Configuration & |
mcRtcConfig | ) |
|
|
static |
Load map of grasp vertices in local coordinates.
- Parameters
-
mcRtcConfig | mc_rtc configuration |
◆ type()
virtual std::string ForceColl::GraspContact::type |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ updateGlobalVertices()
virtual void ForceColl::GraspContact::updateGlobalVertices |
( |
const sva::PTransformd & |
pose | ) |
|
|
overridevirtual |
Update graspMat_ and vertexWithRidgeList_ according to the input pose.
Implements ForceColl::Contact.
◆ updateLocalVertices()
void ForceColl::GraspContact::updateLocalVertices |
( |
const std::vector< sva::PTransformd > & |
localVertices | ) |
|
Update localVertices_ and localGraspMat_ according to the input pose.
◆ localVertices_
std::vector<sva::PTransformd> ForceColl::GraspContact::localVertices_ |
List of local verticies.
Definition at line 242 of file Contact.h.
◆ verticesMap
std::unordered_map<std::string, std::vector<sva::PTransformd> > ForceColl::GraspContact::verticesMap |
|
inlinestatic |
Map of grasp vertices in local coordinates.
Definition at line 239 of file Contact.h.
The documentation for this class was generated from the following file:
- /home/runner/work/ForceControlCollection/ForceControlCollection/catkin_ws/src/ForceControlCollection/include/ForceColl/Contact.h