interactive_marker_helpers.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2011, Willow Garage, Inc.
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions are met:
7  *
8  * * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * * Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * * Neither the name of the Willow Garage, Inc. nor the names of its
14  * contributors may be used to endorse or promote products derived from
15  * this software without specific prior written permission.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
21  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
22  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
25  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27  * POSSIBILITY OF SUCH DAMAGE.
28  */
29 
30 // author: Adam Leeper
31 
32 #ifndef _MARKER_HELPERS_H_
33 #define _MARKER_HELPERS_H_
34 
36 #include <visualization_msgs/InteractiveMarker.h>
37 #include <visualization_msgs/InteractiveMarkerControl.h>
38 #include <visualization_msgs/Marker.h>
39 #include <visualization_msgs/MenuEntry.h>
40 #include <geometry_msgs/PoseStamped.h>
41 
42 // **** 10 ***** 20 ****** 30 ****** 40 ****** 50 ****** 60 ****** 70 ****** 80 ****** 90 ***** 100 ***** 110 ***** 120
43 
44 namespace im_helpers {
45 
47 
48 visualization_msgs::InteractiveMarker makeEmptyMarker( const char *frame_id = "" );
49 
50 visualization_msgs::Marker makeBox( float scale );
51 
52 visualization_msgs::Marker makeSphere( float scale );
53 void add3Dof2DControl( visualization_msgs::InteractiveMarker &msg, bool fixed = false);
54 void add6DofControl( visualization_msgs::InteractiveMarker &msg, bool fixed = false );
55 void addVisible6DofControl( visualization_msgs::InteractiveMarker &msg, bool fixed = false, bool visible = true );
56 
57 
58 visualization_msgs::InteractiveMarkerControl& makeBoxControl( visualization_msgs::InteractiveMarker &msg );
59 
60 visualization_msgs::InteractiveMarkerControl& makeSphereControl( visualization_msgs::InteractiveMarker &msg );
61 
62 visualization_msgs::MenuEntry makeMenuEntry(const char *title);
63 
64 visualization_msgs::MenuEntry makeMenuEntry(const char *title, const char *command, int type );
65 
66 visualization_msgs::InteractiveMarker makePostureMarker( const char *name, const geometry_msgs::PoseStamped &stamped,
67  float scale, bool fixed, bool view_facing );
68 
69 visualization_msgs::InteractiveMarker makeHeadGoalMarker( const char *name, const geometry_msgs::PoseStamped &stamped,
70  float scale);
71 
72 visualization_msgs::InteractiveMarker makeMeshMarker( const std::string &name, const std::string &mesh_resource,
73  const geometry_msgs::PoseStamped &stamped, float scale );
74 
75 visualization_msgs::InteractiveMarker makeMeshMarker( const std::string &name, const std::string &mesh_resource,
76  const geometry_msgs::PoseStamped &stamped, float scale, const std_msgs::ColorRGBA &color );
77 
78 visualization_msgs::InteractiveMarker makeMeshMarker( const std::string &name, const std::string &mesh_resource,
79  const geometry_msgs::PoseStamped &stamped, float scale, const std_msgs::ColorRGBA &color, bool use_color );
80 
81 visualization_msgs::InteractiveMarker makeButtonBox( const char *name, const geometry_msgs::PoseStamped &stamped,
82  float scale, bool fixed, bool view_facing );
83 
84 visualization_msgs::InteractiveMarker makeButtonSphere( const char *name, const geometry_msgs::PoseStamped &stamped,
85  float scale, bool fixed, bool view_facing );
86 
87 visualization_msgs::InteractiveMarker makeButtonSphere( const char *name, const geometry_msgs::PoseStamped &stamped,
88  float scale, bool fixed, bool view_facing, std_msgs::ColorRGBA color );
89 
90 visualization_msgs::InteractiveMarker makeListControl( const char *name, const geometry_msgs::PoseStamped &stamped, int num, int total, float scale);
91 
92 visualization_msgs::InteractiveMarker make6DofMarker( const char *name, const geometry_msgs::PoseStamped &stamped,
93  float scale, bool fixed, bool view_facing );
94 
95 visualization_msgs::InteractiveMarker makePlanarMarker( const char *name, const geometry_msgs::PoseStamped &stamped,
96  float scale, bool fixed );
97 
98 visualization_msgs::InteractiveMarker makeElevatorMarker( const char *name, const geometry_msgs::PoseStamped &stamped,
99  float scale, bool fixed);
100 
101 visualization_msgs::InteractiveMarker makeProjectorMarker( const char *name, const geometry_msgs::PoseStamped &stamped,
102  float scale);
103 
104 
105 visualization_msgs::InteractiveMarker makeBaseMarker( const char *name, const geometry_msgs::PoseStamped &stamped,
106  float scale, bool fixed);
107 
108 visualization_msgs::InteractiveMarker makeGripperMarker( const char *name, const geometry_msgs::PoseStamped &stamped,
109  float scale, float angle, bool view_facing );
110 
111 visualization_msgs::InteractiveMarker makeGripperMarker( const char *name, const geometry_msgs::PoseStamped &stamped,
112  float scale, float angle, bool view_facing, std_msgs::ColorRGBA color );
113 
114 visualization_msgs::InteractiveMarker makeGripperMarker( const char *name, const geometry_msgs::PoseStamped &stamped,
115  float scale, float angle, bool view_facing, std_msgs::ColorRGBA color, bool use_color );
116 
117 visualization_msgs::InteractiveMarker makeGraspMarker( const char * name, const geometry_msgs::PoseStamped &stamped, float scale, PoseState pose_state);
118 
119 visualization_msgs::InteractiveMarker makePosedMultiMeshMarker( const char * name, const geometry_msgs::PoseStamped &stamped,
120  const std::vector< geometry_msgs::PoseStamped> &mesh_poses,
121  const std::vector<std::string> &mesh_paths, const float &scale, const bool button_only = true);
122 
123 visualization_msgs::InteractiveMarker makeFollowerMultiMeshMarker( const char * name, const geometry_msgs::PoseStamped &stamped,
124  const std::vector<std::string> &mesh_frames,
125  const std::vector<std::string> &mesh_paths,
126  const float &scale);
127 
128 
129 
130 } // namespace im_helpers
131 
132 #endif
visualization_msgs::InteractiveMarker makePostureMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed, bool view_facing)
visualization_msgs::InteractiveMarker makePosedMultiMeshMarker(const char *name, const geometry_msgs::PoseStamped &stamped, const std::vector< geometry_msgs::PoseStamped > &mesh_poses, const std::vector< std::string > &mesh_paths, const float &scale, const bool button_only=true)
visualization_msgs::InteractiveMarker makeButtonSphere(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed, bool view_facing)
msg
visualization_msgs::InteractiveMarker makeProjectorMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale)
num
visualization_msgs::Marker makeSphere(float scale)
visualization_msgs::InteractiveMarker makeHeadGoalMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale)
visualization_msgs::MenuEntry makeMenuEntry(const char *title)
visualization_msgs::InteractiveMarker make6DofMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed, bool view_facing)
visualization_msgs::InteractiveMarker makeGripperMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, float angle, bool view_facing)
visualization_msgs::InteractiveMarker makeElevatorMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed)
visualization_msgs::Marker makeBox(float scale)
visualization_msgs::InteractiveMarker makeBaseMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed)
visualization_msgs::InteractiveMarkerControl & makeBoxControl(visualization_msgs::InteractiveMarker &msg)
void addVisible6DofControl(visualization_msgs::InteractiveMarker &msg, bool fixed=false, bool visible=true)
scale
GLfloat angle
ROSLIB_DECL std::string command(const std::string &cmd)
void visible(int state)
title
visualization_msgs::InteractiveMarker makeButtonBox(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed, bool view_facing)
visualization_msgs::InteractiveMarker makeFollowerMultiMeshMarker(const char *name, const geometry_msgs::PoseStamped &stamped, const std::vector< std::string > &mesh_frames, const std::vector< std::string > &mesh_paths, const float &scale)
visualization_msgs::InteractiveMarker makeMeshMarker(const std::string &name, const std::string &mesh_resource, const geometry_msgs::PoseStamped &stamped, float scale)
visualization_msgs::InteractiveMarker makeEmptyMarker(const char *frame_id="")
void add3Dof2DControl(visualization_msgs::InteractiveMarker &msg, bool fixed=false)
visualization_msgs::InteractiveMarker makeGraspMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, PoseState pose_state)
void add6DofControl(visualization_msgs::InteractiveMarker &msg, bool fixed=false)
visualization_msgs::InteractiveMarkerControl & makeSphereControl(visualization_msgs::InteractiveMarker &msg)
visualization_msgs::InteractiveMarker makePlanarMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed)
visualization_msgs::InteractiveMarker makeListControl(const char *name, const geometry_msgs::PoseStamped &stamped, int num, int total, float scale)


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