Skip to content
Snippets Groups Projects
Commit eb39a2c1 authored by Mirko Wächter's avatar Mirko Wächter
Browse files

long -> double

parent cd57dc52
No related branches found
No related tags found
No related merge requests found
......@@ -257,12 +257,12 @@ namespace armarx
auto prevIt = std::prev(it);
if (prevIt != history.end())
{
long deltaT = it->first - prevIt->first;
double deltaT = it->first - prevIt->first;
double influenceNext = 1.0f - (double)(it->first - time) / deltaT;
double influencePrev = 1.0f - (double)(time - prevIt->first) / deltaT;
// ARMARX_INFO_S << "Interpolating: " << time << " prev: " << time - prevIt->first << " next: " << it->first - time << VAROUT(influenceNext) << VAROUT(influencePrev) << " sum: " << (influenceNext + influencePrev);
auto jointIt = prevIt->second.jointMap.begin();
for (auto& joint : config.jointMap)
for (auto & joint : config.jointMap)
{
joint.second = joint.second * influenceNext + jointIt->second * influencePrev;
jointIt++;
......@@ -347,7 +347,7 @@ namespace armarx
auto packages = armarx::Application::GetProjectDependencies();
packages.push_back(Application::GetProjectName());
for (const std::string& projectName : packages)
for (const std::string & projectName : packages)
{
if (projectName.empty())
{
......
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