Skip to content

Commit

Permalink
time parameterization: use constants (moveit#380)
Browse files Browse the repository at this point in the history
These were defined above but not used?!
  • Loading branch information
v4hn authored and davetcoleman committed Jan 2, 2017
1 parent 6829981 commit b903b02
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ void IterativeParabolicTimeParameterization::applyVelocityConstraints(robot_traj

for (std::size_t j = 0; j < vars.size(); ++j)
{
double v_max = 1.0;
double v_max = DEFAULT_VEL_MAX;
const robot_model::VariableBounds &b = rmodel.getVariableBounds(vars[j]);
if (b.velocity_bounded_)
v_max =
Expand Down Expand Up @@ -355,7 +355,7 @@ void IterativeParabolicTimeParameterization::applyAccelerationConstraints(
next_waypoint = rob_trajectory.getWayPointPtr(index + 1);

// Get acceleration limits
double a_max = 1.0;
double a_max = DEFAULT_ACCEL_MAX;
const robot_model::VariableBounds &b = rmodel.getVariableBounds(vars[j]);
if (b.acceleration_bounded_)
a_max = std::min(fabs(b.max_acceleration_ * acceleration_scaling_factor),
Expand Down

0 comments on commit b903b02

Please sign in to comment.