Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PRBT IkFast patch from robostack (backport #2395) #2397

Merged
merged 1 commit into from
Sep 29, 2023
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 @@ -804,12 +804,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
Loading