@@ -76,7 +76,6 @@ void PlannerGui::setupUI()
76
76
widget->setCameraManipulator (vizkit3d::ORBIT_MANIPULATOR);
77
77
widget->addPlugin (&splineViz);
78
78
widget->addPlugin (&trajViz);
79
- widget->addPlugin (&trajViz2);
80
79
widget->addPlugin (&mlsViz);
81
80
widget->addPlugin (&trav3dViz);
82
81
widget->addPlugin (&obstacleMapViz);
@@ -96,13 +95,9 @@ void PlannerGui::setupUI()
96
95
mlsViz.setPluginName (" MLSMap" );
97
96
98
97
trajViz.setLineWidth (5 );
99
- trajViz.setColor (QColor (" Cyan" ));
100
- trajViz.setPluginEnabled (false );
101
- trajViz.setPluginName (" Trajectory 2D" );
102
-
103
- trajViz2.setLineWidth (5 );
104
- trajViz2.setColor (QColor (" magenta" ));
105
- trajViz2.setPluginName (" Trajectory 3D" );
98
+ trajViz.setColor (QColor (" magenta" ));
99
+ trajViz.setPluginEnabled (true );
100
+ trajViz.setPluginName (" Trajectory" );
106
101
107
102
QVBoxLayout* layout = new QVBoxLayout ();
108
103
@@ -324,7 +319,7 @@ void PlannerGui::setupPlanner(int argc, char** argv)
324
319
mobilityConfig.multiplierPointTurn = 3 ;
325
320
mobilityConfig.maxMotionCurveLength = 100 ;
326
321
mobilityConfig.spline_sampling_resolution = 0.05 ;
327
- mobilityConfig.remove_goal_offset = false ;
322
+ mobilityConfig.remove_goal_offset = true ;
328
323
329
324
travConfig.gridResolution = res;
330
325
travConfig.maxSlope = 0.45 ; // 40.0/180.0 * M_PI;
@@ -611,9 +606,6 @@ void PlannerGui::plannerIsDone()
611
606
{
612
607
trajViz.updateData (path);
613
608
trajViz.setLineWidth (8 );
614
-
615
- trajViz2.updateData (beautifiedPath);
616
- trajViz2.setLineWidth (8 );
617
609
618
610
trav3dViz.updateData ((planner->getTraversabilityMap ().copyCast <maps::grid::TraversabilityNodeBase *>()));
619
611
obstacleMapViz.updateData ((planner->getObstacleMap ().copyCast <maps::grid::TraversabilityNodeBase *>()));
@@ -655,7 +647,7 @@ void PlannerGui::plan(const base::Pose& start, const base::Pose& goal)
655
647
LOG_INFO_S << " Planning: " << start << " -> " << goal;
656
648
657
649
const Planner::PLANNING_RESULT result = planner->plan (base::Time::fromSeconds (time->value ()),
658
- startState, endState, path, beautifiedPath );
650
+ startState, endState, path);
659
651
switch (result)
660
652
{
661
653
case Planner::GOAL_INVALID:
0 commit comments