Public Types | Protected Member Functions | Protected Attributes | List of all members
jsk_pcl_ros::LINEMODTrainer Class Reference

#include <linemod.h>

Inheritance diagram for jsk_pcl_ros::LINEMODTrainer:
Inheritance graph
[legend]

Public Types

typedef boost::shared_ptr< LINEMODTrainerPtr
 
typedef message_filters::sync_policies::ExactTime< sensor_msgs::PointCloud2, PCLIndicesMsgSyncPolicy
 
- Public Types inherited from pcl_ros::PCLNodelet
typedef boost::shared_ptr< const std::vector< int > > IndicesConstPtr
 
typedef boost::shared_ptr< std::vector< int > > IndicesPtr
 
typedef pcl_msgs::ModelCoefficients ModelCoefficients
 
typedef ModelCoefficients::ConstPtr ModelCoefficientsConstPtr
 
typedef ModelCoefficients::Ptr ModelCoefficientsPtr
 
typedef pcl::PointCloud< pcl::PointXYZ > PointCloud
 
typedef sensor_msgs::PointCloud2 PointCloud2
 
typedef PointCloud::ConstPtr PointCloudConstPtr
 
typedef PointCloud::Ptr PointCloudPtr
 
typedef pcl_msgs::PointIndices PointIndices
 
typedef PointIndices::ConstPtr PointIndicesConstPtr
 
typedef PointIndices::Ptr PointIndicesPtr
 

Protected Member Functions

virtual bool clearData (std_srvs::Empty::Request &req, std_srvs::Empty::Response &res)
 
virtual void generateLINEMODTrainingData (pcl::PointCloud< pcl::PointXYZRGBA >::Ptr cloud, pcl::PointIndices::Ptr mask, pcl::ColorGradientModality< pcl::PointXYZRGBA > &color_grad_mod, pcl::SurfaceNormalModality< pcl::PointXYZRGBA > &surface_norm_mod, pcl::MaskMap &mask_map, pcl::RegionXY &region)
 
virtual void onInit ()
 
virtual void organizedPointCloudWithViewPoint (const Eigen::Affine3f &transform, pcl::PointCloud< pcl::PointXYZRGBA >::Ptr raw_cloud, const image_geometry::PinholeCameraModel &model, pcl::PointCloud< pcl::PointXYZRGBA >::Ptr output, pcl::PointIndices &mask)
 
virtual bool startTraining (std_srvs::Empty::Request &req, std_srvs::Empty::Response &res)
 
virtual void store (const sensor_msgs::PointCloud2::ConstPtr &cloud_msg, const PCLIndicesMsg::ConstPtr &indices_msg)
 
virtual void subscribeCameraInfo (const sensor_msgs::CameraInfo::ConstPtr &info_msg)
 
virtual void subscribeCloud (const sensor_msgs::PointCloud2::ConstPtr &cloud_msg)
 
virtual void tar (const std::string &directory, const std::string &output)
 
virtual std::vector< std::stringtrainOneData (pcl::PointCloud< pcl::PointXYZRGBA >::Ptr cloud, pcl::PointIndices::Ptr mask, std::string &tempstr, int i)
 
virtual void trainWithoutViewpointSampling ()
 
virtual void trainWithViewpointSampling ()
 
- Protected Member Functions inherited from pcl_ros::PCLNodelet
bool isValid (const PointCloud2::ConstPtr &cloud, const std::string &topic_name="input")
 
bool isValid (const PointCloudConstPtr &cloud, const std::string &topic_name="input")
 
bool isValid (const ModelCoefficientsConstPtr &model, const std::string &topic_name="model")
 
bool isValid (const PointIndicesConstPtr &indices, const std::string &topic_name="indices")
 
virtual void subscribe ()
 
virtual void unsubscribe ()
 
- Protected Member Functions inherited from nodelet_topic_tools::NodeletLazy
ros::Publisher advertise (ros::NodeHandle &nh, std::string topic, int queue_size, bool latch=false)
 
virtual void connectionCallback (const ros::SingleSubscriberPublisher &pub)
 
virtual void onInitPostProcess ()
 
virtual void warnNeverSubscribedCallback (const ros::WallTimerEvent &event)
 
- Protected Member Functions inherited from nodelet::Nodelet
ros::CallbackQueueInterfacegetMTCallbackQueue () const
 
ros::NodeHandlegetMTNodeHandle () const
 
ros::NodeHandlegetMTPrivateNodeHandle () const
 
const V_stringgetMyArgv () const
 
const std::stringgetName () const
 
ros::NodeHandlegetNodeHandle () const
 
ros::NodeHandlegetPrivateNodeHandle () const
 
const M_stringgetRemappingArgs () const
 
ros::CallbackQueueInterfacegetSTCallbackQueue () const
 
std::string getSuffixedName (const std::string &suffix) const
 

Protected Attributes

sensor_msgs::CameraInfo::ConstPtr camera_info_
 
ros::ServiceServer clear_data_srv_
 
boost::mutex mutex_
 
int n_points_
 
std::string output_file_
 
