#include <pointcloud_localization.h>
Public Member Functions | |
PointCloudLocalization () | |
Protected Member Functions | |
virtual void | applyDownsampling (pcl::PointCloud< pcl::PointNormal >::Ptr in_cloud, pcl::PointCloud< pcl::PointNormal > &out_cloud) |
virtual void | cloudCallback (const sensor_msgs::PointCloud2::ConstPtr &cloud_msg) |
callback function of ~input topic. | |
virtual void | cloudTimerCallback (const ros::TimerEvent &event) |
cloud periodic timer callback | |
virtual bool | isFirstTime () |
return true if it is the first time to localize | |
virtual bool | localizationRequest (std_srvs::Empty::Request &req, std_srvs::Empty::Response &res) |
callback function of ~localize service. | |
virtual void | onInit () |
virtual void | subscribe () |
virtual void | tfTimerCallback (const ros::TimerEvent &event) |
tf periodic timer callback | |
virtual void | unsubscribe () |
virtual bool | updateOffsetCallback (jsk_pcl_ros::UpdateOffset::Request &req, jsk_pcl_ros::UpdateOffset::Response &res) |
callback function for ~update_offset service | |
Protected Attributes | |
pcl::PointCloud < pcl::PointNormal >::Ptr | all_cloud_ |
bool | clip_unseen_pointcloud_ |
ros::Timer | cloud_timer_ |
bool | first_time_ |
std::string | global_frame_ |
Publishes tf transformation of global_frame_ -> odom_frame_. | |
bool | initialize_from_tf_ |
std::string | initialize_tf_ |
sensor_msgs::PointCloud2::ConstPtr | latest_cloud_ |
double | leaf_size_ |
ros::ServiceServer | localization_srv_ |
bool | localize_requested_ |
tf::Transform | localize_transform_ |
boost::mutex | mutex_ |
std::string | odom_frame_ |
ros::Publisher | pub_cloud_ |
std::string | sensor_frame_ |
ros::Subscriber | sub_ |
tf::TransformBroadcaster | tf_broadcast_ |
tf::TransformListener * | tf_listener_ |
boost::mutex | tf_mutex_ |
ros::Timer | tf_timer_ |
ros::ServiceServer | update_offset_srv_ |
bool | use_normal_ |
Resolution of voxel grid. |
Definition at line 52 of file pointcloud_localization.h.
Definition at line 55 of file pointcloud_localization.h.
void jsk_pcl_ros::PointCloudLocalization::applyDownsampling | ( | pcl::PointCloud< pcl::PointNormal >::Ptr | in_cloud, |
pcl::PointCloud< pcl::PointNormal > & | out_cloud | ||
) | [protected, virtual] |
Definition at line 97 of file pointcloud_localization_nodelet.cpp.
void jsk_pcl_ros::PointCloudLocalization::cloudCallback | ( | const sensor_msgs::PointCloud2::ConstPtr & | cloud_msg | ) | [protected, virtual] |
callback function of ~input topic.
Definition at line 145 of file pointcloud_localization_nodelet.cpp.
void jsk_pcl_ros::PointCloudLocalization::cloudTimerCallback | ( | const ros::TimerEvent & | event | ) | [protected, virtual] |
cloud periodic timer callback
Definition at line 107 of file pointcloud_localization_nodelet.cpp.
bool jsk_pcl_ros::PointCloudLocalization::isFirstTime | ( | ) | [protected, virtual] |
return true if it is the first time to localize
Definition at line 301 of file pointcloud_localization_nodelet.cpp.
bool jsk_pcl_ros::PointCloudLocalization::localizationRequest | ( | std_srvs::Empty::Request & | req, |
std_srvs::Empty::Response & | res | ||
) | [protected, virtual] |
callback function of ~localize service.
Definition at line 306 of file pointcloud_localization_nodelet.cpp.
void jsk_pcl_ros::PointCloudLocalization::onInit | ( | void | ) | [protected, virtual] |
Reimplemented from jsk_topic_tools::DiagnosticNodelet.
Definition at line 46 of file pointcloud_localization_nodelet.cpp.
void jsk_pcl_ros::PointCloudLocalization::subscribe | ( | ) | [protected, virtual] |
Implements jsk_topic_tools::ConnectionBasedNodelet.
Definition at line 87 of file pointcloud_localization_nodelet.cpp.
void jsk_pcl_ros::PointCloudLocalization::tfTimerCallback | ( | const ros::TimerEvent & | event | ) | [protected, virtual] |
tf periodic timer callback
Definition at line 121 of file pointcloud_localization_nodelet.cpp.
void jsk_pcl_ros::PointCloudLocalization::unsubscribe | ( | ) | [protected, virtual] |
Implements jsk_topic_tools::ConnectionBasedNodelet.
Definition at line 92 of file pointcloud_localization_nodelet.cpp.
bool jsk_pcl_ros::PointCloudLocalization::updateOffsetCallback | ( | jsk_pcl_ros::UpdateOffset::Request & | req, |
jsk_pcl_ros::UpdateOffset::Response & | res | ||
) | [protected, virtual] |
callback function for ~update_offset service
Definition at line 316 of file pointcloud_localization_nodelet.cpp.
pcl::PointCloud<pcl::PointNormal>::Ptr jsk_pcl_ros::PointCloudLocalization::all_cloud_ [protected] |
Definition at line 119 of file pointcloud_localization.h.
bool jsk_pcl_ros::PointCloudLocalization::clip_unseen_pointcloud_ [protected] |
Definition at line 124 of file pointcloud_localization.h.
Definition at line 117 of file pointcloud_localization.h.
bool jsk_pcl_ros::PointCloudLocalization::first_time_ [protected] |
Definition at line 141 of file pointcloud_localization.h.
Publishes tf transformation of global_frame_ -> odom_frame_.
Definition at line 131 of file pointcloud_localization.h.
bool jsk_pcl_ros::PointCloudLocalization::initialize_from_tf_ [protected] |
Definition at line 125 of file pointcloud_localization.h.
Definition at line 126 of file pointcloud_localization.h.
sensor_msgs::PointCloud2::ConstPtr jsk_pcl_ros::PointCloudLocalization::latest_cloud_ [protected] |
Definition at line 120 of file pointcloud_localization.h.
double jsk_pcl_ros::PointCloudLocalization::leaf_size_ [protected] |
Definition at line 139 of file pointcloud_localization.h.
Definition at line 115 of file pointcloud_localization.h.
bool jsk_pcl_ros::PointCloudLocalization::localize_requested_ [protected] |
Definition at line 122 of file pointcloud_localization.h.
Definition at line 140 of file pointcloud_localization.h.
Definition at line 110 of file pointcloud_localization.h.
Definition at line 132 of file pointcloud_localization.h.
Definition at line 113 of file pointcloud_localization.h.
Definition at line 123 of file pointcloud_localization.h.
Definition at line 112 of file pointcloud_localization.h.
Definition at line 121 of file pointcloud_localization.h.
Definition at line 114 of file pointcloud_localization.h.
Definition at line 111 of file pointcloud_localization.h.
Definition at line 118 of file pointcloud_localization.h.
Definition at line 116 of file pointcloud_localization.h.
bool jsk_pcl_ros::PointCloudLocalization::use_normal_ [protected] |
Resolution of voxel grid.
Definition at line 138 of file pointcloud_localization.h.