Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Fix node velocity term
Browse files Browse the repository at this point in the history
  • Loading branch information
Nico van Duijn committed Jul 23, 2019
1 parent 1844f31 commit 9bf7d5f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions local_planner/src/nodes/star_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ void StarPlanner::buildLookAheadTree() {
for (candidateDirection candidate : candidate_vector) {
PolarPoint candidate_polar = candidate.toPolar(tree_node_distance_);
Eigen::Vector3f node_location = polarHistogramToCartesian(candidate_polar, origin_position);
Eigen::Vector3f node_velocity =
tree_[tree_[origin].origin_].getVelocity() + (node_location - origin_position); // todo: simulate!
Eigen::Vector3f node_velocity = node_location - origin_position; // todo: simulate!

// check if another close node has been added
int close_nodes = 0;
Expand Down

0 comments on commit 9bf7d5f

Please sign in to comment.