- 공식 홈페이지 다운로드 주소 https://www.cyberbotics.com/download
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 <pcl/io/pcd_io.h> | |
bool Cluster::SaveCluster2Obj(int num) | |
{ | |
char char_filename[80]; | |
sprintf (char_filename, "/home/kyungpyo/pcd_dataset/PCD%06d.pcd" , num); | |
std::string str_filename (char_filename); | |
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
/** | |
* Definition for a binary tree node. | |
* struct TreeNode { | |
* int val; | |
* TreeNode *left; | |
* TreeNode *right; | |
* TreeNode(int x) : val(x), left(NULL), right(NULL) {} | |
* }; | |
*/ | |
class Solution { |
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
/** | |
* Definition for a binary tree node. | |
* struct TreeNode { | |
* int val; | |
* TreeNode *left; | |
* TreeNode *right; | |
* TreeNode(int x) : val(x), left(NULL), right(NULL) {} | |
* }; | |
*/ | |
class Solution { |
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 <pcl_conversions/pcl_conversions.h> | |
#include <pcl/point_types.h> | |
#include <pcl/PCLPointCloud2.h> | |
#include <pcl/conversions.h> | |
#include <pcl_ros/transforms.h> | |
void cloud_cb(const boost::shared_ptr<const sensor_msgs::PointCloud2>& input){ | |
pcl::PCLPointCloud2 pcl_pc2; | |
pcl_conversions::toPCL(*input,pcl_pc2); |
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
void loam_wrapper::publishInput(pcl::PointCloud<pcl::PointXYZHSV>::Ptr pc) | |
{ | |
sensor_msgs::PointCloud2 pc2; | |
pcl::toROSMsg(*pc, pc2); | |
pc2.header.stamp = ros::Time().now(); | |
pc2.header.frame_id = "/world"; | |
publishInput(pc2); | |
} | |
/* Reference |
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
// calibaration | |
Eigen::Affine3f PCLTransformationMat(float x, float y, float z, float roll, float pitch, float yaw) | |
{ | |
Eigen::Affine3f transformation; | |
transformation.setIdentity(); | |
Eigen::AngleAxisf rollAngle(roll, Eigen::Vector3f::UnitX()); | |
Eigen::AngleAxisf pitchAngle(pitch, Eigen::Vector3f::UnitY()); | |
Eigen::AngleAxisf yawAngle(yaw, Eigen::Vector3f::UnitZ()); | |
Eigen::Quaternion<float> q = rollAngle*pitchAngle*yawAngle; |
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 <pcl/filters/random_sample.h> | |
pcl::PointCloud<pcl::PointXYZRGB>::Ptr cloud_; | |
pcl::PointCloud<pcl::PointXYZRGB>::Ptr track_cloud(new pcl::PointCloud<pcl::PointXYZRGB>); | |
pcl::RandomSample <pcl::PointXYZRGB> random; | |
random.setInputCloud(cloud_); | |
random.setSeed (std::rand ()); | |
random.setSample((unsigned int)(100)); |
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
/** | |
* Definition for a binary tree node. | |
* struct TreeNode { | |
* int val; | |
* TreeNode *left; | |
* TreeNode *right; | |
* TreeNode(int x) : val(x), left(NULL), right(NULL) {} | |
* }; | |
*/ | |
class Solution { |
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
/** | |
* Definition for a binary tree node. | |
* struct TreeNode { | |
* int val; | |
* TreeNode *left; | |
* TreeNode *right; | |
* TreeNode(int x) : val(x), left(NULL), right(NULL) {} | |
* }; | |
*/ | |
class Solution { |
OlderNewer