gopos.py
Go to the documentation of this file.
1 import rospy
2 import actionlib
3 from jsk_teleop_joy.joy_pose_6d import JoyPose6D
4 
5 try:
6  imp.find_module("std_msgs")
7 except:
8  import roslib; roslib.load_manifest('jsk_teleop_joy')
9 
10 
11 from std_msgs.msg import String, Empty
12 from geometry_msgs.msg import PoseStamped
13 import xml.etree.ElementTree as ET
14 
15 class JoyGoPos(JoyPose6D):
16  def __init__(self, name, args):
17  JoyPose6D.__init__(self, name, args)
18  self.supportFollowView(True)
19  self.frame_id = self.getArg('frame_id', '/map')
20  # parse srdf to get planning_groups
21  self.goal_pub = rospy.Publisher("goal", PoseStamped)
22  def joyCB(self, status, history):
23  JoyPose6D.joyCB(self, status, history)
24  latest = history.latest()
25  if not latest:
26  return
27  if status.circle and not latest.circle:
28  self.goal_pub.publish(self.pre_pose)
29  if status.cross and not latest.cross:
30  self.pre_pose = PoseStamped()
31  self.pre_pose.pose.orientation.w = 1
32 
def __init__(self, name, args)
Definition: gopos.py:16
def joyCB(self, status, history)
Definition: gopos.py:22


jsk_teleop_joy
Author(s): Ryohei Ueda
autogenerated on Sun May 28 2023 03:03:37