Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
pingplug committed Dec 24, 2018
1 parent 893d5ee commit 44c3553
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/optimal_planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ void TebOptimalPlanner::AddEdgesVelocity()
return; // if weight equals zero skip adding edges!

int n = teb_.sizePoses();
switch (sfg_->robot.omni_type) {
switch (cfg_->robot.omni_type) {
case 0:
{
Eigen::Matrix<double,1,1> information;
Expand Down Expand Up @@ -940,7 +940,7 @@ void TebOptimalPlanner::AddEdgesAcceleration()
}
else // holonomic robot
{
switch (sfg_->robot.omni_type) {
switch (cfg_->robot.omni_type) {
case 0:
{
Eigen::Matrix<double,1,1> information;
Expand Down
2 changes: 1 addition & 1 deletion src/teb_local_planner_ros.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ void TebLocalPlannerROS::saturateVelocityHolonomic(double& vx, double& vy, doubl
l = 0.0;
break;
}
scale = (l < 1.0) ? 1.0 : 1.0 / l;
double scale = (l < 1.0) ? 1.0 : 1.0 / l;
vx *= scale;
vy *= scale;
omega *= scale;
Expand Down

0 comments on commit 44c3553

Please sign in to comment.