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 };
interactive_markers::MenuHandler::EntryHandle box_size_menu_
interactive_markers::MenuHandler::EntryHandle checked_box_size_menu_
visualization_msgs::Marker makeBoxMarker(geometry_msgs::Vector3 size)
MarkerControlConfig marker_control_config
void updatePoseCB(const geometry_msgs::PoseStamped::ConstPtr &pose)
interactive_markers::MenuHandler makeMenuHandler()
visualization_msgs::InteractiveMarker makeBoxInteractiveMarker(MarkerControlConfig mconfig, std::string name)
void clearCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
void changeBoxSizeCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
void changeBoxResolution(const std_msgs::Float32::ConstPtr &msg)
void moveBoxCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
ros::Subscriber change_box_resolution_sub_
visualization_msgs::Marker makeMarkerMsg(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
std::shared_ptr< interactive_markers::InteractiveMarkerServer > server_
visualization_msgs::InteractiveMarkerFeedbackConstPtr latest_feedback_
void publishMarkerMsg(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
void addBoxCB(const std_msgs::Empty::ConstPtr &msg)
interactive_markers::MenuHandler::EntryHandle box_size_25_menu_
interactive_markers::MenuHandler::EntryHandle resolution_20cm_menu_
interactive_markers::MenuHandler::EntryHandle resolution_10cm_menu_
void publishCurrentPose(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
interactive_markers::MenuHandler::EntryHandle resolution_menu_
void clearBoxCB(const std_msgs::Empty::ConstPtr &msg)
interactive_markers::MenuHandler::EntryHandle resolution_5cm_menu_
interactive_markers::MenuHandler::EntryHandle box_size_50_menu_
void cancelCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
visualization_msgs::Marker makeTextMarker(geometry_msgs::Vector3 size)
interactive_markers::MenuHandler::EntryHandle box_size_100_menu_
interactive_markers::MenuHandler::EntryHandle checked_resolution_menu_
void changeBoxSize(geometry_msgs::Vector3 size)
interactive_markers::MenuHandler menu_handler
void changeResolutionCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)


jsk_interactive_marker
Author(s): furuta
autogenerated on Sat Mar 20 2021 03:03:33