Commit b17b8a30 authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Fix compilation warning

parent 831237b3
......@@ -103,11 +103,11 @@ namespace hpp {
// Retrieve velocity limits
const DevicePtr_t& robot = problem().robot();
size_type d = robot->numberDof() - robot->extraConfigSpace().dimension();
vector_t ub ( robot->model().velocityLimit),
lb (-robot->model().velocityLimit),
cb ((ub + lb) / 2);
assert (cb.size() == d);
assert (cb.size() + robot->extraConfigSpace().dimension()
== robot->numberDof());
// The velocity must be in [lb, ub]
ub = cb + safety * (ub - cb);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment