chrono::synchrono::SynGPSTools Class Reference
Description
Holds a SynTerrain along with the GPS coordinate mapped to the origin of the vector 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< ChBezierCurve > | CurveFromGPS (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< ChBezierCurve > | CurveFromGPS (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. | |
| ChVector3d | 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()
| ChVector3d 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
-
gps the point to convert height optional 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