반응형

전체 글 310

[Jetson] Nvidia SDK manager를 이용한 JetPack 설치

Jetson을 사용하기 위해서는 Host machine에서 Nvidia SDK manager를 이용해 Jetpack을 설치하여 환경 setting을 합니다. 이번에는 SDK manager로부터 jetson을 사용하기 위한 환경을 만드는 방법을 알아보겠습니다. 설치하는 방법은 아래의 절차를 통해 진행됩니다. Download and install NVIDIA SDK Manager on the Linux host computer. Connect your developer kit to the Linux host computer. Put your developer kit into Force Recovery Mode. Use SDK Manager to select and install desired componen..

SBC & MCU/Jetson 2021.06.01

[Jetson] Jetson 성능 비교 및 Roadmap

이번 시간에는 Jetson 시리즈의 모듈의 구성, 성능을 비교해보고, 앞으로의 로드맵을 알아보겠습니다. 1. Nvidia Jetson Nvidia Jetson은 Nvidia 회사의 임베디드 보드의 시리즈입니다. 특히 이 보드는 인공지능, 특히 Deep Learning의 결과를 Inference할 수 있습니다. 2. Benckmarks Jetson 보드에 대한 모델의 성능은 아래와 같고, GitHub자료를 참고하여 실험해보실 수 있습니다. * Latency more than 15ms. On Jetson Xavier NX and Jetson AGX Xavier, both NVIDIA Deep Learning Accelerator (NVDLA) engines and the GPU were run simulta..

SBC & MCU/Jetson 2021.06.01

[Dashing][Client Libraries] 2. Creating your first ROS 2 package

이 글은 아래의 자료를 참고로 만들어졌습니다. https://docs.ros.org/en/dashing/Tutorials/Creating-Your-First-ROS2-Package.html Creating your first ROS 2 package — ROS 2 Documentation: Dashing documentation Inside dev_ws/src/my_package, you will see the files and folders that ros2 pkg create automatically generated: CMakePython CMakeLists.txt include package.xml src my_node.cpp is inside the src directory. This is wh..

[Dashing][Client Libraries] 1. Creating a workspace

이 글은 아래의 자료를 참고로 만들어졌습니다. https://docs.ros.org/en/dashing/Tutorials/Workspace/Creating-A-Workspace.html Creating a workspace — ROS 2 Documentation: Dashing documentation Goal: Create a workspace and learn how to set up an overlay for development and testing. A workspace is a directory containing ROS 2 packages. Before using ROS 2, it’s necessary to source your ROS 2 installation workspace in the..

[Ubuntu] 우분투 사용자 계정 비밀번호 변경 (passwd)

이번에는 우분투에서 사용자의 비밀번호를 잊어버렸을 경우, 변경하는 방법에 대해 알아보겠습니다. 1. passwd 일단, 사용자의 비밀번호를 변경하기 위해서는 Sudoers의 계정으로 접속할 수 있어야합니다. Sudoers 계정으로 접속하여 아래의 명령을 실행합니다. $ sudo passwd $user_id Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully 만약, 사용자 계정의 아이디를 모른다면, 아래의 명령을 실행하여 확인할 수 있습니다. $ cat /etc/passwd root:x:0:0:root:/root:/bin/bash ...(생략)... user_id01:x:1001:1001::/home..

Development/Linux 2021.05.31

[VScode] git 설치 및 VScode로 연동하기

git 설치 및 VScode로 연동하기 이번에는 git을 설치하고, visual studio code과 연결하는 방법을 알아보겠습니다. 0. 준비 1) GitHub 아이디 만들기 https://github.com/ GitHub - 세계가 소프트웨어를 빌드하는 곳 GitHub is where over 65 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and feat... github.com 2) visual studio code 설치 https://code.v..

Development/VScode 2021.05.28

[Linear Actuator] 1. 구성

