Skip to content

Commit af07b12

Browse files
committed
Remove unnecessary callback for travmap because no expansion happens anymore
1 parent 3bc1a97 commit af07b12

File tree

2 files changed

+1
-16
lines changed

2 files changed

+1
-16
lines changed

src/Planner.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,6 @@ void Planner::enablePathStatistics(bool enable){
3838
}
3939
}
4040

41-
void Planner::setTravMapCallback(const std::function< void ()>& callback)
42-
{
43-
travMapCallback = callback;
44-
}
45-
4641
bool Planner::calculateGoal(Eigen::Vector3d& goal_translation, const double yaw) noexcept
4742
{
4843
if (tryGoal(goal_translation, yaw)){
@@ -148,8 +143,6 @@ Planner::PLANNING_RESULT Planner::plan(const base::Time& maxTime, const base::sa
148143
startbody2Mls.setTransform(startGround2Mls);
149144
endbody2Mls.setTransform(endGround2Mls);
150145

151-
if(travMapCallback)
152-
travMapCallback();
153146
try
154147
{
155148
env->setStart(startGround2Mls.translation(), base::getYaw(Eigen::Quaterniond(startGround2Mls.linear())));

src/Planner.hpp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ class Planner
2626
traversability_generator3d::TraversabilityConfig traversabilityConfig;
2727
PlannerConfig plannerConfig;
2828
std::vector<int> solutionIds;
29-
30-
std::function<void ()> travMapCallback;
31-
29+
3230
/**are buffered and reused for a more robust map generation */
3331
std::vector<Eigen::Vector3d> previousStartPositions;
3432

@@ -63,12 +61,6 @@ class Planner
6361

6462
void enablePathStatistics(bool enable);
6563

66-
/**
67-
* This callback is executed, whenever a new traverability map
68-
* was expanded
69-
* */
70-
void setTravMapCallback(const std::function<void ()> &callback);
71-
7264
std::vector<Motion> getMotions() const;
7365

7466
/** Plan a path from @p start to @p end.

0 commit comments

Comments
 (0)