9 visualization_msgs::Marker
marker;
10 marker.type = visualization_msgs::Marker::LINE_STRIP;
11 marker.scale.x = 0.03;
19 geometry_msgs::Point point1;
21 geometry_msgs::Point point2;
24 geometry_msgs::Point point3;
28 point3.y = - point3.y;
32 marker.points.push_back(point1);
33 marker.points.push_back(point2);
34 marker.points.push_back(point3);
35 marker.points.push_back(point1);
40 geometry_msgs::Pose
pose;
42 pose.position.x = -0.65;
43 pose.position.y = 0.65;
44 pose.position.z = -0.910;
46 pose.position.x = -0.8;
47 pose.position.y = 0.0;
48 pose.position.z = -0.910;
50 pose.orientation.w = 1.0;
51 return makeFootMarker(pose);
54 geometry_msgs::Pose
pose;
56 pose.position.x = -0.65;
57 pose.position.y = 0.35;
58 pose.position.z = -0.910;
60 pose.position.x = -0.8;
61 pose.position.y = -0.3;
62 pose.position.z = -0.910;
64 pose.orientation.w = 1.0;
65 return makeFootMarker(pose);
69 visualization_msgs::Marker
marker;
70 marker.type = visualization_msgs::Marker::CUBE;
71 double PADDING_PARAM = 0.01;
72 marker.scale.x = 0.27 + PADDING_PARAM;
73 marker.scale.y = 0.14 + PADDING_PARAM;
74 marker.scale.z = 0.05;
88 visualization_msgs::InteractiveMarker mk;
89 mk.header.frame_id =
"/map";
91 mk.name = marker_name;
95 mk.pose.position.z = 0.910;
97 visualization_msgs::InteractiveMarkerControl triangleMarker;
98 triangleMarker.always_visible =
true;
99 triangleMarker.markers.push_back( makeTriangleMarker());
100 triangleMarker.markers.push_back( makeRFootMarker());
101 triangleMarker.markers.push_back( makeLFootMarker());
102 mk.controls.push_back( triangleMarker );
115 updateBoxInteractiveMarker();
127 visualization_msgs::InteractiveMarker boxIM = makeInteractiveMarker();
129 server_->insert(boxIM,
131 menu_handler.apply(*server_, marker_name);
132 server_->applyChanges();
152 int main(
int argc,
char** argv)
154 ros::init(argc, argv,
"triangle_foot_marker");
ROSCPP_DECL void init(int &argc, char **argv, const std::string &name, uint32_t options=0)
ROSCPP_DECL const std::string & getName()
ROSCPP_DECL void spin(Spinner &spinner)
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val) const
EntryHandle insert(const std::string &title, const FeedbackCallback &feedback_cb)
void add6DofControl(visualization_msgs::InteractiveMarker &msg, bool fixed=false)