전체 글258 2_docker_GUI_in_wsl2(window docker) ROS를 wsl2내에서 docker container로 빌드 한 후,컨테이너 내부를 x11을 이용해 GUI 환경 구성하기 가장 기본 구조 추후에 2_ 3_ 4_ 쪽으로 가면 dockerfile 구성 및 ros 버전업, ros네이게이션 연동 까지 할 예정 조건 윈도우 : 11 wsl2 ( window 내에 설치,디폴트 ) // Windows 10 버전 2004 이상 버전 필요함 리눅스 : Ubuntu ( wsl2에서 설치 microoffice store) docker : docker desktop ( window 내에 설치 ) // wsl2 버전 필요함 wsl2랑 연동 되는거라 x11 버전 : VcXsrv ( window 내에 설치, 옵션 변경해줌) ROS : kinetic ( wsl2에서 docker p.. 2022. 7. 11. x11 원리 개념 정리(display server, x server, x client) 참고 https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=sunchan683&logNo=221463558428 X Window 개념 및 Xming 사용법 지난 포스팅 중에 리눅스 런레벨에 대한 포스팅이 있었습니다. https://blog.naver.com/sunchan683/2214588... blog.naver.com https://en.wikipedia.org/wiki/Windowing_system#Display_server Windowing system - Wikipedia From Wikipedia, the free encyclopedia Jump to navigation Jump to search Software that ma.. 2022. 7. 11. 7_docker 명령어 정리 (전체적으로) 상황 조건 네트워크 gateway : 172.39.0.1 네트워크 subnet : 172.39.0.0/21 네트워크 이름 : edge_network_hall 사용할 네트워크 driver : bridge """ 1. 도커 네트워크 만들고 (사용할 driver 정함) docker network create --gateway 172.39.0.1 --subnet 172.39.0.0/21 --driver bridge edge_network_hall """ 어쨌든 container를 동작 시키려면 image 파일이 있어야한다. image 파일을 만드는 방법은 두가지이다. 1. dockerhub에서 다운 받는다 ex) " docker pull 이미지:이미지버전 " 2. dockerfile 로 이미지구성을 정의한 다음.. 2022. 7. 8. 삼항연산자 예제 모음 참고 https://wikidocs.net/20701 04. 삼항 연산자(Ternary operators) ### 1. 삼항 연산자(Ternary operators) > **참인경우 값 if 조건 else 거짓인경우 값** * 연산 대상의 개수에 따라 연산자를 분리하면 단 ... wikidocs.net print("True는 참" if True else "True는 거짓") print("짝수" if num % 2 == 0 else "홀수") last_day = (29 if year % 400 == 0 or year % 4 == 0 and year % 100 else 28) \ if (month == 2) else (30 if month % 2 else 31) \ if (month >= 8) else (3.. 2022. 7. 6. ros2_msg 토픽 example(executor사용==멀티쓰레드) 멀티스레드 사용해서 ROS2 SUBSCRIBE 예제 # =========================================================================================== # !/usr/bin/python # -*- coding: utf-8 -*- import rclpy from rclpy.executors import Executor # noqa: F401 from rclpy.qos import QoSProfile import threading import time from std_msgs.msg import String class Ros2SubNodeAgent: """ 멀티 쓰레드 에 멀티 노드 구조 멀티쓰레딩 subscribe 내용을 참조 사이트 ht.. 2022. 7. 5. ros2_QoSProfile 관련설명 ros2에서 qos 개념 https://docs.ros.org/en/humble/Concepts/About-Quality-of-Service-Settings.html About Quality of Service settings — ROS 2 Documentation: Humble documentation Overview ROS 2 offers a rich variety of Quality of Service (QoS) policies that allow you to tune communication between nodes. With the right set of Quality of Service policies, ROS 2 can be as reliable as TCP or as best-effort .. 2022. 7. 5. 이전 1 ··· 19 20 21 22 23 24 25 ··· 43 다음