interactive_marker_interface.h
Go to the documentation of this file.
1 #include <ros/ros.h>
2 
3 #include <tf/tf.h>
4 //#include <tf/transform_listener.h>
6 
8 
10 #include <jsk_interactive_marker/SetPose.h>
11 #include <jsk_interactive_marker/MarkerSetPose.h>
12 
13 #include <math.h>
14 #include <jsk_interactive_marker/MarkerMenu.h>
15 #include <jsk_interactive_marker/MarkerPose.h>
16 
17 #include <std_msgs/Int8.h>
18 #include "urdf_parser/urdf_parser.h"
19 #if ROS_VERSION_MINIMUM(1,12,0) // kinetic
20 #include <urdf_world/types.h>
21 #else
22 namespace urdf {
24 }
25 #endif
26 
28  private:
29  struct MeshProperty{
30  std::string link_name;
31  std::string mesh_file;
32  geometry_msgs::Point position;
33  geometry_msgs::Quaternion orientation;
34 
35  };
36 
37  struct UrdfProperty{
39  std::string root_link_name;
40  geometry_msgs::Pose pose;
41  double scale;
42  std_msgs::ColorRGBA color;
44  };
45 
46  public:
47  visualization_msgs::InteractiveMarker make6DofControlMarker( std::string name, geometry_msgs::PoseStamped &stamped, float scale, bool fixed_position, bool fixed_rotation);
48 
49  void proc_feedback( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
50  void proc_feedback( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback, int type );
51  void pub_marker_tf ( std_msgs::Header header, geometry_msgs::Pose pose);
52  void pub_marker_pose ( std_msgs::Header header, geometry_msgs::Pose pose, std::string name, int type );
53 
54  void pub_marker_menu(std::string marker,int menu, int type);
55  void pub_marker_menu(std::string marker,int menu);
56 
57  void pub_marker_menuCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback, int menu );
58 
59  void pub_marker_menuCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback, int menu, int type);
60 
61  void IMSizeLargeCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
62 
63  void IMSizeMiddleCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
64 
65  void IMSizeSmallCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
66 
67  void changeMoveModeCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
68 
69  void changeMoveModeCb1( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
70 
71  void changeMoveModeCb2( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
72 
73  void changeForceModeCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
74 
75  void changeForceModeCb1( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
76 
77  void changeForceModeCb2( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
78 
79 
80  void targetPointMenuCB( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
81 
82  void lookAutomaticallyMenuCB( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
83 
84  void ConstraintCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
85 
86  void modeCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
87 
88  void changeMoveArm( std::string m_name, int menu );
89 
90  void setOriginCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback, bool origin_hand);
91 
92  void ikmodeCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
93  void toggleIKModeCb( const std_msgs::EmptyConstPtr &msg);
94  void useTorsoCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
95 
96  void usingIKCb( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback );
97 
98  void marker_menu_cb( const jsk_interactive_marker::MarkerMenuConstPtr &msg);
99 
100  void updateHeadGoal( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
101  void updateBase( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback);
102  void updateFinger( const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback, std::string hand);
103 
104  visualization_msgs::InteractiveMarker makeBaseMarker( const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed);
105 
106 
107 
108  void changeMarkerForceMode( std::string mk_name , int im_mode);
109 
110  void toggleStartIKCb( const std_msgs::EmptyConstPtr &msg);
111 
112  void initControlMarkers(void);
113 
114  void initBodyMarkers(void);
115 
116  void initHandler(void);
117 
118  void changeMarkerMoveMode( std::string mk_name , int im_mode);
119 
120  void changeMarkerMoveMode( std::string mk_name , int im_mode, float mk_size);
121 
122  void changeMarkerMoveMode( std::string mk_name , int im_mode, float mk_size, geometry_msgs::PoseStamped dist_pose);
123 
124  void changeMarkerOperationModelMode( std::string mk_name );
125 
126  //void addHandMarker(visualization_msgs::InteractiveMarkerControl &imc,std::vector < MeshProperty > mesh_vec, double mk_size);
127  void addHandMarker(visualization_msgs::InteractiveMarker &im,std::vector < UrdfProperty > urdf_vec);
128  void addSphereMarker(visualization_msgs::InteractiveMarker &im, double scale, std_msgs::ColorRGBA color);
129  void makeCenterSphere(visualization_msgs::InteractiveMarker &mk, double mk_size);
130 
132 
133  bool markers_set_cb ( jsk_interactive_marker::MarkerSetPose::Request &req,
134  jsk_interactive_marker::MarkerSetPose::Response &res );
135 
136  bool markers_del_cb ( jsk_interactive_marker::MarkerSetPose::Request &req,
137  jsk_interactive_marker::MarkerSetPose::Response &res );
138 
139  void move_marker_cb ( const geometry_msgs::PoseStampedConstPtr &msg);
140 
141  bool set_cb ( jsk_interactive_marker::MarkerSetPose::Request &req,
142  jsk_interactive_marker::MarkerSetPose::Response &res );
143 
144  bool reset_cb ( jsk_interactive_marker::SetPose::Request &req,
145  jsk_interactive_marker::SetPose::Response &res );
146 
147  void loadMeshFromYaml(XmlRpc::XmlRpcValue val, std::string name, std::vector<MeshProperty>& mesh);
148  void loadUrdfFromYaml(XmlRpc::XmlRpcValue val, std::string name, std::vector<UrdfProperty>& mesh);
150 
151  void makeIMVisible(visualization_msgs::InteractiveMarker &im);
152 
153  private:
154 
157  std::shared_ptr<interactive_markers::InteractiveMarkerServer> server_;
169  //tf::TransformListener tfl_;
172 
182 
186 
188 
192 
193  // parameters
194  std::string marker_name;
195  std::string server_name;
196  std::string base_frame;
197  std::string move_base_frame;
198  std::string target_frame;
203 
206 
211 
212 
215 
219  int use_arm;
220 
221 
222 
223  std::list<visualization_msgs::InteractiveMarker> imlist;
224  //interactive_markers::MenuHandler menu_handler;
225 
226  struct GripperState{
227  GripperState() : on_(false), view_facing_(false), edit_control_(false), torso_frame_(false) {}
228 
229  bool on_;
233  };
234 
235  struct ControlState{
236  ControlState() : posture_r_(false), posture_l_(false), torso_on_(false), head_on_(false),
238 
239  void print()
240  {
241  ROS_DEBUG_NAMED("control_state", "gripper: on[%d|%d][%d], edit[%d|%d][%d], torso[%d|%d]",
243  ROS_DEBUG_NAMED("control_state", "posture[%d|%d] torso[%d] base[%d] head[%d] projector[%d]",
245  }
246 
249 
252 
253  geometry_msgs::PoseStamped marker_pose_;
254 
257  bool torso_on_;
258  bool head_on_;
262  bool base_on_;
269  };
270 
274 
275 
277 
278  geometry_msgs::PoseStamped head_goal_pose_;
279 
280  std::string hand_type_;
281 
282  std::string head_link_frame_;
283  std::string head_mesh_;
284  std::vector< MeshProperty > rhand_mesh_, lhand_mesh_;
285  std::vector< UrdfProperty > rhand_urdf_, lhand_urdf_;
286 
287 };
288 
InteractiveMarkerInterface::pub_marker_menu
void pub_marker_menu(std::string marker, int menu, int type)
Definition: interactive_marker_interface.cpp:182
InteractiveMarkerInterface::changeForceModeCb2
void changeForceModeCb2(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:242
InteractiveMarkerInterface::changeMarkerOperationModelMode
void changeMarkerOperationModelMode(std::string mk_name)
Definition: interactive_marker_interface.cpp:1321
InteractiveMarkerInterface::modeCb
void modeCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:375
InteractiveMarkerInterface::h_mode_last2
interactive_markers::MenuHandler::EntryHandle h_mode_last2
Definition: interactive_marker_interface.h:201
InteractiveMarkerInterface::reset_cb
bool reset_cb(jsk_interactive_marker::SetPose::Request &req, jsk_interactive_marker::SetPose::Response &res)
Definition: interactive_marker_interface.cpp:1600
InteractiveMarkerInterface::ControlState::dual_grippers_
GripperState dual_grippers_
Definition: interactive_marker_interface.h:266
interactive_markers::MenuHandler::EntryHandle
uint32_t EntryHandle
InteractiveMarkerInterface::proc_feedback
void proc_feedback(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:112
InteractiveMarkerInterface::head_mesh_
std::string head_mesh_
Definition: interactive_marker_interface.h:283
InteractiveMarkerInterface::h_mode_ikmode
int h_mode_ikmode
Definition: interactive_marker_interface.h:218
ros::Publisher
InteractiveMarkerInterface::UrdfProperty::color
std_msgs::ColorRGBA color
Definition: interactive_marker_interface.h:42
InteractiveMarkerInterface::menu_handler_force1
interactive_markers::MenuHandler menu_handler_force1
Definition: interactive_marker_interface.h:177
boost::shared_ptr< ModelInterface >
InteractiveMarkerInterface::ControlState::MoveOriginState
MoveOriginState
Definition: interactive_marker_interface.h:248
InteractiveMarkerInterface::makeBaseMarker
visualization_msgs::InteractiveMarker makeBaseMarker(const char *name, const geometry_msgs::PoseStamped &stamped, float scale, bool fixed)
Definition: interactive_marker_interface.cpp:839
InteractiveMarkerInterface::sub_menu_handle
interactive_markers::MenuHandler::EntryHandle sub_menu_handle
Definition: interactive_marker_interface.h:179
InteractiveMarkerInterface::ControlState::MoveArmState
MoveArmState
Definition: interactive_marker_interface.h:247
InteractiveMarkerInterface::ControlState::l_gripper_
GripperState l_gripper_
Definition: interactive_marker_interface.h:268
InteractiveMarkerInterface::make6DofControlMarker
visualization_msgs::InteractiveMarker make6DofControlMarker(std::string name, geometry_msgs::PoseStamped &stamped, float scale, bool fixed_position, bool fixed_rotation)
Definition: interactive_marker_interface.cpp:30
InteractiveMarkerInterface::initBodyMarkers
void initBodyMarkers(void)
Definition: interactive_marker_interface.cpp:723
InteractiveMarkerInterface::serv_markers_del_
ros::ServiceServer serv_markers_del_
Definition: interactive_marker_interface.h:164
InteractiveMarkerInterface::head_goal_pose_
geometry_msgs::PoseStamped head_goal_pose_
Definition: interactive_marker_interface.h:278
InteractiveMarkerInterface::UrdfProperty
Definition: interactive_marker_interface.h:37
InteractiveMarkerInterface::UrdfProperty::use_original_color
bool use_original_color
Definition: interactive_marker_interface.h:43
InteractiveMarkerInterface::head_auto_look_handle_
interactive_markers::MenuHandler::EntryHandle head_auto_look_handle_
Definition: interactive_marker_interface.h:185
ros.h
InteractiveMarkerInterface::changeMarkerMoveMode
void changeMarkerMoveMode(std::string mk_name, int im_mode)
Definition: interactive_marker_interface.cpp:1202
InteractiveMarkerInterface::use_arm
int use_arm
Definition: interactive_marker_interface.h:219
InteractiveMarkerInterface::ControlState::ControlState
ControlState()
Definition: interactive_marker_interface.h:236
InteractiveMarkerInterface::makeCenterSphere
void makeCenterSphere(visualization_msgs::InteractiveMarker &mk, double mk_size)
Definition: interactive_marker_interface.cpp:1182
InteractiveMarkerInterface::ControlState::base_on_
bool base_on_
Definition: interactive_marker_interface.h:262
InteractiveMarkerInterface::pub_
ros::Publisher pub_
Definition: interactive_marker_interface.h:158
InteractiveMarkerInterface::MeshProperty::link_name
std::string link_name
Definition: interactive_marker_interface.h:30
InteractiveMarkerInterface::GripperState::GripperState
GripperState()
Definition: interactive_marker_interface.h:227
InteractiveMarkerInterface::ControlState::print
void print()
Definition: interactive_marker_interface.h:239
InteractiveMarkerInterface::sub_menu_handle2
interactive_markers::MenuHandler::EntryHandle sub_menu_handle2
Definition: interactive_marker_interface.h:180
InteractiveMarkerInterface::rhand_urdf_
std::vector< UrdfProperty > rhand_urdf_
Definition: interactive_marker_interface.h:285
InteractiveMarkerInterface::pub_marker_pose
void pub_marker_pose(std_msgs::Header header, geometry_msgs::Pose pose, std::string name, int type)
Definition: interactive_marker_interface.cpp:154
InteractiveMarkerInterface::h_mode_constrained
int h_mode_constrained
Definition: interactive_marker_interface.h:217
InteractiveMarkerInterface::base_frame
std::string base_frame
Definition: interactive_marker_interface.h:196
InteractiveMarkerInterface::toggleStartIKCb
void toggleStartIKCb(const std_msgs::EmptyConstPtr &msg)
Definition: interactive_marker_interface.cpp:351
InteractiveMarkerInterface::h_mode_last3
interactive_markers::MenuHandler::EntryHandle h_mode_last3
Definition: interactive_marker_interface.h:202
menu_handler.h
InteractiveMarkerInterface::markers_del_cb
bool markers_del_cb(jsk_interactive_marker::MarkerSetPose::Request &req, jsk_interactive_marker::MarkerSetPose::Response &res)
Definition: interactive_marker_interface.cpp:1537
InteractiveMarkerInterface::usingIKCb
void usingIKCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:335
InteractiveMarkerInterface::useTorsoCb
void useTorsoCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:312
InteractiveMarkerInterface::lhand_mesh_
std::vector< MeshProperty > lhand_mesh_
Definition: interactive_marker_interface.h:284
InteractiveMarkerInterface::ConstraintCb
void ConstraintCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:287
InteractiveMarkerInterface::use_body_marker_
bool use_body_marker_
Definition: interactive_marker_interface.h:272
InteractiveMarkerInterface::menu_head_target_
interactive_markers::MenuHandler menu_head_target_
Definition: interactive_marker_interface.h:187
InteractiveMarkerInterface::GripperState::torso_frame_
bool torso_frame_
Definition: interactive_marker_interface.h:232
InteractiveMarkerInterface::head_link_frame_
std::string head_link_frame_
Definition: interactive_marker_interface.h:282
InteractiveMarkerInterface::ControlState::posture_l_
bool posture_l_
Definition: interactive_marker_interface.h:256
InteractiveMarkerInterface::head_target_handle_
interactive_markers::MenuHandler::EntryHandle head_target_handle_
Definition: interactive_marker_interface.h:184
InteractiveMarkerInterface::updateBase
void updateBase(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:536
transform_broadcaster.h
InteractiveMarkerInterface::menu_handler_force
interactive_markers::MenuHandler menu_handler_force
Definition: interactive_marker_interface.h:176
InteractiveMarkerInterface::rotation_t_menu_
interactive_markers::MenuHandler::EntryHandle rotation_t_menu_
Definition: interactive_marker_interface.h:204
ros::ServiceServer
InteractiveMarkerInterface::fix_marker
bool fix_marker
Definition: interactive_marker_interface.h:199
InteractiveMarkerInterface::sub_menu_handle_ik
interactive_markers::MenuHandler::EntryHandle sub_menu_handle_ik
Definition: interactive_marker_interface.h:181
InteractiveMarkerInterface::rhand_mesh_
std::vector< MeshProperty > rhand_mesh_
Definition: interactive_marker_interface.h:284
InteractiveMarkerInterface::changeMoveArm
void changeMoveArm(std::string m_name, int menu)
Definition: interactive_marker_interface.cpp:399
InteractiveMarkerInterface::stop_ik_menu_
interactive_markers::MenuHandler::EntryHandle stop_ik_menu_
Definition: interactive_marker_interface.h:214
InteractiveMarkerInterface::GripperState
Definition: interactive_marker_interface.h:226
InteractiveMarkerInterface::use_torso_nil_menu_
interactive_markers::MenuHandler::EntryHandle use_torso_nil_menu_
Definition: interactive_marker_interface.h:209
interactive_markers::MenuHandler
InteractiveMarkerInterface::ControlState::move_origin_state_
MoveOriginState move_origin_state_
Definition: interactive_marker_interface.h:251
InteractiveMarkerInterface::loadUrdfFromYaml
void loadUrdfFromYaml(XmlRpc::XmlRpcValue val, std::string name, std::vector< UrdfProperty > &mesh)
Definition: interactive_marker_interface.cpp:1435
InteractiveMarkerInterface::ControlState::look_auto_on_
bool look_auto_on_
Definition: interactive_marker_interface.h:260
InteractiveMarkerInterface::ControlState::torso_on_
bool torso_on_
Definition: interactive_marker_interface.h:257
InteractiveMarkerInterface::lookAutomaticallyMenuCB
void lookAutomaticallyMenuCB(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:267
InteractiveMarkerInterface::use_center_sphere_
bool use_center_sphere_
Definition: interactive_marker_interface.h:273
InteractiveMarkerInterface::MeshProperty::mesh_file
std::string mesh_file
Definition: interactive_marker_interface.h:31
InteractiveMarkerInterface::control_state_
ControlState control_state_
Definition: interactive_marker_interface.h:276
InteractiveMarkerInterface::changeMarkerForceMode
void changeMarkerForceMode(std::string mk_name, int im_mode)
Definition: interactive_marker_interface.cpp:578
InteractiveMarkerInterface::ControlState::marker_pose_
geometry_msgs::PoseStamped marker_pose_
Definition: interactive_marker_interface.h:253
InteractiveMarkerInterface::h_mode_last
interactive_markers::MenuHandler::EntryHandle h_mode_last
Definition: interactive_marker_interface.h:200
InteractiveMarkerInterface::changeMoveModeCb1
void changeMoveModeCb1(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:220
InteractiveMarkerInterface::use_finger_marker_
bool use_finger_marker_
Definition: interactive_marker_interface.h:271
ROS_DEBUG_NAMED
#define ROS_DEBUG_NAMED(name,...)
tf::TransformBroadcaster
InteractiveMarkerInterface::pnh_
ros::NodeHandle pnh_
Definition: interactive_marker_interface.h:156
InteractiveMarkerInterface::changeMoveModeCb2
void changeMoveModeCb2(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:225
InteractiveMarkerInterface::menu_handler_force2
interactive_markers::MenuHandler menu_handler_force2
Definition: interactive_marker_interface.h:178
InteractiveMarkerInterface::h_mode_rightarm
int h_mode_rightarm
Definition: interactive_marker_interface.h:216
InteractiveMarkerInterface::GripperState::view_facing_
bool view_facing_
Definition: interactive_marker_interface.h:230
InteractiveMarkerInterface::ControlState::move_arm_
MoveArmState move_arm_
Definition: interactive_marker_interface.h:250
InteractiveMarkerInterface::UrdfProperty::model
urdf::ModelInterfaceSharedPtr model
Definition: interactive_marker_interface.h:38
InteractiveMarkerInterface::InteractiveMarkerInterface
InteractiveMarkerInterface()
Definition: interactive_marker_interface.cpp:1369
InteractiveMarkerInterface::GripperState::on_
bool on_
Definition: interactive_marker_interface.h:229
InteractiveMarkerInterface::use_torso_menu_
interactive_markers::MenuHandler::EntryHandle use_torso_menu_
Definition: interactive_marker_interface.h:207
InteractiveMarkerInterface::initHandler
void initHandler(void)
Definition: interactive_marker_interface.cpp:879
InteractiveMarkerInterface::pub_marker_menuCb
void pub_marker_menuCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback, int menu)
Definition: interactive_marker_interface.cpp:166
InteractiveMarkerInterface::loadMeshFromYaml
void loadMeshFromYaml(XmlRpc::XmlRpcValue val, std::string name, std::vector< MeshProperty > &mesh)
InteractiveMarkerInterface::ControlState
Definition: interactive_marker_interface.h:235
InteractiveMarkerInterface::addSphereMarker
void addSphereMarker(visualization_msgs::InteractiveMarker &im, double scale, std_msgs::ColorRGBA color)
Definition: interactive_marker_interface.cpp:1163
InteractiveMarkerInterface::ControlState::LARM
@ LARM
Definition: interactive_marker_interface.h:247
InteractiveMarkerInterface::initControlMarkers
void initControlMarkers(void)
Definition: interactive_marker_interface.cpp:776
InteractiveMarkerInterface::ControlState::DESIGNATED_ORIGIN
@ DESIGNATED_ORIGIN
Definition: interactive_marker_interface.h:248
ros::ServiceClient
InteractiveMarkerInterface::menu_finger_l_
interactive_markers::MenuHandler menu_finger_l_
Definition: interactive_marker_interface.h:191
InteractiveMarkerInterface::move_base_frame
std::string move_base_frame
Definition: interactive_marker_interface.h:197
InteractiveMarkerInterface::lhand_urdf_
std::vector< UrdfProperty > lhand_urdf_
Definition: interactive_marker_interface.h:285
InteractiveMarkerInterface::menu_handler
interactive_markers::MenuHandler menu_handler
Definition: interactive_marker_interface.h:173
InteractiveMarkerInterface::MeshProperty
Definition: interactive_marker_interface.h:29
InteractiveMarkerInterface::ControlState::r_finger_on_
bool r_finger_on_
Definition: interactive_marker_interface.h:264
InteractiveMarkerInterface::pub_update_
ros::Publisher pub_update_
Definition: interactive_marker_interface.h:159
InteractiveMarkerInterface::dynamic_tf_publisher_client_
ros::ServiceClient dynamic_tf_publisher_client_
Definition: interactive_marker_interface.h:171
InteractiveMarkerInterface::ControlState::r_gripper_
GripperState r_gripper_
Definition: interactive_marker_interface.h:267
InteractiveMarkerInterface::UrdfProperty::pose
geometry_msgs::Pose pose
Definition: interactive_marker_interface.h:40
InteractiveMarkerInterface::ControlState::l_finger_on_
bool l_finger_on_
Definition: interactive_marker_interface.h:265
InteractiveMarkerInterface::menu_handler1
interactive_markers::MenuHandler menu_handler1
Definition: interactive_marker_interface.h:174
InteractiveMarkerInterface::menu_finger_r_
interactive_markers::MenuHandler menu_finger_r_
Definition: interactive_marker_interface.h:190
InteractiveMarkerInterface::ControlState::RARM
@ RARM
Definition: interactive_marker_interface.h:247
InteractiveMarkerInterface::makeIMVisible
void makeIMVisible(visualization_msgs::InteractiveMarker &im)
Definition: interactive_marker_interface.cpp:1628
InteractiveMarkerInterface::serv_markers_set_
ros::ServiceServer serv_markers_set_
Definition: interactive_marker_interface.h:163
InteractiveMarkerInterface::GripperState::edit_control_
bool edit_control_
Definition: interactive_marker_interface.h:231
InteractiveMarkerInterface::use_fullbody_menu_
interactive_markers::MenuHandler::EntryHandle use_fullbody_menu_
Definition: interactive_marker_interface.h:210
InteractiveMarkerInterface::sub_toggle_ik_mode_
ros::Subscriber sub_toggle_ik_mode_
Definition: interactive_marker_interface.h:168
InteractiveMarkerInterface::start_ik_menu_
interactive_markers::MenuHandler::EntryHandle start_ik_menu_
Definition: interactive_marker_interface.h:213
tf.h
InteractiveMarkerInterface::hand_type_
std::string hand_type_
Definition: interactive_marker_interface.h:280
InteractiveMarkerInterface::serv_reset_
ros::ServiceServer serv_reset_
Definition: interactive_marker_interface.h:161
InteractiveMarkerInterface::tfb_
tf::TransformBroadcaster tfb_
Definition: interactive_marker_interface.h:170
InteractiveMarkerInterface::changeMoveModeCb
void changeMoveModeCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:215
interactive_marker_server.h
InteractiveMarkerInterface::toggleIKModeCb
void toggleIKModeCb(const std_msgs::EmptyConstPtr &msg)
Definition: interactive_marker_interface.cpp:466
InteractiveMarkerInterface::server_name
std::string server_name
Definition: interactive_marker_interface.h:195
InteractiveMarkerInterface::menu_handler2
interactive_markers::MenuHandler menu_handler2
Definition: interactive_marker_interface.h:175
urdf::ModelInterfaceSharedPtr
boost::shared_ptr< ModelInterface > ModelInterfaceSharedPtr
Definition: interactive_marker_interface.h:23
urdf
InteractiveMarkerInterface::loadMeshes
void loadMeshes(XmlRpc::XmlRpcValue val)
Definition: interactive_marker_interface.cpp:1430
InteractiveMarkerInterface::ControlState::planar_only_
bool planar_only_
Definition: interactive_marker_interface.h:263
InteractiveMarkerInterface::ControlState::posture_r_
bool posture_r_
Definition: interactive_marker_interface.h:255
InteractiveMarkerInterface::sub_marker_pose_
ros::Subscriber sub_marker_pose_
Definition: interactive_marker_interface.h:165
InteractiveMarkerInterface::changeForceModeCb1
void changeForceModeCb1(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:236
InteractiveMarkerInterface::ControlState::HAND_ORIGIN
@ HAND_ORIGIN
Definition: interactive_marker_interface.h:248
InteractiveMarkerInterface::move_marker_cb
void move_marker_cb(const geometry_msgs::PoseStampedConstPtr &msg)
Definition: interactive_marker_interface.cpp:1556
InteractiveMarkerInterface::MeshProperty::position
geometry_msgs::Point position
Definition: interactive_marker_interface.h:32
InteractiveMarkerInterface::ControlState::head_on_
bool head_on_
Definition: interactive_marker_interface.h:258
InteractiveMarkerInterface::ControlState::ARMS
@ ARMS
Definition: interactive_marker_interface.h:247
InteractiveMarkerInterface::UrdfProperty::scale
double scale
Definition: interactive_marker_interface.h:41
InteractiveMarkerInterface::updateHeadGoal
void updateHeadGoal(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:516
InteractiveMarkerInterface::menu_base_
interactive_markers::MenuHandler menu_base_
Definition: interactive_marker_interface.h:189
InteractiveMarkerInterface::use_torso_t_menu_
interactive_markers::MenuHandler::EntryHandle use_torso_t_menu_
Definition: interactive_marker_interface.h:208
InteractiveMarkerInterface::updateFinger
void updateFinger(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback, std::string hand)
Definition: interactive_marker_interface.cpp:546
InteractiveMarkerInterface::menu_head_
interactive_markers::MenuHandler menu_head_
Definition: interactive_marker_interface.h:183
InteractiveMarkerInterface::nh_
ros::NodeHandle nh_
Definition: interactive_marker_interface.h:155
InteractiveMarkerInterface::serv_set_
ros::ServiceServer serv_set_
Definition: interactive_marker_interface.h:162
InteractiveMarkerInterface::rotation_nil_menu_
interactive_markers::MenuHandler::EntryHandle rotation_nil_menu_
Definition: interactive_marker_interface.h:205
InteractiveMarkerInterface::pub_marker_tf
void pub_marker_tf(std_msgs::Header header, geometry_msgs::Pose pose)
Definition: interactive_marker_interface.cpp:138
InteractiveMarkerInterface::set_cb
bool set_cb(jsk_interactive_marker::MarkerSetPose::Request &req, jsk_interactive_marker::MarkerSetPose::Response &res)
Definition: interactive_marker_interface.cpp:1566
InteractiveMarkerInterface::targetPointMenuCB
void targetPointMenuCB(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:248
InteractiveMarkerInterface::sub_marker_menu_
ros::Subscriber sub_marker_menu_
Definition: interactive_marker_interface.h:166
InteractiveMarkerInterface::ControlState::projector_on_
bool projector_on_
Definition: interactive_marker_interface.h:259
InteractiveMarkerInterface::target_frame
std::string target_frame
Definition: interactive_marker_interface.h:198
InteractiveMarkerInterface::ikmodeCb
void ikmodeCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:442
InteractiveMarkerInterface::imlist
std::list< visualization_msgs::InteractiveMarker > imlist
Definition: interactive_marker_interface.h:223
InteractiveMarkerInterface::IMSizeLargeCb
void IMSizeLargeCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:194
InteractiveMarkerInterface::ControlState::init_head_goal_
bool init_head_goal_
Definition: interactive_marker_interface.h:261
InteractiveMarkerInterface::setOriginCb
void setOriginCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback, bool origin_hand)
Definition: interactive_marker_interface.cpp:425
InteractiveMarkerInterface::IMSizeSmallCb
void IMSizeSmallCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:208
InteractiveMarkerInterface::markers_set_cb
bool markers_set_cb(jsk_interactive_marker::MarkerSetPose::Request &req, jsk_interactive_marker::MarkerSetPose::Response &res)
Definition: interactive_marker_interface.cpp:1503
InteractiveMarkerInterface::addHandMarker
void addHandMarker(visualization_msgs::InteractiveMarker &im, std::vector< UrdfProperty > urdf_vec)
Definition: interactive_marker_interface.cpp:1129
InteractiveMarkerInterface::sub_toggle_start_ik_
ros::Subscriber sub_toggle_start_ik_
Definition: interactive_marker_interface.h:167
InteractiveMarkerInterface::server_
std::shared_ptr< interactive_markers::InteractiveMarkerServer > server_
Definition: interactive_marker_interface.h:157
InteractiveMarkerInterface::IMSizeMiddleCb
void IMSizeMiddleCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:201
InteractiveMarkerInterface::pub_move_
ros::Publisher pub_move_
Definition: interactive_marker_interface.h:160
InteractiveMarkerInterface::UrdfProperty::root_link_name
std::string root_link_name
Definition: interactive_marker_interface.h:39
XmlRpc::XmlRpcValue
InteractiveMarkerInterface::MeshProperty::orientation
geometry_msgs::Quaternion orientation
Definition: interactive_marker_interface.h:33
InteractiveMarkerInterface
Definition: interactive_marker_interface.h:27
InteractiveMarkerInterface::changeForceModeCb
void changeForceModeCb(const visualization_msgs::InteractiveMarkerFeedbackConstPtr &feedback)
Definition: interactive_marker_interface.cpp:230
ros::NodeHandle
ros::Subscriber
InteractiveMarkerInterface::marker_menu_cb
void marker_menu_cb(const jsk_interactive_marker::MarkerMenuConstPtr &msg)
Definition: interactive_marker_interface.cpp:488
InteractiveMarkerInterface::marker_name
std::string marker_name
Definition: interactive_marker_interface.h:194


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