chrono::synchrono::SynGPSTools Class Reference

Description

Holds a SynTerrain along with the GPS coordinate mapped to the origin of the ChVector space.

#include <SynGPSTools.h>

Public Member Functions

 SynGPSTools (const GPScoord &origin, std::shared_ptr< vehicle::ChTerrain > terrain)
 Construct a SynGPSTools object with the specified origin and attached terrain.
 
 ~SynGPSTools ()
 Destructor.
 
std::shared_ptr< ChBezierCurveCurveFromGPS (std::vector< GPScoord > &gps_points, double vert_offset=0, bool closed=0)
 Optionally pass in a vertical offset for the points and whether the path should be a closed curve.
 
std::shared_ptr< ChBezierCurveCurveFromGPS (const std::string &filename, double vert_offset=0, bool closed=0)
 Generate a ChBezierCurve from gps waypoints specified through a file Optionally pass in a vertical offset for the points and whether the path should be a closed curve.
 
ChVector To3DCartesian (const GPScoord &gps, double height=0.5) const
 Convert GPS coordinate to 3D cartesian point with an optionally specified height. More...
 

Member Function Documentation

◆ To3DCartesian()

ChVector chrono::synchrono::SynGPSTools::To3DCartesian ( const GPScoord gps,
double  height = 0.5 
) const

Convert GPS coordinate to 3D cartesian point with an optionally specified height.

Parameters
gpsthe point to convert
heightoptional z/altitude-offset, defaults to 0.5

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