이번 시간에는 Lead Screw Linear Actuator에 대해 알아보겠습니다. 1. Lead Screw Lead Screw(리드 스크류)는 기계에서 링크로 사용되는 나사로, 회전 운동을 직선 운동으로 변환하기 위해 사용됩니다. https://en.wikipedia.org/wiki/Leadscrew Leadscrew - Wikipedia Floppy disc drive with leadscrew and stepper motor. A leadscrew (or lead screw), also known as a power screw[1] or translation screw,[2] is a screw used as a linkage in a machine, to translate turning moti..

[Dashing][CLI Tools] 10. Recording and playing back data

이 글은 아래의 자료를 참고로 만들어졌습니다. https://docs.ros.org/en/dashing/Tutorials/Ros2bag/Recording-And-Playing-Back-Data.html Recording and playing back data — ROS 2 Documentation: Dashing documentation You can also record multiple topics, as well as change the name of the file ros2 bag saves to. The -o option allows you to choose a unique name for your bag file. The following string, in this case subset, is..

[백준] 1202번: 보석 도둑 (python)

https://www.acmicpc.net/problem/1202 1202번: 보석 도둑 첫째 줄에 N과 K가 주어진다. (1 ≤ N, K ≤ 300,000) 다음 N개 줄에는 각 보석의 정보 Mi와 Vi가 주어진다. (0 ≤ Mi, Vi ≤ 1,000,000) 다음 K개 줄에는 가방에 담을 수 있는 최대 무게 Ci가 주어진다. (1 ≤ Ci www.acmicpc.net import sys import heapq N, K = map(int, sys.stdin.readline().split()) MV = [list(map(int, sys.stdin.readline().split())) for _ in range(N)] bags = [int(sys.stdin.readline()) for _ in range(..

[백준] 1655번: 가운데를 말해요 (python)

https://www.acmicpc.net/problem/1655 1655번: 가운데를 말해요 첫째 줄에는 수빈이가 외치는 정수의 개수 N이 주어진다. N은 1보다 크거나 같고, 100,000보다 작거나 같은 자연수이다. 그 다음 N줄에 걸쳐서 수빈이가 외치는 정수가 차례대로 주어진다. 정수는 -1 www.acmicpc.net import sys import heapq N = int(sys.stdin.readline()) nums = [int(sys.stdin.readline()) for _ in range(N)] max_heap, min_heap = [], [] for n in nums: if len(min_heap) == len(max_heap): heapq.heappush(max_heap, (-n,..

[백준] 13251번: 조약돌 꺼내기 (python)

https://www.acmicpc.net/problem/13251 13251번: 조약돌 꺼내기 첫째 줄에 뽑은 조약돌이 모두 같은 색일 확률을 출력한다. 정답과의 절대/상대 오차는 10-9까지 허용한다. www.acmicpc.net import sys import math M = int(sys.stdin.readline()) stone = list(map(int,sys.stdin.readline().split())) K = int(sys.stdin.readline()) N = sum(stone) total = math.comb(N, K) same_color = 0 for s in stone: same_color += math.comb(s, K) print(same_color/total)

[Windows 10] 파일탐색기의 OneDrive 바로가기 삭제

파일탐색기에 있는 OneDrive 바로가기 삭제하는 방법을 알아봅시다. 1. regedit 실행 키보드의 Windows Key + 'R' 키를 눌러 실행창에서 'regedit' 명령어를 입력하고 엔터를 누릅니다. 2. 레지스트리에서 해당 폴더 삭제 레지스트리 편집기에서 NameSpace 아래 경로의 폴더 Data 값을 확인 후 'OneDrive'로 표기된 값의 폴더를 오른쪽 클릭하여 삭제합니다. HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace 3. 삭제 후 확인 삭제 후 파일탐색기에서 바로가기가 삭제된 것을 확인합니다.

ETC/ETC 2021.05.14

[Dashing][CLI Tools] 9. Creating a launch file

