37 const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback )
40 << feedback->pose.position.x <<
", " << feedback->pose.position.y
41 <<
", " << feedback->pose.position.z );
44 int main(
int argc,
char** argv)
52 visualization_msgs::InteractiveMarker
int_marker;
53 int_marker.header.frame_id =
"base_link";
55 int_marker.name =
"my_marker";
56 int_marker.description =
"Simple 1-DOF Control";
60 box_marker.type = visualization_msgs::Marker::CUBE;
61 box_marker.scale.x = 0.45;
62 box_marker.scale.y = 0.45;
63 box_marker.scale.z = 0.45;
64 box_marker.color.r = 0.5;
65 box_marker.color.g = 0.5;
66 box_marker.color.b = 0.5;
67 box_marker.color.a = 1.0;
70 visualization_msgs::InteractiveMarkerControl
box_control;
71 box_control.always_visible =
true;
72 box_control.markers.push_back( box_marker );
75 int_marker.controls.push_back( box_control );
81 rotate_control.name =
"move_x";
82 rotate_control.interaction_mode =
83 visualization_msgs::InteractiveMarkerControl::MOVE_AXIS;
86 int_marker.controls.push_back(rotate_control);
void processFeedback(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL void spin(Spinner &spinner)
int main(int argc, char **argv)
INTERACTIVE_MARKERS_PUBLIC void insert(const visualization_msgs::InteractiveMarker &int_marker)
#define ROS_INFO_STREAM(args)
INTERACTIVE_MARKERS_PUBLIC void applyChanges()