Update
This commit is contained in:
parent
6588d604fe
commit
f963ae892d
@ -24,6 +24,8 @@ class tf_service():
|
|||||||
|
|
||||||
def _callback(self, data):
|
def _callback(self, data):
|
||||||
# Get index
|
# Get index
|
||||||
|
if SIGKILL:
|
||||||
|
self._kill()
|
||||||
for object_name in self._nodes:
|
for object_name in self._nodes:
|
||||||
'''HORRIBLE HACK BEGIN'''
|
'''HORRIBLE HACK BEGIN'''
|
||||||
if object_name == 'baxter::base':
|
if object_name == 'baxter::base':
|
||||||
@ -42,6 +44,8 @@ class tf_service():
|
|||||||
(object_pose.orientation.x, object_pose.orientation.y, object_pose.orientation.z, object_pose.orientation.w),
|
(object_pose.orientation.x, object_pose.orientation.y, object_pose.orientation.z, object_pose.orientation.w),
|
||||||
rospy.Time.now(), spawn_name,'gazebo_world')
|
rospy.Time.now(), spawn_name,'gazebo_world')
|
||||||
|
|
||||||
|
def _kill(self):
|
||||||
|
rospy.signal_shutdown('User_requested')
|
||||||
|
|
||||||
def gazebo_link_subscriber(self):
|
def gazebo_link_subscriber(self):
|
||||||
global a
|
global a
|
||||||
@ -55,4 +59,3 @@ class tf_service():
|
|||||||
def init():
|
def init():
|
||||||
x = tf_service()
|
x = tf_service()
|
||||||
x.gazebo_link_subscriber()
|
x.gazebo_link_subscriber()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user