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

Irtviewerをsave-imageやwrite-to-image-fileでpng形式で保存したいけど、真っ黒のpng画像しか保存されない #643

Open
yudaissei22 opened this issue Jan 23, 2025 · 0 comments

Comments

@yudaissei22
Copy link

yudaissei22 commented Jan 23, 2025

実行環境

ubuntu 18.04 (330のインストールメディアからインストール)
rosはmelodic

実行時のログ

(require "package://hrpsys_ros_bridge_tutorials/euslisp/jaxon_red-interface.l")
(setq robot (jaxon_red))
(make-irtviewer)                                                                                                                                                                                                                                              
(objects (list robot))

背景をグレーに、床を表現。ここをコメントアウトしても、pngは真っ黒になった。

(send *irtviewer* :change-background #f(0.7 0.7 0.7)) 
(send *irtviewer* :draw-floor 100)                                                                                                                                                                                                                    
(send *irtviewer* :floor-color #f(0 0 0))  
(send *irtivewer* :save-image "tmp.png")

で保存したtmp.pngをxdg-open tmp.pngで開いても、真っ黒
xdg-open側のバグの可能性を考えて、google chatで、tmp.pngを送っても、真っ黒。

(send (send *irtviewer* :viewer :viewsurface) :write-to-image-file "tmp.png")

を行っても同様のことが起きた。

Image

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

1 participant