Surface contact.
More...
#include <Contact.h>
|
EIGEN_MAKE_ALIGNED_OPERATOR_NEW | SurfaceContact (const std::string &name, double fricCoeff, const std::vector< Eigen::Vector3d > &localVertices, const sva::PTransformd &pose, std::optional< sva::ForceVecd > maxWrench=std::nullopt) |
| Constructor. More...
|
|
| SurfaceContact (const mc_rtc::Configuration &mcRtcConfig) |
| Constructor. More...
|
|
virtual std::string | type () const override |
| Get type of contact. More...
|
|
void | updateLocalVertices (const std::vector< Eigen::Vector3d > &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 surface 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< Eigen::Vector3d > > | verticesMap |
| Map of surface vertices in local coordinates. More...
|
|
Surface contact.
Definition at line 168 of file Contact.h.
◆ SurfaceContact() [1/2]
EIGEN_MAKE_ALIGNED_OPERATOR_NEW ForceColl::SurfaceContact::SurfaceContact |
( |
const std::string & |
name, |
|
|
double |
fricCoeff, |
|
|
const std::vector< Eigen::Vector3d > & |
localVertices, |
|
|
const sva::PTransformd & |
pose, |
|
|
std::optional< sva::ForceVecd > |
maxWrench = std::nullopt |
|
) |
| |
Constructor.
- Parameters
-
name | name of contact |
fricCoeff | friction coefficient |
localVertices | surface vertices in local coordinates |
pose | pose of contact |
maxWrench | maximum wrench in local frame (absolute value) that can be accepted by this contact |
◆ SurfaceContact() [2/2]
ForceColl::SurfaceContact::SurfaceContact |
( |
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::SurfaceContact::loadVerticesMap |
( |
const mc_rtc::Configuration & |
mcRtcConfig | ) |
|
|
static |
Load map of surface vertices in local coordinates.
- Parameters
-
mcRtcConfig | mc_rtc configuration |
◆ type()
virtual std::string ForceColl::SurfaceContact::type |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ updateGlobalVertices()
virtual void ForceColl::SurfaceContact::updateGlobalVertices |
( |
const sva::PTransformd & |
pose | ) |
|
|
overridevirtual |
Update graspMat_ and vertexWithRidgeList_ according to the input pose.
Implements ForceColl::Contact.
◆ updateLocalVertices()
void ForceColl::SurfaceContact::updateLocalVertices |
( |
const std::vector< Eigen::Vector3d > & |
localVertices | ) |
|
Update localVertices_ and localGraspMat_ according to the input pose.
◆ localVertices_
std::vector<Eigen::Vector3d> ForceColl::SurfaceContact::localVertices_ |
List of local verticies.
Definition at line 180 of file Contact.h.
◆ verticesMap
std::unordered_map<std::string, std::vector<Eigen::Vector3d> > ForceColl::SurfaceContact::verticesMap |
|
inlinestatic |
Map of surface vertices in local coordinates.
Definition at line 177 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