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
im_helpers::makeMeshMarker
visualization_msgs::InteractiveMarker makeMeshMarker(const std::string &name, const std::string &mesh_resource, const geometry_msgs::PoseStamped &stamped, float scale)
Definition: interactive_marker_helpers.cpp:308
im_helpers::PoseState
PoseState
Definition: interactive_marker_helpers.h:46
im_helpers::makePosedMultiMeshMarker
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)
Definition: interactive_marker_helpers.cpp:752
im_helpers::makeBox
visualization_msgs::Marker makeBox(float scale)
Definition: interactive_marker_helpers.cpp:64
im_helpers::makeSphere
visualization_msgs::Marker makeSphere(float scale)
Definition: interactive_marker_helpers.cpp:80
im_helpers::makeGripperMarker
visualization_msgs::InteractiveMarker makeGripperMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, float angle, bool view_facing)
Definition: interactive_marker_helpers.cpp:620
im_helpers::add3Dof2DControl
void add3Dof2DControl(visualization_msgs::InteractiveMarker &msg, bool fixed=false)
Definition: interactive_marker_helpers.cpp:96
im_helpers::makeBoxControl
visualization_msgs::InteractiveMarkerControl & makeBoxControl(visualization_msgs::InteractiveMarker &msg)
Definition: interactive_marker_helpers.cpp:206
im_helpers::makePlanarMarker
visualization_msgs::InteractiveMarker makePlanarMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed)
Definition: interactive_marker_helpers.cpp:449
tools.h
im_helpers::makeFollowerMultiMeshMarker
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)
Definition: interactive_marker_helpers.cpp:802
im_helpers::makeProjectorMarker
visualization_msgs::InteractiveMarker makeProjectorMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale)
Definition: interactive_marker_helpers.cpp:517
im_helpers::VALID
@ VALID
Definition: interactive_marker_helpers.h:46
im_helpers::add6DofControl
void add6DofControl(visualization_msgs::InteractiveMarker &msg, bool fixed=false)
Definition: interactive_marker_helpers.cpp:132
im_helpers::addVisible6DofControl
void addVisible6DofControl(visualization_msgs::InteractiveMarker &msg, bool fixed=false, bool visible=true)
Definition: interactive_marker_helpers.cpp:167
im_helpers
Definition: interactive_marker_helpers.h:44
im_helpers::makeBaseMarker
visualization_msgs::InteractiveMarker makeBaseMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed)
Definition: interactive_marker_helpers.cpp:542
im_helpers::makeButtonBox
visualization_msgs::InteractiveMarker makeButtonBox(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed, bool view_facing)
Definition: interactive_marker_helpers.cpp:321
im_helpers::makeListControl
visualization_msgs::InteractiveMarker makeListControl(const char *name, const geometry_msgs::PoseStamped &stamped, int num, int total, float scale)
Definition: interactive_marker_helpers.cpp:365
im_helpers::makeElevatorMarker
visualization_msgs::InteractiveMarker makeElevatorMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed)
Definition: interactive_marker_helpers.cpp:480
im_helpers::UNTESTED
@ UNTESTED
Definition: interactive_marker_helpers.h:46
im_helpers::makeGraspMarker
visualization_msgs::InteractiveMarker makeGraspMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, PoseState pose_state)
Definition: interactive_marker_helpers.cpp:697
im_helpers::makeMenuEntry
visualization_msgs::MenuEntry makeMenuEntry(const char *title)
Definition: interactive_marker_helpers.cpp:226
im_helpers::make6DofMarker
visualization_msgs::InteractiveMarker make6DofMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed, bool view_facing)
Definition: interactive_marker_helpers.cpp:420
dummy_camera.frame_id
frame_id
Definition: dummy_camera.py:10
im_helpers::makeHeadGoalMarker
visualization_msgs::InteractiveMarker makeHeadGoalMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale)
Definition: interactive_marker_helpers.cpp:260
im_helpers::makeSphereControl
visualization_msgs::InteractiveMarkerControl & makeSphereControl(visualization_msgs::InteractiveMarker &msg)
Definition: interactive_marker_helpers.cpp:216
im_helpers::makeEmptyMarker
visualization_msgs::InteractiveMarker makeEmptyMarker(const char *frame_id="")
Definition: interactive_marker_helpers.cpp:55
im_helpers::makePostureMarker
visualization_msgs::InteractiveMarker makePostureMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed, bool view_facing)
Definition: interactive_marker_helpers.cpp:243
im_helpers::INVALID
@ INVALID
Definition: interactive_marker_helpers.h:46
im_helpers::makeButtonSphere
visualization_msgs::InteractiveMarker makeButtonSphere(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed, bool view_facing)
Definition: interactive_marker_helpers.cpp:338


jsk_interactive_marker
Author(s): furuta
autogenerated on Fri Aug 2 2024 08:50:24