Go to the documentation of this file.
5 #include <jsk_interactive_marker/SetPose.h>
6 #include <jsk_interactive_marker/MarkerSetPose.h>
8 #include <geometry_msgs/PoseStamped.h>
9 #include <std_msgs/Empty.h>
10 #include <std_msgs/Float32.h>
25 geometry_msgs::Vector3
size;
30 visualization_msgs::Marker
makeBoxMarker(geometry_msgs::Vector3 size);
31 visualization_msgs::Marker
makeTextMarker(geometry_msgs::Vector3 size);
33 void moveBoxCb(
const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
35 visualization_msgs::Marker
makeMarkerMsg(
const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
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);
43 void changeResolutionCb(
const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
45 void changeBoxSizeCb(
const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
50 void publishCurrentPose(
const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
52 void updatePoseCB(
const geometry_msgs::PoseStamped::ConstPtr &pose);
53 void addBoxCB(
const std_msgs::Empty::ConstPtr &msg);
59 std::shared_ptr<interactive_markers::InteractiveMarkerServer>
server_;
void updateBoxInteractiveMarker()
interactive_markers::MenuHandler::EntryHandle resolution_10cm_menu_
MarkerControlConfig(double s)
void clearBoxCB(const std_msgs::Empty::ConstPtr &msg)
void publishCurrentPose(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
geometry_msgs::Vector3 size
interactive_markers::MenuHandler::EntryHandle resolution_5cm_menu_
interactive_markers::MenuHandler::EntryHandle resolution_menu_
ros::Subscriber change_box_size_sub_
interactive_markers::MenuHandler::EntryHandle box_size_50_menu_
ros::Subscriber add_box_sub_
ros::Subscriber clear_box_sub_
void changeBoxSize(geometry_msgs::Vector3 size)
void cancelCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
visualization_msgs::Marker makeTextMarker(geometry_msgs::Vector3 size)
void changeResolutionCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
interactive_markers::MenuHandler::EntryHandle box_size_100_menu_
interactive_markers::MenuHandler::EntryHandle checked_resolution_menu_
interactive_markers::MenuHandler::EntryHandle box_size_menu_
interactive_markers::MenuHandler menu_handler
MarkerControlConfig marker_control_config
ros::Publisher current_pose_pub_
void updatePoseCB(const geometry_msgs::PoseStamped::ConstPtr &pose)
visualization_msgs::InteractiveMarker makeBoxInteractiveMarker(MarkerControlConfig mconfig, std::string name)
ros::Subscriber pose_update_sub_
interactive_markers::MenuHandler::EntryHandle checked_box_size_menu_
visualization_msgs::Marker makeBoxMarker(geometry_msgs::Vector3 size)
interactive_markers::MenuHandler makeMenuHandler()
void clearCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
void changeBoxSizeCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
void moveBoxCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
void changeBoxResolution(const std_msgs::Float32::ConstPtr &msg)
visualization_msgs::Marker makeMarkerMsg(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
visualization_msgs::InteractiveMarkerFeedbackConstPtr latest_feedback_
ros::Subscriber change_box_resolution_sub_
std::shared_ptr< interactive_markers::InteractiveMarkerServer > server_
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_