Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -805,12 +805,12 @@ bool IKFastKinematicsPlugin::getPositionFK(const std::vector<std::string>& link_
return false;
}

IkReal angles[num_joints_];
std::vector<IkReal> angles(num_joints_, 0);
for (unsigned char i = 0; i < num_joints_; i++)
angles[i] = joint_angles[i];

// IKFast56/61
ComputeFk(angles, eetrans, eerot);
ComputeFk(angles.data(), eetrans, eerot);

for (int i = 0; i < 3; ++i)
p_out.p.data[i] = eetrans[i];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@
using namespace ikfast;

// check if the included ikfast version matches what this file was compiled with
#define IKFAST_COMPILE_ASSERT(x) extern int __dummy[static_cast<int>(x)]
IKFAST_COMPILE_ASSERT(IKFAST_VERSION==0x1000004a);
static_assert(IKFAST_VERSION==61); // version found in ikfast.h

#include <cmath>
#include <vector>
Expand Down