Skip to content

Commit

Permalink
PRBT IkFast patch from robostack (#2395)
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerjw authored Sep 29, 2023
1 parent 0236685 commit bd45079
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
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

0 comments on commit bd45079

Please sign in to comment.