ros::Publisher pub_colored_range_image_
 
ros::Publisher pub_range_image_
 
ros::Publisher pub_sample_cloud_
 
std::vector< pcl::PointIndices::Ptr > sample_indices_
 
bool sample_viewpoint_
 
double sample_viewpoint_angle_max_
 
double sample_viewpoint_angle_min_
 
double sample_viewpoint_angle_step_
 
double sample_viewpoint_radius_max_
 
double sample_viewpoint_radius_min_
 
double sample_viewpoint_radius_step_
 
std::vector< pcl::PointCloud< pcl::PointXYZRGBA >::Ptrsamples_
 
std::vector< pcl::PointCloud< pcl::PointXYZRGBA >::Ptrsamples_before_sampling_
 
ros::ServiceServer start_training_srv_
 
ros::Subscriber sub_camera_info_nonsync_
 
message_filters::Subscriber< PCLIndicesMsgsub_indices_
 
message_filters::Subscriber< sensor_msgs::PointCloud2 > sub_input_
 
ros::Subscriber sub_input_nonsync_
 
boost::shared_ptr< message_filters::Synchronizer< SyncPolicy > > sync_
 
- Protected Attributes inherited from pcl_ros::PCLNodelet
bool approximate_sync_
 
bool latched_indices_
 
int max_queue_size_
 
ros::Publisher pub_output_
 
message_filters::Subscriber< PointIndicessub_indices_filter_
 
message_filters::Subscriber< PointCloudsub_input_filter_
 
tf::TransformListener tf_listener_
 
bool use_indices_
 
- Protected Attributes inherited from nodelet_topic_tools::NodeletLazy
boost::mutex connection_mutex_
 
ConnectionStatus connection_status_
 
bool ever_subscribed_
 
bool lazy_
 
boost::shared_ptr< ros::NodeHandlenh_
 
boost::shared_ptr< ros::NodeHandlepnh_
 
std::vector< ros::Publisherpublishers_
 
ros::WallTimer timer_ever_subscribed_
 
bool verbose_connection_
 

Additional Inherited Members

- Public Member Functions inherited from pcl_ros::PCLNodelet
 PCLNodelet ()
 
- Public Member Functions inherited from nodelet_topic_tools::NodeletLazy
 NodeletLazy ()
 
- Public Member Functions inherited from nodelet::Nodelet
void init (const std::string &name, const M_string &remapping_args, const V_string &my_argv, ros::CallbackQueueInterface *st_queue=NULL, ros::CallbackQueueInterface *mt_queue=NULL)
 
 Nodelet ()
 
virtual ~Nodelet ()
 

Detailed Description

Definition at line 116 of file linemod.h.

Member Typedef Documentation

Definition at line 119 of file linemod.h.

Definition at line 122 of file linemod.h.

Member Function Documentation

bool jsk_pcl_ros::LINEMODTrainer::clearData ( std_srvs::Empty::Request &  req,
std_srvs::Empty::Response &  res 
)
protectedvirtual

Definition at line 150 of file linemod_nodelet.cpp.

void jsk_pcl_ros::LINEMODTrainer::generateLINEMODTrainingData ( pcl::PointCloud< pcl::PointXYZRGBA >::Ptr  cloud,
pcl::PointIndices::Ptr  mask,
pcl::ColorGradientModality< pcl::PointXYZRGBA > &  color_grad_mod,
pcl::SurfaceNormalModality< pcl::PointXYZRGBA > &  surface_norm_mod,
pcl::MaskMap &  mask_map,
pcl::RegionXY &  region 
)
protectedvirtual

Definition at line 389 of file linemod_nodelet.cpp.

void jsk_pcl_ros::LINEMODTrainer::onInit ( void  )
protectedvirtual

Reimplemented from pcl_ros::PCLNodelet.

Definition at line 66 of file linemod_nodelet.cpp.

void jsk_pcl_ros::LINEMODTrainer::organizedPointCloudWithViewPoint ( const Eigen::Affine3f &  transform,
pcl::PointCloud< pcl::PointXYZRGBA >::Ptr  raw_cloud,
const image_geometry::PinholeCameraModel model,
pcl::PointCloud< pcl::PointXYZRGBA >::Ptr  output,
pcl::PointIndices &  mask 
)
protectedvirtual

Definition at line 161 of file linemod_nodelet.cpp.

bool jsk_pcl_ros::LINEMODTrainer::startTraining ( std_srvs::Empty::Request &  req,
std_srvs::Empty::Response &  res 
)
protectedvirtual

Definition at line 539 of file linemod_nodelet.cpp.

void jsk_pcl_ros::LINEMODTrainer::store ( const sensor_msgs::PointCloud2::ConstPtr &  cloud_msg,
const PCLIndicesMsg::ConstPtr &  indices_msg 
)
protectedvirtual

Definition at line 117 of file linemod_nodelet.cpp.

void jsk_pcl_ros::LINEMODTrainer::subscribeCameraInfo ( const sensor_msgs::CameraInfo::ConstPtr &  info_msg)
protectedvirtual

