/******************************************************************************
ROS pid_plus_gravity_controller Package
PID+Gravity Compensation Controller
- Copyright (C) 2017 Walter Fetter Lages <w.fetter@ieee.org>
+ Copyright (C) 2017,2018 Walter Fetter Lages <w.fetter@ieee.org>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
std::vector<hardware_interface::JointHandle> joints_;
ros::Subscriber sub_command_;
-
+
+ KDL::Tree tree;
+ KDL::Chain chain;
KDL::ChainDynParam *chainParam_;
KDL::JntArray q_;
return false;
}
- KDL::Tree tree;
if (!kdl_parser::treeFromString(robot_desc_string,tree))
{
ROS_ERROR("Failed to construct KDL tree.");
return false;
}
- KDL::Chain chain;
if (!tree.getChain(chainRoot,chainTip,chain))
{
ROS_ERROR("Failed to get chain from KDL tree.");