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

How to save image #241

Open
HiroIshida opened this issue May 10, 2022 · 1 comment
Open

How to save image #241

HiroIshida opened this issue May 10, 2022 · 1 comment

Comments

@HiroIshida
Copy link
Contributor

HiroIshida commented May 10, 2022

I tried to save image by the following way, but I this causes segmentation fault at glGetIntegerv inside
BufferManager.__init__.

cc. @708yamaguchi

Do you have any idea to save image?

import skrobot
import time
import numpy as np

robot = skrobot.models.PR2()
viewer = skrobot.viewers.TrimeshSceneViewer(resolution=(640, 480))
viewer.add(robot)
viewer.show()
time.sleep(3.0)

png_byte = viewer.save_image("hoge.png")

The output is

/usr/lib/python3/dist-packages/requests/__init__.py:89: RequestsDependencyWarning: urllib3 (1.26.9) or chardet (3.0.4) doesn't match a supported version!
  warnings.warn("urllib3 ({}) or chardet ({}) doesn't match a supported "
/home/h-ishida/.local/lib/python3.8/site-packages/skrobot/model/robot_model.py:1691: UserWarning: texture specified in URDF is not supported
  warnings.warn(
Segmentation fault (core dumped)

for your information the output of pip3 freeze is
freeze.txt

@iory
Copy link
Owner

iory commented May 10, 2022

Thank you for your reports.
Please try #243

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