🎯
- shapelim [at] [My Affiliation] [dot] edu
- https://orcid.org/0000-0002-7185-4666
- in/hyungtae-lim-34b8a015a
- https://buymeacoffee.com/htlim
This file contains hidden or 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
import open3d as o3d | |
import os | |
import time | |
# PCD 파일이 저장된 폴더 경로 | |
pcd_folder = "./" | |
# PCD 파일 목록 가져오기 | |
pcd_files = sorted([f for f in os.listdir(pcd_folder) if f.endswith(".pcd")]) |
This file contains hidden or 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
import ray | |
import torch | |
import os | |
import torch | |
print("CUDA Available:", torch.cuda.is_available()) | |
print("CUDA Device Count:", torch.cuda.device_count()) | |
print("Current CUDA Device:", torch.cuda.current_device()) | |
print("CUDA Device Name:", torch.cuda.get_device_name(torch.cuda.current_device())) | |
print(os.environ.get("CUDA_VISIBLE_DEVICES")) |
This file contains hidden or 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 <iostream> | |
#include <string> | |
#include <vector> | |
#include <pcl/io/pcd_io.h> | |
#include <pcl/point_cloud.h> | |
#include <pcl/point_types.h> | |
#include <tools/nvutils.h> | |
#include "tools/pose_utils.hpp" |
This file contains hidden or 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
#!/bin/bash | |
# Find all compile_commands.json files under ./build directory | |
find ./build -type f -name "compile_commands.json" | while read src_file; do | |
# Extract the package name from the file path | |
package_name=$(echo "$src_file" | sed -e 's|./build/\([^/]*\)/compile_commands.json|\1|') | |
# Define the destination path | |
dest_file="./src/${package_name}/compile_commands.json" | |
This file contains hidden or 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
import numpy as np | |
rot = np.array([[9.999976e-01, 7.553071e-04, -2.035826e-03], [-7.854027e-04, 9.998898e-01, -1.482298e-02], [2.024406e-03, 1.482454e-02, 9.998881e-01]]) | |
t = np.array([-8.086759e-01, 3.195559e-01, -7.997231e-01]) | |
tf = np.eye(4) | |
tf[:3, :3] = rot | |
tf[:3, 3] = t |
This file contains hidden or 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 <iostream> | |
#include <vector> | |
#include <utility> | |
#include <queue> | |
using namespace std; | |
void bfs(int start, vector<vector<int>>& adj, vector<bool>& visited, vector<int>& cluster) { | |
queue<int> q; | |
q.push(start); |
This file contains hidden or 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 "ceres/ceres.h" | |
#include "glog/logging.h" | |
using namespace std; | |
void PassByAddress(const Eigen::Vector3d *b) { | |
cout << (*b)(0) << ", " << (*b)(1) << ", " << (*b)(2) << endl; | |
} | |
void PassByData(const double* b) { |
This file contains hidden or 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 <iostream> | |
#include <cmath> | |
using namespace std; | |
double prob2logOdds(double prob) { | |
return 2 * atanh(2 * prob - 1); | |
} | |
double logOdds2prob(double log_odds) { |
This file contains hidden or 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
# First, CUDA and its driver should be installed | |
# for saving time | |
# 1. Set off the nouveau | |
# (reference: https://support.huawei.com/enterprise/de/doc/EDOC1100165479/93fe5683/how-to-disable-the-nouveau-driver-for-different-linux-systems) | |
a) Create the /etc/modprobe.d/blacklist-nouveau.conf file and add the following information to the file. | |
``` | |
blacklist nouveau | |
options nouveau modeset=0 | |
``` |
This file contains hidden or 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
/****************************************************************************** | |
Online C++ Compiler. | |
Code, Compile, Run and Debug C++ program online. | |
Write your code in this editor and press "Run" button to compile and execute it. | |
*******************************************************************************/ | |
#include <iostream> | |
#include <unordered_map> |
NewerOlder