interactive_cuboid_likelihood.h
Go to the documentation of this file.
1 // -*- mode: c++ -*-
2 /*********************************************************************
3  * Software License Agreement (BSD License)
4  *
5  * Copyright (c) 2015, JSK Lab
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  *
12  * * Redistributions of source code must retain the above copyright
13  * notice, this list of conditions and the following disclaimer.
14  * * Redistributions in binary form must reproduce the above
15  * copyright notice, this list of conditions and the following
16  * disclaimer in the documentation and/or other materials provided
17  * with the distribution.
18  * * Neither the name of the JSK Lab nor the names of its
19  * contributors may be used to endorse or promote products derived
20  * from this software without specific prior written permission.
21  *
22  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
25  * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
26  * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
27  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
28  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
29  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
30  * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
32  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
33  * POSSIBILITY OF SUCH DAMAGE.
34  *********************************************************************/
35 
36 
37 #ifndef JSK_PCL_ROS_INTERACTIVE_CUBOID_LIKELIHOOD_H_
38 #define JSK_PCL_ROS_INTERACTIVE_CUBOID_LIKELIHOOD_H_
39 
42 #include <jsk_pcl_ros/InteractiveCuboidLikelihoodConfig.h>
43 #include <dynamic_reconfigure/server.h>
44 #include <visualization_msgs/Marker.h>
45 #include <std_msgs/Float32.h>
46 
47 namespace jsk_pcl_ros
48 {
49  class InteractiveCuboidLikelihood: public jsk_topic_tools::DiagnosticNodelet
50  {
51  public:
53  typedef InteractiveCuboidLikelihoodConfig Config;
55  InteractiveCuboidLikelihood(): DiagnosticNodelet("InteractiveCuboidLikelihood") {}
56 
57  protected:
58  virtual void onInit();
59  virtual void subscribe();
60  virtual void unsubscribe();
61  virtual void likelihood(const sensor_msgs::PointCloud2::ConstPtr& msg);
62  virtual void processFeedback(const visualization_msgs::InteractiveMarkerFeedback::ConstPtr& feedback);
63  virtual void processPlaneFeedback(const visualization_msgs::InteractiveMarkerFeedback::ConstPtr& feedback);
64  virtual void configCallback(Config& config, uint32_t level);
65  virtual visualization_msgs::Marker particleToMarker(const Particle& p);
66  virtual visualization_msgs::InteractiveMarker particleToInteractiveMarker(const Particle& p);
67  virtual visualization_msgs::InteractiveMarker planeInteractiveMarker();
71  Eigen::Affine3f plane_pose_;
72  std::string frame_id_;
76  Eigen::Vector3f viewpoint_;
77  std::string sensor_frame_;
81  private:
82 
83  };
84 }
85 
86 #endif
jsk_pcl_ros::InteractiveCuboidLikelihood::processPlaneFeedback
virtual void processPlaneFeedback(const visualization_msgs::InteractiveMarkerFeedback::ConstPtr &feedback)
Definition: interactive_cuboid_likelihood_nodelet.cpp:108
jsk_pcl_ros::InteractiveCuboidLikelihood::unsubscribe
virtual void unsubscribe()
Definition: interactive_cuboid_likelihood_nodelet.cpp:94
ros::Publisher
boost::shared_ptr
jsk_pcl_ros::InteractiveCuboidLikelihood::mutex_
boost::mutex mutex_
Definition: interactive_cuboid_likelihood.h:132
jsk_pcl_ros::InteractiveCuboidLikelihood::likelihood
virtual void likelihood(const sensor_msgs::PointCloud2::ConstPtr &msg)
Definition: interactive_cuboid_likelihood_nodelet.cpp:115
jsk_pcl_ros::InteractiveCuboidLikelihood::configCallback
virtual void configCallback(Config &config, uint32_t level)
Definition: interactive_cuboid_likelihood_nodelet.cpp:150
jsk_pcl_ros::InteractiveCuboidLikelihood::Ptr
boost::shared_ptr< InteractiveCuboidLikelihood > Ptr
Definition: interactive_cuboid_likelihood.h:116
jsk_pcl_ros::InteractiveCuboidLikelihood::particle_
Particle particle_
Definition: interactive_cuboid_likelihood.h:137
plane_supported_cuboid_estimator.h
jsk_pcl_ros::InteractiveCuboidLikelihood::plane_server_
boost::shared_ptr< interactive_markers::InteractiveMarkerServer > plane_server_
Definition: interactive_cuboid_likelihood.h:143
jsk_pcl_ros::InteractiveCuboidLikelihood::sensor_frame_
std::string sensor_frame_
Definition: interactive_cuboid_likelihood.h:141
jsk_pcl_ros::InteractiveCuboidLikelihood::processFeedback
virtual void processFeedback(const visualization_msgs::InteractiveMarkerFeedback::ConstPtr &feedback)
Definition: interactive_cuboid_likelihood_nodelet.cpp:99
pcl::tracking::ParticleCuboid
Definition: particle_cuboid.h:134
jsk_pcl_ros
Definition: add_color_from_image.h:51
jsk_pcl_ros::InteractiveCuboidLikelihood::srv_
boost::shared_ptr< dynamic_reconfigure::Server< Config > > srv_
Definition: interactive_cuboid_likelihood.h:144
jsk_pcl_ros::InteractiveCuboidLikelihood::viewpoint_
Eigen::Vector3f viewpoint_
Definition: interactive_cuboid_likelihood.h:140
jsk_pcl_ros::InteractiveCuboidLikelihood::pub_
ros::Publisher pub_
Definition: interactive_cuboid_likelihood.h:133
jsk_pcl_ros::InteractiveCuboidLikelihood::InteractiveCuboidLikelihood
InteractiveCuboidLikelihood()
Definition: interactive_cuboid_likelihood.h:119
jsk_pcl_ros::InteractiveCuboidLikelihood::server_
boost::shared_ptr< interactive_markers::InteractiveMarkerServer > server_
Definition: interactive_cuboid_likelihood.h:142
jsk_pcl_ros::InteractiveCuboidLikelihood::subscribe
virtual void subscribe()
Definition: interactive_cuboid_likelihood_nodelet.cpp:89
jsk_pcl_ros::InteractiveCuboidLikelihood::Particle
pcl::tracking::ParticleCuboid Particle
Definition: interactive_cuboid_likelihood.h:118
jsk_pcl_ros::InteractiveCuboidLikelihood::onInit
virtual void onInit()
Definition: interactive_cuboid_likelihood_nodelet.cpp:43
jsk_pcl_ros::InteractiveCuboidLikelihood::particleToMarker
virtual visualization_msgs::Marker particleToMarker(const Particle &p)
Definition: interactive_cuboid_likelihood_nodelet.cpp:215
jsk_pcl_ros::InteractiveCuboidLikelihood::Config
InteractiveCuboidLikelihoodConfig Config
Definition: interactive_cuboid_likelihood.h:117
jsk_pcl_ros::InteractiveCuboidLikelihood::plane_pose_
Eigen::Affine3f plane_pose_
Definition: interactive_cuboid_likelihood.h:135
interactive_marker_server.h
tf::TransformListener
jsk_pcl_ros::InteractiveCuboidLikelihood::tf_
tf::TransformListener * tf_
Definition: interactive_cuboid_likelihood.h:139
jsk_pcl_ros::InteractiveCuboidLikelihood::sub_
ros::Subscriber sub_
Definition: interactive_cuboid_likelihood.h:134
mutex
boost::mutex mutex
global mutex.
Definition: depth_camera_error_visualization.cpp:86
jsk_pcl_ros::InteractiveCuboidLikelihood::planeInteractiveMarker
virtual visualization_msgs::InteractiveMarker planeInteractiveMarker()
Definition: interactive_cuboid_likelihood_nodelet.cpp:166
jsk_pcl_ros::InteractiveCuboidLikelihood::frame_id_
std::string frame_id_
Definition: interactive_cuboid_likelihood.h:136
pose_with_covariance_sample.msg
msg
Definition: pose_with_covariance_sample.py:22
jsk_pcl_ros::InteractiveCuboidLikelihood::particleToInteractiveMarker
virtual visualization_msgs::InteractiveMarker particleToInteractiveMarker(const Particle &p)
Definition: interactive_cuboid_likelihood_nodelet.cpp:231
ros::Subscriber
jsk_pcl_ros::InteractiveCuboidLikelihood::config_
Config config_
Definition: interactive_cuboid_likelihood.h:138


jsk_pcl_ros
Author(s): Yohei Kakiuchi
autogenerated on Tue Jan 7 2025 04:05:45