1 #define PCL_NO_PRECOMPILE 6 int main(
int argc,
char **argv)
8 ros::init(argc, argv,
"rc_cloud_accumulator");
11 std::string output_filename = pnh.
param(
"output_filename", std::string(
"cloud.pcd"));
12 double downsampling_size_display = pnh.
param(
"voxel_grid_size_display", 0.05);
13 double downsampling_size_save = pnh.
param(
"voxel_grid_size_save", 0.01);
14 double min_distance = pnh.
param(
"minimum_distance", 0.0);
15 double max_distance = pnh.
param(
"maximum_distance", 5.0);
16 bool start_paused = pnh.
param(
"start_paused",
false);
17 bool keep_high_res = pnh.
param(
"keep_high_resolution",
true);
20 min_distance, max_distance,
21 output_filename, keep_high_res, start_paused);
26 traj_sub = nh.
subscribe<nav_msgs::Path>(
"trajectory", 2,
void trajectoryCallback(const nav_msgs::PathConstPtr &path)
Replace all saved camera poses by those in path.
void poseCallback(const geometry_msgs::PoseStampedConstPtr ¤t_pose)
Saves camera pose.
Subscriber subscribe(const std::string &topic, uint32_t queue_size, void(T::*fp)(M), T *obj, const TransportHints &transport_hints=TransportHints())
void pointCloudCallback(const pointcloud_t::ConstPtr &pointcloud)
For each cloud.
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ServiceServer advertiseService(const std::string &service, bool(T::*srv_func)(MReq &, MRes &), T *obj)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
int main(int argc, char **argv)
Demonstration for how to create a registered point cloud map using the rc_visard. ...
bool saveCloud(std_srvs::Empty::Request &req, std_srvs::Empty::Request &resp)
bool togglePause(std_srvs::Empty::Request &req, std_srvs::Empty::Request &resp)
Toggle whether to ignore incoming data.
pcl::PointCloud< point_t > pointcloud_t
ROSCPP_DECL void waitForShutdown()