chrono::vehicle::ChMapData Class Reference

Description

Utility class for reading and setting an (x,y) map.

#include <ChUtilsJSON.h>

Public Member Functions

 ChMapData ()
 Construct a ChMapData with an empty map.
 
void Read (const rapidjson::Value &a)
 Read data from the specified JSON object.
 
void Set (ChFunctionInterp &map, double x_factor=1, double y_factor=1) const
 Set the map data to the specified recorder function. More...
 
void Set (std::vector< std::pair< double, double >> &vec, double x_factor=1, double y_factor=1) const
 Set the map data to the specified vector of pairs. More...
 

Member Function Documentation

◆ Set() [1/2]

void chrono::vehicle::ChMapData::Set ( ChFunctionInterp map,
double  x_factor = 1,
double  y_factor = 1 
) const

Set the map data to the specified recorder function.

The map data is scaled by the specified factors.

◆ Set() [2/2]

void chrono::vehicle::ChMapData::Set ( std::vector< std::pair< double, double >> &  vec,
double  x_factor = 1,
double  y_factor = 1 
) const

Set the map data to the specified vector of pairs.

The map data is scaled by the specified factors.


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono_vehicle/utils/ChUtilsJSON.h
  • /builds/uwsbel/chrono/src/chrono_vehicle/utils/ChUtilsJSON.cpp