ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

IKFast plugin generation with ROS2 foxy

asked 2022-08-04 08:28:37 -0600

timRO gravatar image

Hello,

I try to compute inverse kinematics of a 4DOF robot base on this tutorial https://ros-planning.github.io/moveit....

For testing i use urdf from panda example with ros2 foxy : ros2 run moveit_kinematics auto_create_ikfast_moveit_plugin.sh --iktype Transform6D panda.urdf panda_arm panda_link0 panda_link5

The problem is «could not import scipy.optimize.leastsq ».

I try to modify moveit_kinematics auto_create_ikfast_moveit_plugin.sh function build_docker_image by adding :

RUN pip install git+https://github.com/agramfort/temp... && \ pip install git+https://github.com/scipy/scipy.gi...

I get this errors :

warning: unable to rmdir doc/source/_static/scipy-mathjax: Directory not empty
warning: unable to rmdir scipy/_lib/boost: Directory not empty
warning: unable to rmdir scipy/_lib/highs: Directory not empty
warning: unable to rmdir scipy/_lib/unuran: Directory not empty
warning: unable to rmdir scipy/sparse/linalg/_propack/PROPACK: Directory not empty

I look lick one version of scipy was into the personalrobotics/ros-openrave docker image but without leastsq.

I am … lost Thanks in advance for your help!

ros2 run moveit_kinematics auto_create_ikfast_moveit_plugin.sh --iktype Transform6D panda.urdf panda_arm panda_link0 panda_link5

Converting urdf to Collada
Building docker image
Sending build context to Docker daemon   2.56kB
Step 1/3 : FROM personalrobotics/ros-openrave

 ---> 3470beb7a703
Step 2/3 : RUN apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654 &&     apt-key del 421C365BD9FF1F717815A3895523BAEEB01FA116 &&     apt-get update &&     apt-get install -y --no-install-recommends python-pip build-essential liblapack-dev ros-indigo-collada-urdf &&     apt-get clean && rm -rf /var/lib/apt/lists/*
 ---> Using cache
 ---> 1884b0dfb679
Step 3/3 : RUN pip install git+https://github.com/sympy/sympy.git@sympy-0.7.1
 ---> Using cache
 ---> cb8ac83b0c13
Successfully built cb8ac83b0c13
Successfully tagged fixed-openrave:latest
Successfully built docker image.
Converting urdf to Collada
[rospack] Error: package 'moveit_resources_panda_description' not found
[librospack]: error while executing command
[rospack] Error: package 'moveit_resources_panda_description' not found
[librospack]: error while executing command
[rospack] Error: package 'moveit_resources_panda_description' not found
[librospack]: error while executing command
[rospack] Error: package 'moveit_resources_panda_description' not found
[librospack]: error while executing command
[rospack] Error: package 'moveit_resources_panda_description' not found
[librospack]: error while executing command
[rospack] Error: package 'moveit_resources_panda_description' not found
[librospack]: error while executing command
[rospack] Error: package 'moveit_resources_panda_description' not found
[librospack]: error while executing command
[rospack] Error: package 'moveit_resources_panda_description' not found
[librospack]: error while executing command
[ WARN] [1659601691.246610702]: failed to load resource package://moveit_resources_panda_description/meshes/visual/link0.dae
[ WARN] [1659601691.257806092]: failed to load resource package://moveit_resources_panda_description/meshes/visual/link1.dae
[ WARN] [1659601691.268645086]: failed to load resource package://moveit_resources_panda_description/meshes/visual/link2.dae
[ WARN] [1659601691.279888288]: failed to load resource package://moveit_resources_panda_description/meshes/visual/link3.dae
[ WARN] [1659601691.291748322]: failed to load resource package://moveit_resources_panda_description/meshes/visual/link4.dae
[ WARN] [1659601691.302024951]: failed to load resource package://moveit_resources_panda_description/meshes/visual/link5.dae
[ WARN] [1659601691.313834727]: failed to load resource package://moveit_resources_panda_description/meshes/visual/link6.dae
[ WARN] [1659601691.329535692]: failed to load resource package://moveit_resources_panda_description/meshes/visual/link7.dae

Document successfully written to robot.dae
Running openrave0.9.py --database inversekinematics --robot=/input/wrapper.xml --iktype=Transform6D --iktests=1000
could not import scipy.optimize.leastsq
2022-08-04 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
0

answered 2022-08-05 07:30:22 -0600

timRO gravatar image

After a lot for time to find, missing package required by auto_create_ikfast... and create_ikfast… scripts it's working.

IKFast was not able to generated Transform6D from panda_link0 to panda_link5 it’ seem working with panda_link0 to panda_link8.

ros2 run moveit_kinematics auto_create_ikfast_moveit_plugin.sh --iktype Transform6D panda.urdf panda_arm panda_link0 panda_link8

After first step “auto_create_ikfast…” working, I need to build manually ikfast_plugin into ros2 shell with “colcon build -–packages-select panda_panda_arm_ikfast_plugin”.

Other problems come from missing python packages “pathlib” resolve with “pip install pathlib” into ros2 shell ( not into docker, the second step “create_ikfast…” not use docker).

Last problem under Ubuntu 20.x pip point on python3.8 “pip –-version” and not on python2.7.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2022-08-04 08:28:37 -0600

Seen: 570 times

Last updated: Aug 05 '22