#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_recognition_msgs::UpdateOffset::Request &req, jsk_recognition_msgs::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 99 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 147 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 109 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 303 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 308 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 89 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 123 of file pointcloud_localization_nodelet.cpp.
void jsk_pcl_ros::PointCloudLocalization::unsubscribe | ( | ) | [protected, virtual] |
Implements jsk_topic_tools::ConnectionBasedNodelet.
Definition at line 94 of file pointcloud_localization_nodelet.cpp.
bool jsk_pcl_ros::PointCloudLocalization::updateOffsetCallback | ( | jsk_recognition_msgs::UpdateOffset::Request & | req, |
jsk_recognition_msgs::UpdateOffset::Response & | res | ||
) | [protected, virtual] |
callback function for ~update_offset service
Definition at line 318 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.
std::string jsk_pcl_ros::PointCloudLocalization::global_frame_ [protected] |
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.
std::string jsk_pcl_ros::PointCloudLocalization::initialize_tf_ [protected] |
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.
std::string jsk_pcl_ros::PointCloudLocalization::odom_frame_ [protected] |
Definition at line 132 of file pointcloud_localization.h.
Definition at line 113 of file pointcloud_localization.h.
std::string jsk_pcl_ros::PointCloudLocalization::sensor_frame_ [protected] |
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.