selfdriving
render_vehicle.h
Go to the documentation of this file.
1 /* -------------------------------------------------------------------------
2  * SelfDriving C++ library based on PTGs and mrpt-nav
3  * Copyright (C) 2019-2022 Jose Luis Blanco, University of Almeria
4  * See LICENSE for license information.
5  * ------------------------------------------------------------------------- */
6 
7 #pragma once
8 
10 #include <mrpt/opengl/opengl_frwds.h>
11 
12 #include <memory>
13 
14 namespace mpp
15 {
17 {
18  RenderVehicleParams() = default;
19 
20  int NUM_VERTICES = 14; //!< for circular robot shapes.
21 };
22 
24 {
25  RenderVehicleExtraResults() = default;
26 
27  double maxVehicleShapeRadius = 0;
28 };
29 
30 /** Generates a polygon for the vehicle shape */
31 auto render_vehicle(
32  const RobotShape& rs, mrpt::opengl::CSetOfLines& outPolygon,
34 
35 } // namespace mpp
Definition: bestTrajectory.h:15
auto render_vehicle(const RobotShape &rs, mrpt::opengl::CSetOfLines &outPolygon, const RenderVehicleParams &rvp={}) -> RenderVehicleExtraResults
Definition: render_vehicle.h:23
Definition: render_vehicle.h:16
int NUM_VERTICES
for circular robot shapes.
Definition: render_vehicle.h:20
std::variant< mrpt::math::TPolygon2D, robot_radius_t, std::monostate > RobotShape
Definition: TrajectoriesAndRobotShape.h:23