We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1bfe70 commit 7c29502Copy full SHA for 7c29502
example_7/controller/r6bot_controller.cpp
@@ -125,12 +125,12 @@ void interpolate_point(
125
{
126
for (size_t i = 0; i < point_1.positions.size(); i++)
127
128
- point_interp.positions[i] = delta * point_2.positions[i] + (1.0 - delta) * point_2.positions[i];
+ point_interp.positions[i] = delta * point_2.positions[i] + (1.0 - delta) * point_1.positions[i];
129
}
130
131
132
point_interp.velocities[i] =
133
- delta * point_2.velocities[i] + (1.0 - delta) * point_2.velocities[i];
+ delta * point_2.velocities[i] + (1.0 - delta) * point_1.velocities[i];
134
135
136
0 commit comments