point_cloud_config_marker.h
Go to the documentation of this file.
1 #include <ros/ros.h>
3 
5 #include <jsk_interactive_marker/SetPose.h>
6 #include <jsk_interactive_marker/MarkerSetPose.h>
7 
8 #include <geometry_msgs/PoseStamped.h>
9 #include <std_msgs/Empty.h>
10 #include <std_msgs/Float32.h>
11 
12 
14  public:
17 
18  }
20  size.x = s;
21  size.y = s;
22  size.z = s;
23  }
24  geometry_msgs::Pose pose;
25  geometry_msgs::Vector3 size;
26  int marker_id;
27  double resolution_;
28  };
29 
30  visualization_msgs::Marker makeBoxMarker(geometry_msgs::Vector3 size);
31  visualization_msgs::Marker makeTextMarker(geometry_msgs::Vector3 size);
32  visualization_msgs::InteractiveMarker makeBoxInteractiveMarker(MarkerControlConfig mconfig, std::string name);
33  void moveBoxCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
34 
35  visualization_msgs::Marker makeMarkerMsg( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
36 
37  void publishMarkerMsg( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
38  void cancelCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
39  void clearCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
40  void clearBoxCB( const std_msgs::Empty::ConstPtr &msg);
41  void clearBox();
42 
43  void changeResolutionCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
44  void changeBoxSize(geometry_msgs::Vector3 size);
45  void changeBoxSizeCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
46 
47 
49  void changeBoxResolution(const std_msgs::Float32::ConstPtr &msg);
50  void publishCurrentPose(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
51  void publishCurrentPose(const geometry_msgs::PoseStamped::ConstPtr &pose);
52  void updatePoseCB(const geometry_msgs::PoseStamped::ConstPtr &pose);
53  void addBoxCB(const std_msgs::Empty::ConstPtr &msg);
56  private:
59  std::shared_ptr<interactive_markers::InteractiveMarkerServer> server_;
60  visualization_msgs::InteractiveMarkerFeedbackConstPtr latest_feedback_;
63 
64 
70 
77 
83 
84 
85  std::string server_name;
86  std::string marker_name;
87  std::string base_frame;
88  double size_;
90 };
PointCloudConfigMarker::updateBoxInteractiveMarker
void updateBoxInteractiveMarker()
Definition: point_cloud_config_marker.cpp:278
interactive_markers::MenuHandler::EntryHandle
uint32_t EntryHandle
PointCloudConfigMarker::resolution_10cm_menu_
interactive_markers::MenuHandler::EntryHandle resolution_10cm_menu_
Definition: point_cloud_config_marker.h:75
ros::Publisher
PointCloudConfigMarker::pnh_
ros::NodeHandle pnh_
Definition: point_cloud_config_marker.h:58
PointCloudConfigMarker::MarkerControlConfig::MarkerControlConfig
MarkerControlConfig(double s)
Definition: point_cloud_config_marker.h:19
PointCloudConfigMarker::MarkerControlConfig::MarkerControlConfig
MarkerControlConfig()
Definition: point_cloud_config_marker.h:16
PointCloudConfigMarker::MarkerControlConfig::pose
geometry_msgs::Pose pose
Definition: point_cloud_config_marker.h:24
ros.h
PointCloudConfigMarker::clearBoxCB
void clearBoxCB(const std_msgs::Empty::ConstPtr &msg)
Definition: point_cloud_config_marker.cpp:269
PointCloudConfigMarker::publishCurrentPose
void publishCurrentPose(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: point_cloud_config_marker.cpp:153
PointCloudConfigMarker::MarkerControlConfig
Definition: point_cloud_config_marker.h:15
PointCloudConfigMarker::MarkerControlConfig::size
geometry_msgs::Vector3 size
Definition: point_cloud_config_marker.h:25
PointCloudConfigMarker::resolution_5cm_menu_
interactive_markers::MenuHandler::EntryHandle resolution_5cm_menu_
Definition: point_cloud_config_marker.h:76
PointCloudConfigMarker::resolution_menu_
interactive_markers::MenuHandler::EntryHandle resolution_menu_
Definition: point_cloud_config_marker.h:72
PointCloudConfigMarker::change_box_size_sub_
ros::Subscriber change_box_size_sub_
Definition: point_cloud_config_marker.h:68
menu_handler.h
transformable_joy_configure.s
s
Definition: transformable_joy_configure.py:85
PointCloudConfigMarker::nh_
ros::NodeHandle nh_
Definition: point_cloud_config_marker.h:57
PointCloudConfigMarker::box_size_50_menu_
interactive_markers::MenuHandler::EntryHandle box_size_50_menu_
Definition: point_cloud_config_marker.h:81
PointCloudConfigMarker::add_box_sub_
ros::Subscriber add_box_sub_
Definition: point_cloud_config_marker.h:66
PointCloudConfigMarker::clear_box_sub_
ros::Subscriber clear_box_sub_
Definition: point_cloud_config_marker.h:67
PointCloudConfigMarker::changeBoxSize
void changeBoxSize(geometry_msgs::Vector3 size)
Definition: point_cloud_config_marker.cpp:197
PointCloudConfigMarker::cancelCb
void cancelCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: point_cloud_config_marker.cpp:248
interactive_markers::MenuHandler
PointCloudConfigMarker::makeTextMarker
visualization_msgs::Marker makeTextMarker(geometry_msgs::Vector3 size)
Definition: point_cloud_config_marker.cpp:20
PointCloudConfigMarker::changeResolutionCb
void changeResolutionCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: point_cloud_config_marker.cpp:168
PointCloudConfigMarker::box_size_100_menu_
interactive_markers::MenuHandler::EntryHandle box_size_100_menu_
Definition: point_cloud_config_marker.h:80
PointCloudConfigMarker::checked_resolution_menu_
interactive_markers::MenuHandler::EntryHandle checked_resolution_menu_
Definition: point_cloud_config_marker.h:73
PointCloudConfigMarker::pub_
ros::Publisher pub_
Definition: point_cloud_config_marker.h:61
PointCloudConfigMarker::box_size_menu_
interactive_markers::MenuHandler::EntryHandle box_size_menu_
Definition: point_cloud_config_marker.h:78
PointCloudConfigMarker::menu_handler
interactive_markers::MenuHandler menu_handler
Definition: point_cloud_config_marker.h:71
PointCloudConfigMarker::marker_control_config
MarkerControlConfig marker_control_config
Definition: point_cloud_config_marker.h:89
PointCloudConfigMarker::current_pose_pub_
ros::Publisher current_pose_pub_
Definition: point_cloud_config_marker.h:62
PointCloudConfigMarker::updatePoseCB
void updatePoseCB(const geometry_msgs::PoseStamped::ConstPtr &pose)
Definition: point_cloud_config_marker.cpp:287
PointCloudConfigMarker::PointCloudConfigMarker
PointCloudConfigMarker()
Definition: point_cloud_config_marker.cpp:306
PointCloudConfigMarker::makeBoxInteractiveMarker
visualization_msgs::InteractiveMarker makeBoxInteractiveMarker(MarkerControlConfig mconfig, std::string name)
Definition: point_cloud_config_marker.cpp:34
PointCloudConfigMarker::server_name
std::string server_name
Definition: point_cloud_config_marker.h:85
PointCloudConfigMarker::clearBox
void clearBox()
Definition: point_cloud_config_marker.cpp:260
PointCloudConfigMarker::pose_update_sub_
ros::Subscriber pose_update_sub_
Definition: point_cloud_config_marker.h:65
PointCloudConfigMarker::marker_name
std::string marker_name
Definition: point_cloud_config_marker.h:86
PointCloudConfigMarker::checked_box_size_menu_
interactive_markers::MenuHandler::EntryHandle checked_box_size_menu_
Definition: point_cloud_config_marker.h:79
PointCloudConfigMarker::MarkerControlConfig::resolution_
double resolution_
Definition: point_cloud_config_marker.h:27
PointCloudConfigMarker::makeBoxMarker
visualization_msgs::Marker makeBoxMarker(geometry_msgs::Vector3 size)
Definition: point_cloud_config_marker.cpp:8
PointCloudConfigMarker::MarkerControlConfig::marker_id
int marker_id
Definition: point_cloud_config_marker.h:26
PointCloudConfigMarker::makeMenuHandler
interactive_markers::MenuHandler makeMenuHandler()
Definition: point_cloud_config_marker.cpp:100
PointCloudConfigMarker
Definition: point_cloud_config_marker.h:13
PointCloudConfigMarker::clearCb
void clearCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: point_cloud_config_marker.cpp:273
PointCloudConfigMarker::changeBoxSizeCb
void changeBoxSizeCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: point_cloud_config_marker.cpp:203
PointCloudConfigMarker::base_frame
std::string base_frame
Definition: point_cloud_config_marker.h:87
interactive_marker_server.h
PointCloudConfigMarker::moveBoxCb
void moveBoxCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: point_cloud_config_marker.cpp:161
PointCloudConfigMarker::changeBoxResolution
void changeBoxResolution(const std_msgs::Float32::ConstPtr &msg)
Definition: point_cloud_config_marker.cpp:192
PointCloudConfigMarker::makeMarkerMsg
visualization_msgs::Marker makeMarkerMsg(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: point_cloud_config_marker.cpp:223
PointCloudConfigMarker::latest_feedback_
visualization_msgs::InteractiveMarkerFeedbackConstPtr latest_feedback_
Definition: point_cloud_config_marker.h:60
PointCloudConfigMarker::change_box_resolution_sub_
ros::Subscriber change_box_resolution_sub_
Definition: point_cloud_config_marker.h:69
PointCloudConfigMarker::server_
std::shared_ptr< interactive_markers::InteractiveMarkerServer > server_
Definition: point_cloud_config_marker.h:59
PointCloudConfigMarker::size_
double size_
Definition: point_cloud_config_marker.h:88
PointCloudConfigMarker::publishMarkerMsg
void publishMarkerMsg(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: point_cloud_config_marker.cpp:240
PointCloudConfigMarker::addBoxCB
void addBoxCB(const std_msgs::Empty::ConstPtr &msg)
Definition: point_cloud_config_marker.cpp:299
PointCloudConfigMarker::box_size_25_menu_
interactive_markers::MenuHandler::EntryHandle box_size_25_menu_
Definition: point_cloud_config_marker.h:82
PointCloudConfigMarker::resolution_20cm_menu_
interactive_markers::MenuHandler::EntryHandle resolution_20cm_menu_
Definition: point_cloud_config_marker.h:74
ros::NodeHandle
ros::Subscriber


jsk_interactive_marker
Author(s): furuta
autogenerated on Fri Aug 2 2024 08:50:24