Services - Close, Mode



In [1]:
import sys
import rospy
from std_msgs.msg import Float32
from std_msgs.msg import String
from std_srvs.srv import Trigger, SetBool
import std_srvs.srv

In [2]:
trigger_start_stop = rospy.ServiceProxy('start_stop', SetBool)
trigger_mode = rospy.ServiceProxy('change_mode', SetBool)

In [6]:
trigger_start_stop = rospy.ServiceProxy('start_stop', SetBool)
trigger_mode = rospy.ServiceProxy('change_mode', SetBool)
response_start=trigger_start_stop(1)
print(response_start.success)
print(response_start.message)


True
Communication established

In [ ]:


In [ ]: