What is the proper way to call clear rosservice in rospy? [closed]

asked 2020-02-11 22:45:28 -0600

I have tried

rospy.wait_for_service('clear')
clear = rospy.ServiceProxy('clear', std_srvs/Empty)

as well as what was posted here https://answers.ros.org/question/1279... but still cannot get it to work. The clear rosservice works fine from terminal.

edit retag flag offensive reopen merge delete

Closed for the following reason too localized by dtan11111
close date 2020-02-12 13:52:03.453583