When I was trying to study ROS python to use it with ROS C++ packages, I followed below list.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 3.16.3) | |
project(configure-file-example) | |
# Configure file, export the environment variable. | |
set(FOO_DIR | |
"${CMAKE_CURRENT_SOURCE_DIR}/${PATH_YOU_WANT}") | |
configure_file(config/foo.h.in foo.h @ONLY) | |
# Libraries or excutables | |
# ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link name="my_link"> | |
<inertial> | |
<origin xyz="0 0 0.5" rpy="0 0 0"/> | |
<mass value="1"/> | |
<inertia ixx="100" ixy="0" ixz="0" iyy="100" iyz="0" izz="100" /> | |
</inertial> | |
<visual> | |
<origin xyz="0 0 0" rpy="0 0 0" /> | |
<geometry> | |
<box size="1 1 1" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nvidia-xconfig: X configuration file generated by nvidia-xconfig | |
# nvidia-xconfig: version 390.116 (buildmeister@swio-display-x64-rhel04-14) Sun Jan 27 07:47:55 PST 2019 | |
Section "DRI" | |
Mode 0666 | |
EndSection | |
#Section "ServerLayout" | |
# Identifier "Layout0" | |
# Screen 0 "Screen0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/core/core.hpp> | |
#include <pcl/common/transforms.h> | |
#include <pcl/point_cloud.h> | |
#include <pcl/point_types.h> | |
#include <iostream> | |
void Processing(const Eigen::Affine3f &transformation_matrix, const pcl::PointCloud<pcl::PointXYZ> &origin_point_cloud, const cv::Mat &projection_matrix, const cv::Mat &cameraMat, const cv::Size &image_size, cv::Point2f &result, bool log_flag = true); | |
void Processing(const Eigen::Affine3f &transformation_matrix, const pcl::PointCloud<pcl::PointXYZ> &origin_point_cloud, const cv::Mat &projection_matrix, const cv::Mat &cameraMat, const cv::Size &image_size, cv::Point2f &result, bool log_flag){ | |
// Transfrom Points with Parameters | |
pcl::PointCloud<pcl::PointXYZ> transform_point_cloud; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Draw Lane on The image | |
cv::Mat laneOverlay = drawImg(cv::Rect(0,0,drawImg.cols, drawImg.rows)).clone(); | |
lane_polylines.push_back(cv::Point(topic_lane[0], topic_lane[1])); | |
lane_polylines.push_back(cv::Point(topic_lane[2], topic_lane[3])); | |
lane_polylines.push_back(cv::Point(topic_lane[6], topic_lane[7])); | |
lane_polylines.push_back(cv::Point(topic_lane[4], topic_lane[5])); | |
cv::fillConvexPoly(laneOverlay, lane_polylines, cv::Scalar(0, 255, 0), 8); | |
double alpha = 0.3; | |
cv::addWeighted(laneOverlay, alpha, drawImg, 1 - alpha, 0, drawImg); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# by Kwanghoe, [email protected] | |
#------------------------------------------------------------------------------- | |
cmake_minimum_required(VERSION 2.8.3) | |
project(rt_example) | |
add_compile_options(-std=c++11) | |
#------------------------------------------------------------------------------- | |
# Find Cuda and Additional packages | |
if(VIBRANTE) | |
set(ARCH_DIR "aarch64-linux") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION x.x.x FATAL_ERROR) | |
# Project에 필요한 최소한의 cmake 버전을 명시 | |
project(PackageName) | |
# Project 이름을 지정, 여기서 패키지 이름은 ${PROJECT_NAME} 변수에 저장 | |
find_package(Library_Name REQUIRED) | |
# 추가할 Library Package를 지정 | |
set(Var_Name Val) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export nas_path=$1 | |
export username=$2 | |
export password=$3 | |
export target_path=$4 | |
sudo mount -t cifs $nas_path -o username=$username,password=$password,rw,nounix,iocharset=utf8,file_mode=0644,dir_mode=0755,uid=1000,gid=1000,ver=1.0 $target_path |
NewerOlder