Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to load Mesh Files into Moveit Scene #1

Open
acbuynak opened this issue Nov 10, 2020 · 3 comments
Open

Unable to load Mesh Files into Moveit Scene #1

acbuynak opened this issue Nov 10, 2020 · 3 comments

Comments

@acbuynak
Copy link
Member

Having issues loading mesh files into the Moveit Scene Planner.
Files formats accepted include: STL and DAE. Both attempted.

Code:
self.scene.add_mesh(self.glider_name, glider_pose, filename="$(find paper-glider)/meshes/glider-model.stl", size=(1,1,1))

Traceback:

Traceback (most recent call last):
  File "/home/a/_DEV/ws_paperGlider/src/paper-glider/scripts/paper-glider.py", line 488, in <module>
    main()
  File "/home/a/_DEV/ws_paperGlider/src/paper-glider/scripts/paper-glider.py", line 464, in main
    robot.add_glider()
  File "/home/a/_DEV/ws_paperGlider/src/paper-glider/scripts/paper-glider.py", line 406, in add_glider
    self.scene.add_mesh(self.glider_name, glider_pose, filename="$(find paper-glider)/meshes/glider-model.stl", size=(1,1,1))
  File "/opt/ros/melodic/lib/python2.7/dist-packages/moveit_commander/planning_scene_interface.py", line 98, in add_mesh
    co = self.__make_mesh(name, pose, filename, size)
  File "/opt/ros/melodic/lib/python2.7/dist-packages/moveit_commander/planning_scene_interface.py", line 244, in __make_mesh
    scene = pyassimp.load(filename)
  File "/usr/lib/python2.7/dist-packages/pyassimp/core.py", line 318, in load
    raise AssimpError('Could not import file!')
pyassimp.errors.AssimpError: Could not import file!
@acbuynak
Copy link
Member Author

Using MoveIt Planning Plugin.. Able to Scene objects using "Scene Objects" Tab > Add/Remove Scene Objects > "From Mesh File"

image

@ADIMADE
Copy link

ADIMADE commented Oct 6, 2021

I am facing the same issue:( Have you found a solution allready?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants