Skip to content

Commit

Permalink
Merge pull request moveit#620 from iirob/pr-create_ikfast_moveit_plug…
Browse files Browse the repository at this point in the history
…in-fix

create_ikfast_moveit_plugin: fixed directory variable for templates that were moved to ikfast_kinematics_plugin
  • Loading branch information
gavanderhoorn authored Oct 18, 2017
2 parents 6d75391 + 88e2378 commit 487a0b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion moveit_kinematics/ikfast_kinematics_plugin/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ install(
DIRECTORY
templates
DESTINATION
${CATKIN_PACKAGE_SHARE_DESTINATION}
${CATKIN_PACKAGE_SHARE_DESTINATION}/ikfast_kinematics_plugin
)
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
import shutil

plugin_gen_pkg = 'moveit_kinematics' # package containing this file
plugin_sub_dir = 'ikfast_kinematics_plugin' # sub directory which contains the template directory
# Allowed search modes, see SEARCH_MODE enum in template file
search_modes = ['OPTIMIZE_MAX_JOINT', 'OPTIMIZE_FREE_JOINT' ]

Expand Down Expand Up @@ -181,7 +182,7 @@

# Get template folder location
try:
plugin_gen_dir = roslib.packages.get_pkg_dir(plugin_gen_pkg)
plugin_gen_dir = os.path.join(roslib.packages.get_pkg_dir(plugin_gen_pkg), plugin_sub_dir)
except:
print '\nERROR: can\'t find package '+plugin_gen_pkg+' \n'
sys.exit(-1)
Expand Down

0 comments on commit 487a0b5

Please sign in to comment.