From a1d8cb6a8e2fbb3fbf0b7f1637bef385dbc542e2 Mon Sep 17 00:00:00 2001 From: Chen Bainian Date: Thu, 11 Nov 2021 12:25:40 +0800 Subject: [PATCH] Fix motion planner freespace example opw_kinematics include build error (#131) * Fix example opw_kinematics include build error Signed-off-by: Chen Bainian * Update working_frame and tcp_frame for all motion planner examples Signed-off-by: Chen Bainian --- tesseract_motion_planners/examples/chain_example.cpp | 2 ++ tesseract_motion_planners/examples/freespace_example.cpp | 3 +-- tesseract_motion_planners/examples/raster_example.cpp | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tesseract_motion_planners/examples/chain_example.cpp b/tesseract_motion_planners/examples/chain_example.cpp index fedd886192c..f99bcda8b91 100644 --- a/tesseract_motion_planners/examples/chain_example.cpp +++ b/tesseract_motion_planners/examples/chain_example.cpp @@ -102,6 +102,8 @@ int main(int /*argc*/, char** /*argv*/) } ManipulatorInfo manip; + manip.tcp_frame = "tool0"; + manip.working_frame = "base_link"; manip.manipulator = "manipulator"; manip.manipulator_ik_solver = "OPWInvKin"; diff --git a/tesseract_motion_planners/examples/freespace_example.cpp b/tesseract_motion_planners/examples/freespace_example.cpp index 0279d8aa7a4..0c6f49847fd 100644 --- a/tesseract_motion_planners/examples/freespace_example.cpp +++ b/tesseract_motion_planners/examples/freespace_example.cpp @@ -26,12 +26,10 @@ #include TESSERACT_COMMON_IGNORE_WARNINGS_PUSH #include -#include TESSERACT_COMMON_IGNORE_WARNINGS_POP #include -#include #include #include @@ -102,6 +100,7 @@ int main(int /*argc*/, char** /*argv*/) ManipulatorInfo manip; manip.tcp_frame = "tool0"; + manip.working_frame = "base_link"; manip.manipulator = "manipulator"; manip.manipulator_ik_solver = "OPWInvKin"; diff --git a/tesseract_motion_planners/examples/raster_example.cpp b/tesseract_motion_planners/examples/raster_example.cpp index f2439c1dfb5..42a6b79ca0f 100644 --- a/tesseract_motion_planners/examples/raster_example.cpp +++ b/tesseract_motion_planners/examples/raster_example.cpp @@ -103,6 +103,7 @@ int main(int /*argc*/, char** /*argv*/) ManipulatorInfo manip; manip.tcp_frame = "tool0"; + manip.working_frame = "base_link"; manip.manipulator = "manipulator"; manip.manipulator_ik_solver = "OPWInvKin";