7 #include <vizkit3d/SubTrajectoryVisualization.hpp>
8 #include <vizkit3d/MLSMapVisualization.hpp>
9 #include <vizkit3d/TraversabilityMap3dVisualization.hpp>
10 #include <vizkit3d/GridVisualization.hpp>
11 #include <vizkit3d/SbplSplineVisualization.hpp>
12 #include <vizkit3d/RigidBodyStateVisualization.hpp>
13 #include <maps/grid/MLSMap.hpp>
14 #include <base/Eigen.hpp>
15 #include <ugv_nav4d/Planner.hpp>
16 #include <traversability_generator3d/TraversabilityConfig.hpp>
17 #include <trajectory_follower/SubTrajectory.hpp>
35 void setupPlanner(
int argc,
char** argv);
45 void picked(
float x,
float y,
float z,
int buttonMask,
int modifierMask);
51 void plan(
const base::Pose& start,
const base::Pose& goal);
58 void maxSlopeEditingFinished();
59 void inclineLimittingLimitSpinBoxEditingFinished();
60 void inclineLimittingMinSlopeSpinBoxEditingFinished();
61 void slopeMetricScaleSpinBoxEditingFinished();
62 void startOrientationChanged(
int newValue);
63 void goalOrientationChanged(
int newValue);
64 void timeEditingFinished();
65 void replanButtonReleased();
67 void slopeMetricComboBoxIndexChanged(
int index);
68 void numThreadsValueChanged(
int newValue);
69 void obstacleDistanceSpinBoxEditingFinished();
70 void obstacleFactorSpinBoxEditingFinished();
74 void loadMls(
const std::string& path);
75 void startPlanThread();
79 std::atomic<bool> inplanningphase{
false};
80 vizkit3d::Vizkit3DWidget* widget;
81 QDoubleSpinBox* maxSlopeSpinBox;
82 QDoubleSpinBox* slopeMetricScaleSpinBox;
84 QDoubleSpinBox* inclineLimittingMinSlopeSpinBox;
85 QDoubleSpinBox* inclineLimittingLimitSpinBox;
86 QSlider* startOrientatationSlider;
87 QSlider* goalOrientationSlider;
88 QDoubleSpinBox* obstacleDistanceSpinBox;
89 QDoubleSpinBox* obstacleFactorSpinBox;
90 QComboBox* slopeMetricComboBox;
91 QComboBox* heuristicComboBox;
92 QSpinBox* numThreadsSpinBox;
95 vizkit3d::SbplSplineVisualization splineViz;
96 vizkit3d::SubTrajectoryVisualization trajViz;
97 vizkit3d::SubTrajectoryVisualization trajViz2;
98 vizkit3d::MLSMapVisualization mlsViz;
99 vizkit3d::TraversabilityMap3dVisualization trav3dViz;
100 vizkit3d::RigidBodyStateVisualization startViz;
101 vizkit3d::RigidBodyStateVisualization goalViz;
102 vizkit3d::GridVisualization gridViz;
103 maps::grid::MLSMapSloped mlsMap;
106 bool pickStart =
true;
107 bool startPicked =
false;
108 bool goalPicked =
false;
109 bool threadRunning =
false;
110 sbpl_spline_primitives::SplinePrimitivesConfig splineConfig;
112 traversability_generator3d::TraversabilityConfig travConfig;
114 std::shared_ptr<ugv_nav4d::Planner> planner;
115 std::vector<trajectory_follower::SubTrajectory> path;
116 std::vector<trajectory_follower::SubTrajectory> beautifiedPath;
Definition: PlannerGui.h:32
void show()
Definition: PlannerGui.cpp:490
PlannerGui(int argc, char **argv)
Definition: PlannerGui.cpp:57
void plannerIsDone()
Definition: PlannerGui.cpp:610
void plan(const base::Pose &start, const base::Pose &goal)
Definition: PlannerGui.cpp:645
void picked(float x, float y, float z, int buttonMask, int modifierMask)
Definition: PlannerGui.cpp:448
Definition: PlannerGui.h:27
Definition: Mobility.hpp:12
Definition: PlannerConfig.hpp:8