Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

[All Distros] Default PyAssimp version 4.1.4 causes silent crash when loading STL through MoveIt's PlanningSceneInterface #441

Open
anion0278 opened this issue Feb 13, 2023 · 4 comments
Labels
bug Something isn't working MoveIt Bugs or PRs which affect MoveIt ROS1 ROS1 Related Issue ROS2 ROS2 related issues

Comments

@anion0278
Copy link

Describe the bug
PyAssimp version 4.1.4 causes a silent crash when loading STL through MoveIt's PlanningSceneInterface (Python).
The issue can be fixed by installing pyAssimp==4.1.3. The issue is present in both Melodic and Noetic and seems to be rather old (moveit/moveit#86 (comment), https://answers.ros.org/question/316515/cannot-add-mesh-files-to-moveit/) and related to pyAssimp itself rather than ROS (assimp/assimp#2343) .
A potential solution is to change the installed version in patch.bat

To Reproduce
Please see the attached MRE: example.zip
Steps:

roslaunch panda_moveit_config demo.launch
rosrun panda_moveit_config src/attached_obj_collision.py

attached_obj_collision.py silently fails after printing MoveIt commander ok, objects are not added into the scene, trajectory is not planned.

Expected behavior
Running attached_obj_collision.py (violet object in the attached image) should load work_object.stl into the planning scene and execute the trajectory around two green boxes.
image

Environment information:

  • OS version: Win11 22H2 22621.1105
  • Chocolatey Versions:
Chocolatey v1.2.0
chocolatey-compatibility.extension 1.0.0
chocolatey-core.extension 1.4.0
chocolatey-windowsupdate.extension 1.0.5
KB2919355 1.0.20160915
KB2919442 1.0.20160915
KB2999226 1.0.20181019
KB3033929 1.0.5
KB3035131 1.0.3
ros-melodic-moveit 20201221.0.0.2104300002
vcredist140 14.34.31931
vcredist2010 10.0.40219.32503
11 packages installed.
@ooeygui ooeygui added bug Something isn't working ROS1 ROS1 Related Issue MoveIt Bugs or PRs which affect MoveIt ROS2 ROS2 related issues labels Mar 9, 2023
@ooeygui
Copy link
Member

ooeygui commented Mar 9, 2023

Thanks for the report. Given the upstream issue, I'm tagging on all distros to validate.

@ooeygui ooeygui changed the title [Melodic, Noetic] Default PyAssimp version 4.1.4 causes silent crash when loading STL through MoveIt's PlanningSceneInterface [All Distros] Default PyAssimp version 4.1.4 causes silent crash when loading STL through MoveIt's PlanningSceneInterface Mar 10, 2023
@songyuc
Copy link

songyuc commented Jul 25, 2023

Hi! Is ROS2-Iron supported on Win11?

@ooeygui
Copy link
Member

ooeygui commented Jul 25, 2023

@songyuc Open Robotics provides Windows binaries for Iron. You can install them from here - https://docs.ros.org/en/iron/Installation/Windows-Install-Binary.html.

@songyuc
Copy link

songyuc commented Jul 25, 2023

Hi @ooeygui. The doc said they only support Win10.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working MoveIt Bugs or PRs which affect MoveIt ROS1 ROS1 Related Issue ROS2 ROS2 related issues
Projects
None yet
Development

No branches or pull requests

3 participants