scikit-robot
scikit-robot copied to clipboard
How to save image
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
Thank you for your reports. Please try #243