chrono::vehicle::FlatTerrain Class Reference

Description

Concrete class for a flat horizontal terrain.

This class implements a terrain modeled as an infinite horizontal plane at a specified height. This type of terrain can be used in conjunction with tire models that perform their own collision detection (e.g. ChPacejkaTire and ChLugreTire).

#include <FlatTerrain.h>

Inheritance diagram for chrono::vehicle::FlatTerrain:
Collaboration diagram for chrono::vehicle::FlatTerrain:

Public Member Functions

 FlatTerrain (double height)
 
virtual double GetHeight (double x, double y) const
 Get the terrain height at the specified (x,y) location. More...
 
virtual ChVector GetNormal (double x, double y) const
 Get the terrain normal at the specified (x,y) location. More...
 
- Public Member Functions inherited from chrono::vehicle::ChTerrain
virtual void Synchronize (double time)
 Update the state of the terrain system at the specified time.
 
virtual void Advance (double step)
 Advance the state of the terrain system by the specified duration.
 

Constructor & Destructor Documentation

chrono::vehicle::FlatTerrain::FlatTerrain ( double  height)
Parameters
[in]heightterrain height

Member Function Documentation

virtual double chrono::vehicle::FlatTerrain::GetHeight ( double  x,
double  y 
) const
virtual

Get the terrain height at the specified (x,y) location.

Returns the constant value passed at construction.

Implements chrono::vehicle::ChTerrain.

virtual ChVector chrono::vehicle::FlatTerrain::GetNormal ( double  x,
double  y 
) const
virtual

Get the terrain normal at the specified (x,y) location.

Returns a constant unit vector along the Z axis.

Implements chrono::vehicle::ChTerrain.