iDynTree::SolidShape class

Derived classes

class Box
Box, i.e.
class Cylinder
class ExternalMesh
class Sphere

Constructors, destructors, conversion operators

SolidShape() explicit
~SolidShape() pure virtual

Public functions

auto clone() const -> SolidShape* pure virtual
auto getName() const -> const std::string&
Returns the name of the shape.
void setName(const std::string& name)
Sets the specified name.
auto isNameValid() const -> bool
Returns if the name is valid.
auto getLink_H_geometry() const -> const Transform&
Returns the homogeneus transformation of the geometry w.r.t.
void setLink_H_geometry(const Transform& newTransform)
Sets the homogeneus transformation of the geometry w.r.t.
auto isMaterialSet() const -> bool
Returns if the material is valid, i.e.
auto getMaterial() const -> const Material&
Returns the current material.
void setMaterial(const Material& material)
Sets the material.
auto isSphere() const -> bool
auto isBox() const -> bool
auto isCylinder() const -> bool
auto isExternalMesh() const -> bool
auto asSphere() -> Sphere*
auto asBox() -> Box*
auto asCylinder() -> Cylinder*
auto asExternalMesh() -> ExternalMesh*
auto asSphere() const -> const Sphere*
auto asBox() const -> const Box*
auto asCylinder() const -> const Cylinder*
auto asExternalMesh() const -> const ExternalMesh*

Function documentation

const Transform& iDynTree::SolidShape::getLink_H_geometry() const

Returns the homogeneus transformation of the geometry w.r.t.

the attached link.

void iDynTree::SolidShape::setLink_H_geometry(const Transform& newTransform)

Sets the homogeneus transformation of the geometry w.r.t.

the attached link.

bool iDynTree::SolidShape::isMaterialSet() const

Returns if the material is valid, i.e.

you can call getMaterial().

void iDynTree::SolidShape::setMaterial(const Material& material)

Sets the material.

isMaterialSet will return true after this call.