분류 전체보기
-
[개발환경] clang-format카테고리 없음 2021. 6. 19. 17:11
OS : Ubuntu 20.04 IDE : vscode 은근히 쓸데없는 시행착오가 많아 적용방법을 정리함. 0. DO NOT INSTALL an extension "clang-format" in the vscode Extensions 1. Install the clang-format $ sudo apt-get update $ sudo apt-get install clang-format-11 2. Find out the installation path of the clang-format-11 with the command below - Then, you might get the path as "/usr/bin/clang-format-11". $ whereis clang-format-11 3. In the ..
-
[아는대로써보기] Pass-by-reference카테고리 없음 2021. 6. 19. 16:52
함수에 인자를 전달할 때, 값으로 전달하는 경우 복사가 일어나서 비효율적이다. 참조를 통해 전달하면 복사가 일어나지 않아 효율적이다. 참조를 통해 값을 전달하려면, 변수 앞에 &를 붙인다. #include void func(int& A) { A += 1; } void main() { int B = 0; func(B) } 위와 같이 코드를 구현하면, B의 참조가 함수의 인자로 전달되므로, 함수안에서 1을 더하면, 함수 밖의 인수도 1이 더 해진다. Google의 Coding Style에서는 함수의 내부로 인자를 전달할때, Pass-by-reference를 권장하고 있으며, 함수 내부에서 해당 참조의 변경이 없다면 아래처럼 함수를 구성하는 것을 권장한다. void func(const int& A) { std..
-
[Whatever] KL Divergence - Entropy카테고리 없음 2020. 11. 2. 10:29
Conclusion (What the Entropy is) - 정보를 인코딩하는데 필요한 정보량의 기댓값 Information Theory에서, - "정보"는 확률변수이다. ex) "날씨"라는 정보를 표현한다고 가정하면, 맑음 / 흐림 / 비 / 눈 이 "값"이 될 수 있음 - 정보는 0 또는 1의 값을 가지는 bit로 인코딩(또는 라벨링) 하고자 함. ex) "날씨"라는 정보를 인코딩 하기위해, 00 : 맑음 / 01 : 흐림 / 10 : 비옴 / 11 : 눈 으로 라벨링 할 수 있음 - 정보를 인코딩하는데 필요한 bit length를 정보량이라 함. 따라서, 정보량의 단위는 bit임 - 발생 확률이 높은 값에 짧은 bit 값을 할당하고, 발생 확률이 낮은 값에 긴 bit 값을 할당 한다면, 평균적으로..
-
[ROS2] Creating a Sample Package카테고리 없음 2020. 10. 8. 19:19
I made a workspace folder in the Home directory. mkdir -p ros2_ws/src Change a directory to the folder I made above. cd ros2_ws/src And then, create a package, "Square_wave_gen", using lines below. Don't forget to source ROS2 environment information prior to creating a package. Notice that it is not allowed to name a package starting with a capital. source /opt/ros/eloquent/setup.bash ros2 pkg c..
-
[LGSVL - 2] Establishment of the AD Simulation Environment카테고리 없음 2020. 9. 23. 21:55
1. Configuration of PC-2 (contains AD Solution) - Ubuntu 18.04.5 - ROS2(Eloquent) - NVIDIA Driver 440 2. How to receive the data from the LGSVL simulator [Citation] www.lgsvlsimulator.com/docs/ros2-bridge/ www.lgsvlsimulator.com/docs/lgsvl-msgs/ A. Installation of "lgsvl_msgs" in ROS2 - Installation sudo apt update sudo apt install ros-eloquent-lgsvl_msgs - Building from source git clone https:/..
-
[LGSVL - 1] Establishment of the AD Simulation Environment카테고리 없음 2020. 9. 23. 19:55
Configuration of PC-1 - Window10 1. Download LGSVL - connect to github.com/lgsvl/simulator lgsvl/simulator A ROS/ROS2 Multi-robot Simulator for Autonomous Vehicles - lgsvl/simulator github.com - And go on to the download page - And you can take the latest version of LGSVL for window10 - Unzip, and you can find files, execute "simulator.exe" - Then, you can see this. 2. Configuration of LGSVL - I..