Skip to content
Snippets Groups Projects
Commit b854b399 authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

[CrossStateOptimization] Fix uninitialized variables.

parent bb59d160
No related branches found
No related tags found
No related merge requests found
...@@ -322,9 +322,9 @@ namespace hpp { ...@@ -322,9 +322,9 @@ namespace hpp {
(OptimizationData& d, size_type index) const (OptimizationData& d, size_type index) const
{ {
const ImplicitPtr_t c (constraints_ [index]); const ImplicitPtr_t c (constraints_ [index]);
LiegroupElement rhsInit; LiegroupElement rhsInit(c->function().outputSpace());
c->rightHandSideFromConfig (d.q1, rhsInit); c->rightHandSideFromConfig (d.q1, rhsInit);
LiegroupElement rhsGoal; LiegroupElement rhsGoal(c->function().outputSpace());
c->rightHandSideFromConfig (d.q2, rhsGoal); c->rightHandSideFromConfig (d.q2, rhsGoal);
// Check that right hand sides are close to each other // Check that right hand sides are close to each other
value_type eps (problem_->constraintGraph ()->errorThreshold ()); value_type eps (problem_->constraintGraph ()->errorThreshold ());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment