ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version
def configure(self,robot_name):
    [..]
    self.set_position_cartesian = rospy.Publisher('/dvrk/PSM1/set_position_cartesian', Pose, latch=True, queue_size = 10)
    [..]
    rospy.spin()

rospy.spin() is a blocking call and will never end, until you stop the program.

So in essence you have an infinite wait / delay / sleep here at the end of configure(..).

def configure(self,robot_name):
    [..]
    self.set_position_cartesian = rospy.Publisher('/dvrk/PSM1/set_position_cartesian', Pose, latch=True, queue_size = 10)
    [..]
    rospy.spin()

rospy.spin() is a blocking call and will never end, until you stop the program.

So in essence you have an infinite wait / delay / sleep here at the end of configure(..).

def configure(self,robot_name):
    [..]
    self.set_position_cartesian = rospy.Publisher('/dvrk/PSM1/set_position_cartesian', Pose, latch=True, queue_size = 10)
    [..]
    rospy.spin()

rospy.spin() is a blocking call and will never end, until you stop the program.

So in essence you have an infinite wait / delay / sleep here at the end of configure(..).


Edit: and the same in trajectoryMover(..) btw.