Public Member Functions | Private Attributes | List of all members
towr::Block Class Reference

Sample terrain with a step in height in x-direction. More...

#include <height_map_examples.h>

Inheritance diagram for towr::Block:
Inheritance graph
[legend]

Public Member Functions

double GetHeight (double x, double y) const override
 
double GetHeightDerivWrtX (double x, double y) const override
 
- Public Member Functions inherited from towr::HeightMap
double GetDerivativeOfHeightWrt (Dim2D dim, double x, double y) const
 How the height value changes at a 2D position in direction dim. More...
 
Vector3d GetDerivativeOfNormalizedBasisWrt (Direction direction, Dim2D dim, double x, double y) const
 How the terrain normal/tangent vectors change when moving in x or y. More...
 
double GetFrictionCoeff () const
 
Vector3d GetNormalizedBasis (Direction direction, double x, double y) const
 Returns either the vector normal or tangent to the terrain patch. More...
 
 HeightMap ()=default
 
virtual ~HeightMap ()=default
 

Private Attributes

double block_start = 0.7
 
double eps_ = 0.03
 
double height_ = 0.5
 
double length_ = 3.5
 
const double slope_ = height_/eps_
 

Additional Inherited Members

- Public Types inherited from towr::HeightMap
enum  Direction { Normal, Tangent1, Tangent2 }
 
using Ptr = std::shared_ptr< HeightMap >
 
enum  TerrainID {
  FlatID, BlockID, StairsID, GapID,
  SlopeID, ChimneyID, ChimneyLRID, TERRAIN_COUNT
}
 Terrains IDs corresponding for factory method. More...
 
using Vector3d = Eigen::Vector3d
 
- Static Public Member Functions inherited from towr::HeightMap
static HeightMap::Ptr MakeTerrain (TerrainID type)
 
- Protected Attributes inherited from towr::HeightMap
double friction_coeff_ = 0.5
 

Detailed Description

Sample terrain with a step in height in x-direction.

Definition at line 57 of file height_map_examples.h.

Member Function Documentation

double towr::Block::GetHeight ( double  x,
double  y 
) const
overridevirtual
Returns
The height of the terrain [m] at a specific 2D position.
Parameters
xThe x position.
yThe y position.

Implements towr::HeightMap.

Definition at line 41 of file height_map_examples.cc.

double towr::Block::GetHeightDerivWrtX ( double  x,
double  y 
) const
overridevirtual

Reimplemented from towr::HeightMap.

Definition at line 56 of file height_map_examples.cc.

Member Data Documentation

double towr::Block::block_start = 0.7
private

Definition at line 63 of file height_map_examples.h.

double towr::Block::eps_ = 0.03
private

Definition at line 67 of file height_map_examples.h.

double towr::Block::height_ = 0.5
private

Definition at line 65 of file height_map_examples.h.

double towr::Block::length_ = 3.5
private

Definition at line 64 of file height_map_examples.h.

const double towr::Block::slope_ = height_/eps_
private

Definition at line 68 of file height_map_examples.h.


The documentation for this class was generated from the following files:


towr
Author(s): Alexander W. Winkler
autogenerated on Fri Apr 2 2021 02:14:16