6 roslib.load_manifest(
"denso_pendant_publisher")
7 roslib.load_manifest(
"actionlib_msgs")
9 import denso_pendant_publisher.msg
11 import actionlib_msgs.msg
13 rospy.init_node(
"moveit_canceler")
21 global g_runnable, g_prev_status
23 if (
not g_prev_status.button_cancel
and msg.button_cancel)
or (
not g_prev_status.button_stop
and msg.button_stop):
26 cancel = actionlib_msgs.msg.GoalID()
28 cancel_pub.publish(cancel)
29 rospy.loginfo(
"cancel")
33 sub = rospy.Subscriber(
"/denso_pendant_publisher/status", denso_pendant_publisher.msg.PendantStatus, pendantCB)
34 cancel_pub = rospy.Publisher(
"/arm_controller/follow_joint_trajectory/cancel", actionlib_msgs.msg.GoalID);