Skip to content
Snippets Groups Projects
Commit 1772ab2d authored by SecondHandsIntegrationAccount's avatar SecondHandsIntegrationAccount
Browse files

fixed getRobotStateComponent getter

parent b9f0dd0b
No related branches found
No related tags found
No related merge requests found
......@@ -139,6 +139,7 @@ namespace armarx
void RobotStateComponent::onConnectComponent()
{
_sharedRobotServant->setRobotStateComponent(RobotStateComponentInterfacePrx::uncheckedCast(getProxy()));
this->_synchronizedPrx = SharedRobotInterfacePrx::uncheckedCast(getObjectAdapter()->addWithUUID(_sharedRobotServant));
ARMARX_INFO << "Started RobotStateComponent" << flush;
if (robotStateObs)
......@@ -262,7 +263,7 @@ namespace armarx
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 +348,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