This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker run -p 6080:80 --shm-size=512m tiryoh/ros2-desktop-vnc:foxy | |
| # Go to http://localhost:6080 and open a terminal | |
| # Menu > System Tools > MATE Terminal | |
| sudo apt update | |
| mkdir -p ~/ros2_ws/src | |
| cd ~/ros2_ws/src |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import gi | |
| gi.require_version('Gst', '1.0') | |
| from gi.repository import GObject, Gst | |
| from threading import Thread, Event | |
| Gst.init(None) | |
| class Main: | |
| def __init__(self): | |
| self.pipeline = Gst.Pipeline.new("pipeline") |