일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
- ros2 튜토리얼 환경설정
- ros2 foxy tutorial
- Foxy tutorial
- first-time robot setup guide
- ROS FOXY 튜토리얼
- nav2 first-time robot setup guide
- ros2 remapping
- humble development guides
- nav2 getting started
- CODEUP 6073
- Nav2 document
- nav2 설치
- nav2 tutorial
- nav2 development guides
- docker foxy
- ros2 foxy docker
- 코드업
- foxy nav2
- error
- humble 환경설정
- nav2 튜토리얼
- ros2 환경설정
- development guides
- ros2 development guides
- nav2 development guides
- CodeUp
- Python
- nav2 dev contatiner
- ros2 튜토리얼
- ros2 configuring environment
- Today
- Total
목록Language (20)
BAN2ARU
하위 폴더(패턴 O) 내 특정 확장자 파일 불러오기 glob을 활용하면 하위 폴더 내에 있는 특정 확장자 파일을 쉽게 불러올 수 있다. 만약, 다음과 같이 폴더가 구성되어 있다고 가정하면, [dataset folder name = 'test'폴더로 가정] |-Case1 |-1.txt |-2.txt ... |-100.txt |-Case2 |-1.txt |-2.txt ... |-100.txt |-Case3 |-1.txt |-2.txt ... |-100.txt 우리는 ./test 내의 하위 폴더 내의 .txt 파일을 불러오고 싶으면 다음과 같이 작성하면 된다. import glob file_list = glob.glob('./Test/**/*.txt') 이런 경우에는 Test의 하위 폴더의 '.txt'로 되어..
torch.is_tensor(obj ) obj가 PyTorch tensor라면 True를 return함 이 함수는 isinstance(obj, Tensor)을 수행하며, mypy를 통해 typechecking시에는 isinstance를 활용하는 편이 더 좋음 Parameters obj (Object) - test할 객체(object) Example >>> import torch >>> a = torch.tensor([1, 3, 5]) >>> torch.is_tensor(a) True >>> b = [1, 3, 5] >>> torch.is_tensor(b) False Reference https://pytorch.org/docs/stable/torch.html torch — PyTorch 1.11.0 do..
Vars([object])란? python의 기본 내장함수로서 모듈, 클래스, 클래스 인스턴스 객체(__dict__속성을 가지는 객체)에 대해 __dict__ (dictionary 형태)로 return해 주는 함수임. 만약 [object]를 선언하지 않으면 locals()처럼 동작되어 현재 지역 변수에 대해 __dict__(dictionary 형태)로 return함. Vars 함수 예제 class SellList: snack = 1000 ice_cream = 700 coke = 1200 candy = 1500 print(vars(SellList)) # 출력 화면 {'__module__': '__main__', 'snack': 1000, 'ice_cream': 700, 'coke': 1200, 'candy..
https://pytorch.org/get-started/previous-versions/ PyTorch An open source machine learning framework that accelerates the path from research prototyping to production deployment. pytorch.org 여기에서는 pytorch 1.7.0의 cuda 11.0 ver에 관해서 pip install torch==1.7.0+cu110 torchvision==0.8.0+cu110 torchaudio==0.7.0 -f https://download.pytorch.org/whl/torch_stable.html 로 되어있지만 이 문구를 실행하면 ERROR: No matching d..
cython-bbox를 단순히 pip install 명령어로 사용하면 윈도우에서 오류가 발생하는 것으로 보인다. 이를 해결하기 위해 github 파일을 받는 방식으로 활용하였음. git clone https://github.com/samson-wang/cython_bbox cd cython_bbox pip install -e ./
conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch 로 anaconda로 설치시 conda install pytorch==1.8.0 torchvision==0.9.0 torchaudio==0.8.0 cudatoolkit=11.1 -c pytorch PackagesNotFoundError: The following packages are not available from current channels: - cudatoolkit=11.1 Current channels: - https://conda.anaconda.org/pytorch/win-64 - https://conda.anaconda.o..
python에서 문자열 포맷팅은 문자열 중간에 원하는 값(특정 변수)를 삽이하기 위하여 사용합니다. 만약에 학생 A(=70점), B(=55점), C(=85점)으로 시험평균점수가 70점일 때, 이를 print("학생들의 평균 점수는 70점입니다.")로 출력하는 프로그램이 있다고 가정해봅시다. 이를 70이라는 값 대신에 "avg = (A+B+C)/3"라는 변수로 넣는 방법에 대한 것입니다. 다음과 같이 변수로 지정해준다면 학생들의 시험 값(A,B,C)이 변하더라도 print에 직접 값을 수정할 필요없이 해당 부분이 avg 변수 값에 반영되어 출력이 될 것입니다! 그럼 각 방법에 대해 설명드리도록 하겠습니다. [각 방법은 % 연산자, str.fomat, f-string 순으로 작성되어 있으며, f-string..
print()는 출력하기위한 함수로, 우리가 흔히 쓰고 보았던 Hello worlds를 출력하기 위해 print("Hello worlds")에서 사용되는 함수입니다. print()의 옵션에서는 sep와 end 옵션을 활용하여 출력시에 보다 원하는 모양으로 나오도록 출력할 수 있습니다. 또한 file 옵션을 통해 print함수를 출력할 것인지 아니면 파일로 저장할 것인지도 선택할 수 있습니다. print의 default옵션은 sep = ' ' (공백), end = '\n' (띄어쓰기), file = sys.stdout (콘솔 출력) 입니다. 각 옵션에 대해 예제와 함께 살펴보도록 하겠습니다. sep # 일반적으로 아무 옵션을 주지 않으면 공백으로 출력됨 >>> print('Apple', 'Banna') A..