30 #ifndef TOWR_TOWR_ROS_INCLUDE_TOWR_ROS_HEIGHT_MAP_EXAMPLES_H_    31 #define TOWR_TOWR_ROS_INCLUDE_TOWR_ROS_HEIGHT_MAP_EXAMPLES_H_    59   double GetHeight(
double x, 
double y)  
const override;
    63   double block_start = 0.7;
    68   const double slope_ = height_/eps_;
    76   double GetHeight(
double x, 
double y) 
const override;
    79   double first_step_start_  = 1.0;
    80   double first_step_width_  = 0.4;
    81   double height_first_step  = 0.2;
    82   double height_second_step = 0.4;
    83   double width_top = 1.0;
    91   double GetHeight(
double x, 
double y) 
const override;
    96   const double gap_start_ = 1.0;
   100   const double slope_ = h/w;
   101   const double dx = w/2.0;
   102   const double xc = gap_start_ + dx; 
   103   const double gap_end_x = gap_start_ + w;
   109   const double a = (4*h)/(w*w);
   110   const double b = -(8*h*xc)/(w*w);
   111   const double c = -(h*(w - 2*xc)*(w + 2*xc))/(w*w);
   119   double GetHeight(
double x, 
double y) 
const override;
   123   const double slope_start_ = 1.0;
   124   const double up_length_   = 1.0;
   125   const double down_length_ = 1.0;
   126   const double height_center = 0.7;
   128   const double x_down_start_ = slope_start_+up_length_;
   129   const double x_flat_start_ = x_down_start_ + down_length_;
   130   const double slope_ = height_center/up_length_;
   138   double GetHeight(
double x, 
double y) 
const override;
   142   const double x_start_ = 1.0;
   143   const double length_  = 1.5;
   144   const double y_start_ = 0.5; 
   145   const double slope_   = 3.0;
   147   const double x_end_ = x_start_+length_;
   155   double GetHeight(
double x, 
double y) 
const override;
   159   const double x_start_ = 0.5;
   160   const double length_  = 1.0;
   161   const double y_start_ = 0.5; 
   162   const double slope_   = 2;
   164   const double x_end1_ = x_start_+length_;
   165   const double x_end2_ = x_start_+2*length_;
 
Holds the height and slope information of the terrain. 
FlatGround(double height=0.0)
Sample terrain of even height. 
Sample terrain with an increasing and then decreasing slope in x-direction. 
Sample terrain with a tilted vertical wall to cross a gap. 
virtual double GetHeightDerivWrtY(double x, double y) const
Sample terrain with two tilted vertical walls to cross a gap. 
double GetHeight(double x, double y) const override
virtual double GetHeightDerivWrtXX(double x, double y) const
virtual double GetHeightDerivWrtX(double x, double y) const
Sample terrain with a two-steps in height in x-direction. 
Sample terrain with a step in height in x-direction. 
Sample terrain with parabola-modeled gap in x-direction.