Template Class HeightField
Defined in File hfield.h
Inheritance Relationships
Base Type
public hpp::fcl::CollisionGeometry
(Class CollisionGeometry)
Derived Type
public boost::serialization::internal::HeightFieldAccessor< BV >
(Template Struct HeightFieldAccessor)
Class Documentation
-
template<typename BV>
class HeightField : public hpp::fcl::CollisionGeometry Data structure depicting a height field given by the base grid dimensions and the elevation along the grid.
An height field is defined by its base dimensions along the X and Y axes and a set ofpoints defined by their altitude, regularly dispatched on the grid. The height field is centered at the origin and the corners of the geometry correspond to the following coordinates [± x_dim/2; ± y_dim/2].
- Template Parameters:
BV – one of the bounding volume class in Bounding volumes.
Subclassed by boost::serialization::internal::HeightFieldAccessor< BV >
Public Types
-
typedef CollisionGeometry Base
Public Functions
-
inline HeightField()
Constructing an empty HeightField.
-
inline HeightField(const FCL_REAL x_dim, const FCL_REAL y_dim, const MatrixXf &heights, const FCL_REAL min_height = (FCL_REAL)0)
Constructing an HeightField from its base dimensions and the set of heights points. The granularity of the height field along X and Y direction is extraded from the Z grid.
- Parameters:
x_dim – [in] Dimension along the X axis
y_dim – [in] Dimension along the Y axis
heights – [in] Matrix containing the altitude of each point compositng the height field
min_height – [in] Minimal height of the height field
-
inline HeightField(const HeightField &other)
Copy contructor from another HeightField.
- Parameters:
other – [in] to copy.
-
inline virtual HeightField<BV> *clone() const
Clone *this into a new CollisionGeometry.
-
inline virtual ~HeightField()
deconstruction, delete mesh data related.
-
inline virtual void computeLocalAABB()
Compute the AABB for the HeightField, used for broad-phase collision.
-
virtual NODE_TYPE getNodeType() const
Specialization of getNodeType() for HeightField with different BV types.
-
virtual NODE_TYPE getNodeType() const
get the node type
-
virtual NODE_TYPE getNodeType() const
get the node type
-
virtual NODE_TYPE getNodeType() const
get the node type
-
virtual NODE_TYPE getNodeType() const
get the node type
-
virtual NODE_TYPE getNodeType() const
get the node type
-
virtual NODE_TYPE getNodeType() const
get the node type
-
virtual NODE_TYPE getNodeType() const
get the node type
Protected Functions
-
inline void init(const FCL_REAL x_dim, const FCL_REAL y_dim, const MatrixXf &heights, const FCL_REAL min_height)
-
inline virtual OBJECT_TYPE getObjectType() const
Get the object type: it is a HFIELD.
-
inline virtual Matrix3f computeMomentofInertia() const
compute the inertia matrix, related to the origin
-
inline int buildTree()
Build the bounding volume hierarchy.