DART
6.10.1
|
#include <Geom.hpp>
Public Member Functions | |
Geom ()=default | |
Default constructor. More... | |
Attributes | |
const std::string & | getName () const |
GeomType | getType () const |
int | getConType () const |
int | getConAffinity () const |
int | getConDim () const |
int | getGroup () const |
int | getPriority () const |
const Eigen::Vector3d & | getSize () const |
Eigen::Vector2d | getPlaneHalfSize () const |
double | getSphereRadius () const |
double | getCapsuleRadius () const |
double | getCapsuleHalfLength () const |
double | getCapsuleLength () const |
const Eigen::Vector3d & | getEllipsoidRadii () const |
Eigen::Vector3d | getEllipsoidDiameters () const |
double | getCylinderRadius () const |
double | getCylinderHalfLength () const |
double | getCylinderLength () const |
const Eigen::Vector3d & | getBoxHalfSize () const |
Eigen::Vector3d | getBoxSize () const |
const Eigen::Vector4d & | getRGBA () const |
const Eigen::Vector3d & | getFriction () const |
double | getMass () const |
double | getDensity () const |
double | getVolume () const |
const Eigen::Matrix3d & | getInertia () const |
double | getSolMix () const |
double | getMargine () const |
double | getGap () const |
void | setRelativeTransform (const Eigen::Isometry3d &tf) |
const Eigen::Isometry3d & | getRelativeTransform () const |
void | setWorldTransform (const Eigen::Isometry3d &tf) |
const Eigen::Isometry3d & | getWorldTransform () const |
const std::string & | getHField () const |
const std::string & | getMesh () const |
Private Member Functions | |
Errors | read (tinyxml2::XMLElement *element, const Defaults &defaults, const GeomAttributes &defaultAttributes) |
Errors | preprocess (const Compiler &compiler) |
Updates attributes and elements that doesn't require any other elements. More... | |
Errors | compile (const Compiler &compiler) |
Updates attributes and elements that require the preprocessed child elements of this <geom>. More... | |
Errors | postprocess (const Body *body, const Compiler &compiler) |
Updates attributes and elements that require the compiled parent element. More... | |
double | computeVolume () const |
Eigen::Matrix3d | computeInertia () const |
Private Attributes | |
GeomAttributes | mAttributes |
std::string | mName {""} |
Name of the geom. More... | |
GeomType | mType {GeomType::SPHERE} |
Type of geometric shape. More... | |
int | mConType {1} |
int | mConAffinity {1} |
int | mConDim {3} |
int | mGroup {0} |
int | mPriority {0} |
Eigen::Vector3d | mSize {Eigen::Vector3d::Zero()} |
Geom size parameters. More... | |
Eigen::Vector4d | mRGBA {Eigen::Vector4d(0.5, 0.5, 0.5, 1)} |
Eigen::Vector3d | mFriction {Eigen::Vector3d(1, 0.005, 0.0001)} |
double | mMass |
double | mDensity {1000} |
Material density used to compute the geom mass and inertia. More... | |
double | mVolume {0} |
Eigen::Matrix3d | mInertia {Eigen::Matrix3d::Identity()} |
double | mSolMix {1} |
Weight used for averaging of contact parameters, and interacts with the priority attribute. More... | |
double | mMargin {0} |
Distance threshold below which contacts are detected and included in the global array mjData.contact. More... | |
double | mGap {0} |
This attribute is used to enable the generation of inactive contacts, i.e. More... | |
Eigen::Isometry3d | mRelativeTransform {Eigen::Isometry3d::Identity()} |
Eigen::Isometry3d | mWorldTransform {Eigen::Isometry3d::Identity()} |
std::string | mHField |
std::string | mMesh |
double | mFitScale {1} |
Friends | |
class | Body |
class | Worldbody |
|
default |
Default constructor.
Updates attributes and elements that require the preprocessed child elements of this <geom>.
|
private |
|
private |
const Eigen::Vector3d & dart::utils::MjcfParser::detail::Geom::getBoxHalfSize | ( | ) | const |
Eigen::Vector3d dart::utils::MjcfParser::detail::Geom::getBoxSize | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getCapsuleHalfLength | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getCapsuleLength | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getCapsuleRadius | ( | ) | const |
int dart::utils::MjcfParser::detail::Geom::getConAffinity | ( | ) | const |
int dart::utils::MjcfParser::detail::Geom::getConDim | ( | ) | const |
int dart::utils::MjcfParser::detail::Geom::getConType | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getCylinderHalfLength | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getCylinderLength | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getCylinderRadius | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getDensity | ( | ) | const |
Eigen::Vector3d dart::utils::MjcfParser::detail::Geom::getEllipsoidDiameters | ( | ) | const |
const Eigen::Vector3d & dart::utils::MjcfParser::detail::Geom::getEllipsoidRadii | ( | ) | const |
const Eigen::Vector3d & dart::utils::MjcfParser::detail::Geom::getFriction | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getGap | ( | ) | const |
int dart::utils::MjcfParser::detail::Geom::getGroup | ( | ) | const |
const std::string & dart::utils::MjcfParser::detail::Geom::getHField | ( | ) | const |
const Eigen::Matrix3d & dart::utils::MjcfParser::detail::Geom::getInertia | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getMargine | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getMass | ( | ) | const |
const std::string & dart::utils::MjcfParser::detail::Geom::getMesh | ( | ) | const |
const std::string & dart::utils::MjcfParser::detail::Geom::getName | ( | ) | const |
Eigen::Vector2d dart::utils::MjcfParser::detail::Geom::getPlaneHalfSize | ( | ) | const |
int dart::utils::MjcfParser::detail::Geom::getPriority | ( | ) | const |
const Eigen::Isometry3d & dart::utils::MjcfParser::detail::Geom::getRelativeTransform | ( | ) | const |
const Eigen::Vector4d & dart::utils::MjcfParser::detail::Geom::getRGBA | ( | ) | const |
const Eigen::Vector3d & dart::utils::MjcfParser::detail::Geom::getSize | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getSolMix | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getSphereRadius | ( | ) | const |
GeomType dart::utils::MjcfParser::detail::Geom::getType | ( | ) | const |
double dart::utils::MjcfParser::detail::Geom::getVolume | ( | ) | const |
const Eigen::Isometry3d & dart::utils::MjcfParser::detail::Geom::getWorldTransform | ( | ) | const |
|
private |
Updates attributes and elements that require the compiled parent element.
Updates attributes and elements that doesn't require any other elements.
|
private |
void dart::utils::MjcfParser::detail::Geom::setRelativeTransform | ( | const Eigen::Isometry3d & | tf | ) |
void dart::utils::MjcfParser::detail::Geom::setWorldTransform | ( | const Eigen::Isometry3d & | tf | ) |
|
friend |
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |
Material density used to compute the geom mass and inertia.
|
private |
|
private |
|
private |
This attribute is used to enable the generation of inactive contacts, i.e.
contacts that are ignored by the constraint solver but are included in mjData.contact for the purpose of custom computations.
|
private |
|
private |
|
private |
|
private |
Distance threshold below which contacts are detected and included in the global array mjData.contact.
|
private |
|
private |
|
private |
Name of the geom.
|
private |
|
private |
|
private |
|
private |
Geom size parameters.
|
private |
Weight used for averaging of contact parameters, and interacts with the priority attribute.
|
private |
Type of geometric shape.
|
private |
|
private |