본문 바로가기

vs code로 서버 접속하기 나는 vscod 가 좋다. 여러 가지 장점이 있지만, 가장 큰 장점은 공짜라는 점이다. 두 번째 장점은 맥과 리눅스 모두에 별 문제 없이 잘 설치가 된다는 점? 이런 것이 대기업에서 운영하는 프로그램의 장점이라고 볼 수 있을 것이다. 각설하고, 위의 extension를 먼저 설치를 한다. 이것이 해주는 것은 ssh로 들어가서 FileSystemProvider를 제공해준다는 점이다. 그것 외에 큰 장점은 없지만, 일단 코드를 수정은 가능하다. 그리고는 User setting에 들어가서 json을 편집한다. 그리고 나선 오른쪽의 User setting에 다음과 같은 sshfs.config를 추가한다. 저장을 하고 vscode를 종료 후 재 시작을 해야한다. "sshfs.configs": [ { "label".. 더보기
Convert k-ary tree to Left Child Right Sibling (LCRS) Tree Convert an arbitrary k-ary tree to a LCRS tree source: https://en.wikipedia.org/wiki/Left-child_right-sibling_binary_treeLet us see one example. Consider the following multiway tree 1 /|\ / | \ / | \ 2 3 4 / \ | 5 6 7 / \ 8 9 This tree can be represented in first child-next sibling manner as follows 1 / / / 2---3---4 / / 5---6 7 / 8---9 Now, if we look at the first child-next sibling representat.. 더보기
ROS cheat sheet Basic codes source ~/catkin_ws/devel/setup.bash- This will call setup.sh and enables referring existing packages for ROS commands such as roscd. Create ROS package catkin_create_pkg beginner_tutorials std_msgs rospy roscppcatkin_create_pkg beginner_tutorials std_msgs rospy roscpp- beginner_tutorials: package name / std_msgs, rospy,roscpp: package dependencies Move to ROS folder & check dependenc.. 더보기
ROS tutorial (publisher / subscriber) Writing the Publisher Node in C++ source ~/catkin_ws/devel/setup.bash- To let the OS to know where ROS files are. roscd beginner_tutorials - Make src/talker.cpp#include "ros/ros.h"#include "std_msgs/String.h" #include /** * This tutorial demonstrates simple sending of messages over the ROS system. */int main(int argc, char **argv){ /** * The ros::init() function needs to see argc and argv so tha.. 더보기