Definition at line 143 of file linemod_nodelet.cpp.

void jsk_pcl_ros::LINEMODTrainer::subscribeCloud ( const sensor_msgs::PointCloud2::ConstPtr &  cloud_msg)
protectedvirtual

Definition at line 132 of file linemod_nodelet.cpp.

void jsk_pcl_ros::LINEMODTrainer::tar ( const std::string directory,
const std::string output 
)
protectedvirtual

Definition at line 531 of file linemod_nodelet.cpp.

std::vector< std::string > jsk_pcl_ros::LINEMODTrainer::trainOneData ( pcl::PointCloud< pcl::PointXYZRGBA >::Ptr  cloud,
pcl::PointIndices::Ptr  mask,
std::string tempstr,
int  i 
)
protectedvirtual

Definition at line 432 of file linemod_nodelet.cpp.

void jsk_pcl_ros::LINEMODTrainer::trainWithoutViewpointSampling ( )
protectedvirtual

Definition at line 510 of file linemod_nodelet.cpp.

void jsk_pcl_ros::LINEMODTrainer::trainWithViewpointSampling ( )
protectedvirtual

Definition at line 261 of file linemod_nodelet.cpp.

Member Data Documentation

sensor_msgs::CameraInfo::ConstPtr jsk_pcl_ros::LINEMODTrainer::camera_info_
protected

Definition at line 173 of file linemod.h.

ros::ServiceServer jsk_pcl_ros::LINEMODTrainer::clear_data_srv_
protected

Definition at line 167 of file linemod.h.

boost::mutex jsk_pcl_ros::LINEMODTrainer::mutex_
protected

Definition at line 177 of file linemod.h.

int jsk_pcl_ros::LINEMODTrainer::n_points_
protected

Definition at line 186 of file linemod.h.

std::string jsk_pcl_ros::LINEMODTrainer::output_file_
protected

Definition at line 178 of file linemod.h.

ros::Publisher jsk_pcl_ros::LINEMODTrainer::pub_colored_range_image_
protected

Definition at line 169 of file linemod.h.

ros::Publisher jsk_pcl_ros::LINEMODTrainer::pub_range_image_
protected

Definition at line 168 of file linemod.h.

ros::Publisher jsk_pcl_ros::LINEMODTrainer::pub_sample_cloud_
protected

Definition at line 170 of file linemod.h.

std::vector<pcl::PointIndices::Ptr> jsk_pcl_ros::LINEMODTrainer::sample_indices_
protected

Definition at line 176 of file linemod.h.

bool jsk_pcl_ros::LINEMODTrainer::sample_viewpoint_
protected

Definition at line 179 of file linemod.h.

double jsk_pcl_ros::LINEMODTrainer::sample_viewpoint_angle_max_
protected

Definition at line 184 of file linemod.h.

double jsk_pcl_ros::LINEMODTrainer::sample_viewpoint_angle_min_
protected

Definition at line 182 of file linemod.h.

double jsk_pcl_ros::LINEMODTrainer::sample_viewpoint_angle_step_
protected

Definition at line 180 of file linemod.h.

double jsk_pcl_ros::LINEMODTrainer::sample_viewpoint_radius_max_
protected

Definition at line 185 of file linemod.h.

double jsk_pcl_ros::LINEMODTrainer::sample_viewpoint_radius_min_
protected

Definition at line 183 of file linemod.h.

double jsk_pcl_ros::LINEMODTrainer::sample_viewpoint_radius_step_
protected

Definition at line 181 of file linemod.h.

std::vector<pcl::PointCloud<pcl::PointXYZRGBA>::Ptr> jsk_pcl_ros::LINEMODTrainer::samples_
protected

Definition at line 175 of file linemod.h.

std::vector<pcl::PointCloud<pcl::PointXYZRGBA>::Ptr> jsk_pcl_ros::LINEMODTrainer::samples_before_sampling_
protected

Definition at line 174 of file linemod.h.

ros::ServiceServer jsk_pcl_ros::LINEMODTrainer::start_training_srv_
protected

Definition at line 166 of file linemod.h.

ros::Subscriber jsk_pcl_ros::LINEMODTrainer::sub_camera_info_nonsync_
protected

Definition at line 172 of file linemod.h.

message_filters::Subscriber<PCLIndicesMsg> jsk_pcl_ros::LINEMODTrainer::sub_indices_
protected

Definition at line 165 of file linemod.h.

message_filters::Subscriber<sensor_msgs::PointCloud2> jsk_pcl_ros::LINEMODTrainer::sub_input_
protected

Definition at line 164 of file linemod.h.

ros::Subscriber jsk_pcl_ros::LINEMODTrainer::sub_input_nonsync_
protected

Definition at line 171 of file linemod.h.

boost::shared_ptr<message_filters::Synchronizer<SyncPolicy> > jsk_pcl_ros::LINEMODTrainer::sync_
protected

Definition at line 163 of file linemod.h.


The documentation for this class was generated from the following files:


jsk_pcl_ros
Author(s): Yohei Kakiuchi
autogenerated on Mon May 3 2021 03:03:48