이 글은 아래의 자료를 참고로 만들어졌습니다. https://docs.ros.org/en/dashing/Tutorials/Launch-Files/Creating-Launch-Files.html Creating a launch file — ROS 2 Documentation: Dashing documentation Goal: Create a launch file to run a complex ROS 2 system. In the tutorials up until now, you have been opening new terminals for every new node you run. As you create more complex systems with more and more nodes running s..

[ROS2] ROS 2 Distributions과 Supported Platforms

이번에는 ROS 2 distribution과 그에 대한 Supported Paltforms을 정리해보겠습니다. 0. Overview What is a Distribution? ROS distribution이란 버전화된 ROS packages의 모음입니다. Linux distributions (e.g. Ubuntu)과 유사하며, 정식 릴리즈부터 코드네임은 알파벳 순으로 진행합니다. ROS distributions의 목적은 개발자가 Roll forward할 준비가 될 때까지 상대적으로 안정적인 코드베이스에서 작업을 할 수 있도록 하는 것입니다. 따라서, 릴리즈된 패키지에 대해서는 core packages에 대해 bug fixes나 개선사항에 따른 변화를 제한합니다. Supported Platforms 각 d..

[Dashing][CLI Tools] 8. Using rqt_console

이 글은 아래의 자료를 참고로 만들어졌습니다. docs.ros.org/en/dashing/Tutorials/Rqt-Console/Using-Rqt-Console.html Using rqt_console — ROS 2 Documentation: Dashing documentation Goal: Get to know rqt_console, a tool for introspecting log messages. rqt_console is a GUI tool used to introspect log messages in ROS 2. Typically, log messages show up in your terminal. With rqt_console, you can collect those messages ove..

[백준] 1062번: 가르침 (python)

www.acmicpc.net/problem/1062 1062번: 가르침 첫째 줄에 단어의 개수 N과 K가 주어진다. N은 50보다 작거나 같은 자연수이고, K는 26보다 작거나 같은 자연수 또는 0이다. 둘째 줄부터 N개의 줄에 남극 언어의 단어가 주어진다. 단어는 영어 소문 www.acmicpc.net import sys from itertools import combinations def set2bit(string_set): bit = 0 for s in string_set: bit |= 2**(ord('z')-ord(s)) return bit def make_candidate(word): candidate = set() for w in word: candidate |= w return candida..

[Dashing][CLI Tools] 7. Understanding ROS 2 actions

이 글은 아래의 자료를 참고로 만들어졌습니다. docs.ros.org/en/dashing/Tutorials/Understanding-ROS2-Actions.html Understanding ROS 2 actions — ROS 2 Documentation: Dashing documentation You're reading the documentation for an older, but still supported, version of ROS 2. For information on the latest version, please have a look at Foxy. Understanding ROS 2 actions Goal: Introspect actions in ROS 2. Tutorial level: B..

[백준] 1927번: 최소 힙 (python)

www.acmicpc.net/problem/1927 1927번: 최소 힙 첫째 줄에 연산의 개수 N(1 ≤ N ≤ 100,000)이 주어진다. 다음 N개의 줄에는 연산에 대한 정보를 나타내는 정수 x가 주어진다. 만약 x가 자연수라면 배열에 x라는 값을 넣는(추가하는) 연산이고, x가 0 www.acmicpc.net import sys import heapq N = int(sys.stdin.readline()) X = [int(sys.stdin.readline()) for _ in range(N)] heap = [] for x in X: if x == 0: if not heap: print(0) else: print(heapq.heappop(heap)) else: heapq.heappush(heap, x)

[Dashing][CLI Tools] 6. Understanding ROS 2 parameters

이 글은 아래의 자료를 참고로 만들어졌습니다. docs.ros.org/en/dashing/Tutorials/Parameters/Understanding-ROS2-Parameters.html Understanding ROS 2 parameters — ROS 2 Documentation: Dashing documentation Goal: Learn how to get, set, save and reload parameters in ROS 2. A parameter is a configuration value of a node. You can think of parameters as node settings. A node can store parameters as integers, floats, boolean..

반응형