diff --git a/trac_ik_examples/src/ik_tests.cpp b/trac_ik_examples/src/ik_tests.cpp index 8aebbea..ef369cd 100644 --- a/trac_ik_examples/src/ik_tests.cpp +++ b/trac_ik_examples/src/ik_tests.cpp @@ -27,16 +27,16 @@ // POSSIBILITY OF SUCH DAMAGE. -#include -#include -#include - #include #include #include #include #include +#include "kdl/chainiksolverpos_nr_jl.hpp" +#include "rclcpp/rclcpp.hpp" +#include "trac_ik/trac_ik.hpp" + void test( const rclcpp::Node::SharedPtr node, double num_samples, std::string chain_start, std::string chain_end, double timeout, std::string urdf_xml) diff --git a/trac_ik_lib/include/trac_ik/kdl_tl.hpp b/trac_ik_lib/include/trac_ik/kdl_tl.hpp index c52f7ef..421dffb 100644 --- a/trac_ik_lib/include/trac_ik/kdl_tl.hpp +++ b/trac_ik_lib/include/trac_ik/kdl_tl.hpp @@ -30,12 +30,12 @@ #ifndef TRAC_IK__KDL_TL_HPP_ #define TRAC_IK__KDL_TL_HPP_ -#include -#include - #include #include +#include "kdl/chainfksolverpos_recursive.hpp" +#include "kdl/chainiksolvervel_pinv.hpp" + namespace TRAC_IK { class TRAC_IK; diff --git a/trac_ik_lib/include/trac_ik/nlopt_ik.hpp b/trac_ik_lib/include/trac_ik/nlopt_ik.hpp index 1e4844b..c090aaf 100644 --- a/trac_ik_lib/include/trac_ik/nlopt_ik.hpp +++ b/trac_ik_lib/include/trac_ik/nlopt_ik.hpp @@ -30,13 +30,12 @@ #ifndef TRAC_IK__NLOPT_IK_HPP_ #define TRAC_IK__NLOPT_IK_HPP_ -#include - -#include - #include #include +#include "nlopt.hpp" +#include "trac_ik/kdl_tl.hpp" + namespace NLOPT_IK { diff --git a/trac_ik_lib/include/trac_ik/trac_ik.hpp b/trac_ik_lib/include/trac_ik/trac_ik.hpp index f345f1f..0aa1068 100644 --- a/trac_ik_lib/include/trac_ik/trac_ik.hpp +++ b/trac_ik_lib/include/trac_ik/trac_ik.hpp @@ -30,11 +30,6 @@ #ifndef TRAC_IK__TRAC_IK_HPP_ #define TRAC_IK__TRAC_IK_HPP_ -#include -#include - -#include - #include #include #include @@ -43,6 +38,10 @@ #include #include +#include "kdl/chainjnttojacsolver.hpp" +#include "trac_ik/nlopt_ik.hpp" +#include "trac_ik/visibility_control.hpp" + namespace TRAC_IK { diff --git a/trac_ik_lib/src/kdl_tl.cpp b/trac_ik_lib/src/kdl_tl.cpp index 58b4f30..b15292b 100644 --- a/trac_ik_lib/src/kdl_tl.cpp +++ b/trac_ik_lib/src/kdl_tl.cpp @@ -27,7 +27,7 @@ // POSSIBILITY OF SUCH DAMAGE. -#include +#include "trac_ik/kdl_tl.hpp" #include #include diff --git a/trac_ik_lib/src/nlopt_ik.cpp b/trac_ik_lib/src/nlopt_ik.cpp index 4be6d4b..c31b4fb 100644 --- a/trac_ik_lib/src/nlopt_ik.cpp +++ b/trac_ik_lib/src/nlopt_ik.cpp @@ -27,10 +27,7 @@ // POSSIBILITY OF SUCH DAMAGE. -#include -#include - -#include +#include "trac_ik/nlopt_ik.hpp" #include #include @@ -39,6 +36,9 @@ #include #include +#include "rclcpp/rclcpp.hpp" +#include "trac_ik/dual_quaternion.h" + namespace NLOPT_IK { diff --git a/trac_ik_lib/src/trac_ik.cpp b/trac_ik_lib/src/trac_ik.cpp index af982eb..ad9a5f6 100644 --- a/trac_ik_lib/src/trac_ik.cpp +++ b/trac_ik_lib/src/trac_ik.cpp @@ -27,12 +27,7 @@ // POSSIBILITY OF SUCH DAMAGE. -#include - -#include -#include -#include -#include +#include "trac_ik/trac_ik.hpp" #include #include @@ -41,6 +36,11 @@ #include #include +#include "Eigen/Geometry" +#include "kdl_parser/kdl_parser.hpp" +#include "rclcpp/rclcpp.hpp" +#include "urdf/model.h" + namespace TRAC_IK { static const rclcpp::Logger LOGGER = rclcpp::get_logger("trac_ik.ros.trac_ik");